AnsweredAssumed Answered

SDK2.0 failed to build ls1043ardb

Question asked by Jheng-Jhong Wu on Dec 6, 2016
Latest reply on Dec 21, 2016 by Jheng-Jhong Wu

Distro. version

 

I tried to build SDK2.0, but it has some problems on my computer and the same result on my colleague's computer. Why?

 

[STEP]

 

sudo mount -o loop QorIQ Linux SDK v2.0 SOURCE.iso /mnt

/mnt/install

cd QorIQ-SDK-V2.0-20160527-yocto

./sources/meta-freescale/scripts/host-prepare.sh

. ./fsl-setup-env -m ls1043ardb

bitbake fsl-image-full

 

[LOG]

 

| ../src/c++11/.libs/libc++11convenience.a(system_error.o): In function `__static_initialization_and_destruction_0':
| /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work-shared/gcc-linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/libstdc++-v3/src/c++11/system_error.cc:65: undefined reference to `__dso_handle'
| /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work-shared/gcc-linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/libstdc++-v3/src/c++11/system_error.cc:65: undefined reference to `__dso_handle'
| ../libsupc++/.libs/libsupc++convenience.a(atexit_thread.o): In function `key_init':
| /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work-shared/gcc-linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/libstdc++-v3/libsupc++/atexit_thread.cc:94: undefined reference to `__dso_handle'
| /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work-shared/gcc-linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/libstdc++-v3/libsupc++/atexit_thread.cc:94: undefined reference to `__dso_handle'
| ../src/c++98/.libs/libc++98convenience.a(mt_allocator.o): In function `get_freelist':
| /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work-shared/gcc-linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/libstdc++-v3/src/c++98/mt_allocator.cc:59: undefined reference to `__dso_handle'
| ../src/c++98/.libs/libc++98convenience.a(mt_allocator.o):/media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work-shared/gcc-linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/libstdc++-v3/src/c++98/mt_allocator.cc:59: more undefined references to `__dso_handle' follow
| /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/sysroots/x86_64-linux/usr/libexec/aarch64-fsl-linux/gcc/aarch64-fsl-linux/4.9.3/ld: final link failed: Nonrepresentable section on output
| collect2: error: ld returned 1 exit status
| make[3]: *** [libstdc++.la] Error 1
| make[3]: Leaving directory `/media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/gcc-runtime/linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/build.aarch64-fsl-linux.aarch64-fsl-linux/aarch64-fsl-linux/libstdc++-v3/src'
| make[2]: *** [all-recursive] Error 1
| make[2]: Leaving directory `/media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/gcc-runtime/linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/build.aarch64-fsl-linux.aarch64-fsl-linux/aarch64-fsl-linux/libstdc++-v3/src'
| make[1]: *** [all-recursive] Error 1
| make[1]: Leaving directory `/media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/gcc-runtime/linaro-4.9-r2015.03/gcc-linaro-4.9-2015.03/build.aarch64-fsl-linux.aarch64-fsl-linux/aarch64-fsl-linux/libstdc++-v3'
| make: *** [all] Error 2
| WARNING: /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/gcc-runtime/linaro-4.9-r2015.03/temp/run.do_compile.22066:1 exit 1 from
| exit 1
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (log file is located at /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/work/aarch64-fsl-linux/gcc-runtime/linaro-4.9-r2015.03/temp/log.do_compile.22066)
ERROR: Task 104 (/media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/gcc/gcc-runtime_linaro-4.9.bb, do_compile) failed with exit code '1'
DEBUG: Parsing /media/victor/HGST-DATA/QorIQ-SDK-V2.0-20160527-yocto/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/gcc/libgcc_linaro-4.9.bb (full)

Outcomes