[RTEMS Project] #2329: or1k Linking error on C++ tests

RTEMS trac trac at rtems.org
Fri Apr 17 15:16:12 UTC 2015


#2329: or1k Linking error on C++ tests
---------------------------+--------------------
 Reporter:  joel.sherrill  |      Owner:
     Type:  defect         |     Status:  new
 Priority:  normal         |  Milestone:  4.11.1
Component:  General        |    Version:  4.11
 Severity:  normal         |   Keywords:
---------------------------+--------------------
 I fixed the header file issue in 2326. This is a new issue which is either
 a linker script or tools issue not having everything right for C++.

 gmake[6]: Entering directory `/users/joel/rtems-4.11-work/rtems-
 testing/rtems/build-or1k-or1ksim-rtems/or1k-
 rtems4.11/c/or1ksim/testsuites/samples/iostream'
 or1k-rtems4.11-g++ -B../../../../../or1ksim/lib/ -specs bsp_specs -qrtems
 -O2 -O0 -g -Wall -Wmissing-prototypes -Wimplicit-function-declaration
 -Wstrict-prototypes -Wnested-externs    -O2   -o cxx_iostream.exe init.o
 init.o: In function `__static_initialization_and_destruction_0':
 /users/joel/rtems-4.11-work/tools/lib/gcc/or1k-
 rtems4.11/4.8.3/include/c++/iostream:74: undefined reference to
 `__dso_handle'
 /users/joel/rtems-4.11-work/tools/lib/gcc/or1k-
 rtems4.11/4.8.3/include/c++/iostream:74: undefined reference to
 `__dso_handle'
 /users/joel/rtems-4.11-work/tools/lib/gcc/or1k-
 rtems4.11/4.8.3/libstdc++.a(atomicity.o): In function `get_atomic_mutex':
 /users/joel/rtems-4.11-work/rtems-source-builder/rtems/build/or1k-
 rtems4.11-gcc-4.8.3-newlib-ef23a12ff8f840cc571e47870cd5f4ad6bca4553-x86_64
 -linux-gnu-1/build/or1k-rtems4.11/libstdc++-v3/src/c++98/atomicity.cc:33:
 undefined reference to `__dso_handle'
 /users/joel/rtems-4.11-work/rtems-source-builder/rtems/build/or1k-
 rtems4.11-gcc-4.8.3-newlib-ef23a12ff8f840cc571e47870cd5f4ad6bca4553-x86_64
 -linux-gnu-1/build/or1k-rtems4.11/libstdc++-v3/src/c++98/atomicity.cc:33:
 undefined reference to `__dso_handle'
 /users/joel/rtems-4.11-work/tools/lib/gcc/or1k-
 rtems4.11/4.8.3/libstdc++.a(eh_alloc.o): In function
 `__static_initialization_and_destruction_0':
 /users/joel/rtems-4.11-work/rtems-source-builder/rtems/build/or1k-
 rtems4.11-gcc-4.8.3-newlib-ef23a12ff8f840cc571e47870cd5f4ad6bca4553-x86_64
 -linux-gnu-1/build/or1k-
 rtems4.11/libstdc++-v3/libsupc++/../../../../gcc-4.8.3/libstdc++-v3/libsupc++/eh_alloc.cc:96:
 undefined reference to `__dso_handle'
 /users/joel/rtems-4.11-work/tools/lib/gcc/or1k-
 rtems4.11/4.8.3/libstdc++.a(eh_alloc.o):/users/joel/rtems-4.11-work/rtems-
 source-builder/rtems/build/or1k-rtems4.11-gcc-4.8.3-newlib-
 ef23a12ff8f840cc571e47870cd5f4ad6bca4553-x86_64-linux-gnu-1/build/or1k-
 rtems4.11/libstdc++-v3/libsupc++/../../../../gcc-4.8.3/libstdc++-v3/libsupc++/eh_alloc.cc:96:
 more undefined references to `__dso_handle' follow
 /users/joel/rtems-4.11-work/tools/lib/gcc/or1k-rtems4.11/4.8.3
 /../../../../or1k-rtems4.11/bin/ld: cxx_iostream.exe: hidden symbol
 `__dso_handle' isn't defined
 /users/joel/rtems-4.11-work/tools/lib/gcc/or1k-rtems4.11/4.8.3
 /../../../../or1k-rtems4.11/bin/ld: final link failed: Bad value
 collect2: error: ld returned 1 exit status
 gmake[6]: *** [cxx_iostream.exe] Error 1

--
Ticket URL: <http://devel.rtems.org/ticket/2329>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list