[yocto] undefined references to `__dso_handle'

Elazar Leibovich elazarl at gmail.com
Wed Nov 16 02:05:49 PST 2016


Hi,

I followed the quickstart tutorial, branch morty, to create the most basic
image on local QEMU, and I got compilation errors for __dso_handle missing.
I'm using ubuntu 16.
Here is an example output:
++ -nostdlib++  -fPIC -DPIC -D_GLIBCXX_SHARED -shared -nostdlib
/media/elazar/788854CC88548B10/poky/build/tmp/sysroots/raspberrypi3/usr/lib/crti.o
/media/elazar/788854CC88548B10/poky/build/tmp/sysroots/raspberrypi3/usr/lib/arm-poky-linux-gnueabi/6.2.0/crtbeginS.o
 .libs/compatibility.o .libs/compatibility-debug_list.o
.libs/compatibility-debug_list-2.o .libs/compatibility-c++0x.o
.libs/compatibility-atomic-c++0x.o .libs/compatibility-thread-c++0x.o
.libs/compatibility-chrono.o .libs/compatibility-condvar.o
 -Wl,--whole-archive ../libsupc++/.libs/libsupc++convenience.a
../src/c++98/.libs/libc++98convenience.a
../src/c++11/.libs/libc++11convenience.a -Wl,--no-whole-archive  -lm
-L/media/elazar/788854CC88548B10/poky/build/tmp/sysroots/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0
-L/media/elazar/788854CC88548B10/poky/build/tmp/sysroots/raspberrypi3/lib
-L/media/elazar/788854CC88548B10/poky/build/tmp/sysroots/raspberrypi3/usr/lib/arm-poky-linux-gnueabi/6.2.0
-L/media/elazar/788854CC88548B10/poky/build/tmp/sysroots/raspberrypi3/usr/lib
-lc -lgcc_s
/media/elazar/788854CC88548B10/poky/build/tmp/sysroots/raspberrypi3/usr/lib/arm-poky-linux-gnueabi/6.2.0/crtendS.o
/media/elazar/788854CC88548B10/poky/build/tmp/sysroots/raspberrypi3/usr/lib/crtn.o
 -march=armv7ve -marm -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7
-Wl,-O1 -Wl,-z -Wl,relro -Wl,--gc-sections -Wl,-O1 -Wl,--hash-style=gnu
-Wl,--as-needed -Wl,--version-script=libstdc++-symbols.ver   -Wl,-soname
-Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.0.22
| .libs/compatibility-c++0x.o: In function
`__static_initialization_and_destruction_0':
|
/usr/src/debug/gcc-runtime/6.2.0-r0/gcc-6.2.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3/src/../../../../../../../../../work-shared/gcc-6.2.0-r0/gcc-6.2.0/libstdc++-v3/src/c++11/compatibility-c++0x.cc:215:
undefined reference to `__dso_handle'
| ../src/c++11/.libs/libc++11convenience.a(system_error.o): In function
`__static_initialization_and_destruction_0':
|
/usr/src/debug/gcc-runtime/6.2.0-r0/gcc-6.2.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3/src/c++11/../../../../../../../../../../work-shared/gcc-6.2.0-r0/gcc-6.2.0/libstdc++-v3/src/c++11/system_error.cc:71:
undefined reference to `__dso_handle'
| ../src/c++98/.libs/libc++98convenience.a(mt_allocator.o): In function
`get_freelist':
|
/usr/src/debug/gcc-runtime/6.2.0-r0/gcc-6.2.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3/src/c++98/../../../../../../../../../../work-shared/gcc-6.2.0-r0/gcc-6.2.0/libstdc++-v3/src/c++98/mt_allocator.cc:64:
undefined reference to `__dso_handle'
| ../src/c++98/.libs/libc++98convenience.a(c++locale.o): In function
`std::get_catalogs()':
|
/usr/src/debug/gcc-runtime/6.2.0-r0/gcc-6.2.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3/src/c++98/c++locale.cc:251:
undefined reference to `__dso_handle'
| ../src/c++11/.libs/libc++11convenience.a(condition_variable.o): In
function `key_init':
|
/usr/src/debug/gcc-runtime/6.2.0-r0/gcc-6.2.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3/src/c++11/../../../../../../../../../../work-shared/gcc-6.2.0-r0/gcc-6.2.0/libstdc++-v3/src/c++11/condition_variable.cc:133:
undefined reference to `__dso_handle'
|
../src/c++11/.libs/libc++11convenience.a(future.o):/usr/src/debug/gcc-runtime/6.2.0-r0/gcc-6.2.0/build.arm-poky-linux-gnueabi.arm-poky-linux-gnueabi/arm-poky-linux-gnueabi/libstdc++-v3/src/c++11/../../../../../../../../../../work-shared/gcc-6.2.0-r0/gcc-6.2.0/libstdc++-v3/src/c++11/future.cc:64:
more undefined references to `__dso_handle' follow
| collect2: error: ld returned 1 exit status

I'll be happy for help, haven't found similar error when searching the web
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161116/0897c092/attachment.html>


More information about the yocto mailing list