Thanks for answer me
I check bin/sh links and point to bash not to dash
host-prepare.sh report : Done. You're ready to go with Yocto build now
I create a new project . ./fsl-setup-env -m ls1046ardb -b test_ls1046ardb
bitbake fsl-image-minimal
But it fails in the same point:
ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.18251)
ERROR: Logfile of failure stored in: /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.18251
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make CC64=aarch64-fsl-linux-gcc --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/sysroots/ls1046ardb LD64=aarch64-fsl-linux-ld --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/sysroots/ls1046ardb OBJ64=aarch64-fsl-linux-objcopy rdb-fit
| build: image=fit \ gicv2 \ cci400 \ debug off \ test ""
|
| aarch64-fsl-linux-gcc --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/sysroots/ls1046ardb -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .o
| /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/sysroots/ls1046ardb/usr/lib/../lib/crt1.o: In function `_start':
| /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/work/aarch64-fsl-linux/glibc/linaro-2.20-r2014.11/glibc-linaro-2.20-2014.11/csu/../sysdeps/aarch64/start.S:87: undefined reference to `main'
| collect2: error: ld returned 1 exit status
| <builtin>: recipe for target '.o' failed
| make[1]: *** [.o] Error 1
| plat.mk:26: recipe for target 'rdb-fit' failed
| make: *** [rdb-fit] Error 2
| WARNING: /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/run.do_compile.18251:1 exit 1 from
| exit 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/test_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.18251)
ERROR: Task 118 (/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-bsp/ppa/ppa_git.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 951 tasks of which 935 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:
Summary: 1 task failed:
/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-freescale/recipes-bsp/ppa/ppa_git.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
If I skip sources/meta-nxp-npi-1701/recipes-bsp/ppa/ppa_git.bbappend I can build all without problem
Thanks and Regards,
Michele