AnsweredAssumed Answered

SDK 2017 ls1046ardb build problem

Question asked by Michele Pallaro on Jan 30, 2017
Latest reply on Mar 30, 2017 by Pavel Chubakov

I'm trying to build fsl-image-virt for ls1046ardb using SDK 2017 but it fails with :

 

ERROR: oe_runmake failed
ERROR: Function failed: do_compile (log file is located at /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.13250)
ERROR: Logfile of failure stored in: /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.13250
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/build_ls1046ardb/tmp/sysroots/ls1046ardb LD64=aarch64-fsl-linux-ld --sysroot=/opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_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/build_ls1046ardb/tmp/sysroots/ls1046ardb -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o .o
| /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_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
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /opt/devel/QorIQ-SDK-V2.0-20160527-yocto/build_ls1046ardb/tmp/work/aarch64-fsl-linux/ppa/git-r0/temp/log.do_compile.13250)
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 3215 tasks of which 3207 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

 

is there a fix ?

Outcomes