#2329 closed defect (fixed)

or1k Linking error on C++ tests

Reported by: Joel Sherrill Owned by: Hesham ALMatary <heshamelmatary@…>
Priority: normal Milestone: 4.11.1
Component: unspecified Version: 4.11
Severity: normal Keywords:
Cc: Hesham Almatary Blocked By:
Blocking:

Description

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

Change History (2)

comment:1 Changed on Apr 26, 2015 at 5:44:57 PM by Hesham ALMatary <heshamelmatary@…>

Owner: set to Hesham ALMatary <heshamelmatary@…>
Resolution: fixed
Status: newclosed

In 3dead51eddcdb734b36c949cbc1e4c2cd21c52d4/rtems:

Fix or1k C++ build failure

Closes #2329

comment:2 Changed on Apr 26, 2015 at 7:56:13 PM by Hesham ALMatary <heshamelmatary@…>

In 3dead51eddcdb734b36c949cbc1e4c2cd21c52d4/rtems:

Fix or1k C++ build failure

Closes #2329

Note: See TracTickets for help on using tickets.