[yocto] undefined references to `__dso_handle'

Khem Raj raj.khem at gmail.com
Thu Nov 17 09:23:47 PST 2016



On 11/16/16 2:05 AM, Elazar Leibovich wrote:
> 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

is it pristine ubuntu 16.04 or do you have any customization, new packages etc
installed on top

> 
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 204 bytes
Desc: OpenPGP digital signature
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20161117/912fdd5c/attachment.pgp>


More information about the yocto mailing list