psim autoconf build w/C++ enabled fails oddly

Joel Sherrill joel at rtems.org
Thu Feb 4 17:15:09 UTC 2021


Hi

I will have to doublecheck waf but based on build list posts, autoconf w/o
C++ built OK yesterday. The cdtest.exe fails to link like this:

gmake[5]: Entering directory
`/home/joel/rtems-work/b-psim/powerpc-rtems6/c/psim/testsuites/samples'
powerpc-rtems6-g++  -meabi -mcpu=603e -msdata=sysv -fno-common -O2 -g
-fno-keep-inline-functions -ffunction-sections -fdata-sections -Wall
-B./../../lib/libbsp/powerpc/psim
-B/home/joel/rtems-work/rtems/bsps/powerpc/psim/start -specs bsp_specs
-qrtems -L./../../cpukit
-L/home/joel/rtems-work/rtems/bsps/powerpc/shared/start -Wl,--wrap=printf
-Wl,--wrap=puts -Wl,--wrap=putchar -Wl,--gc-sections -o cdtest.exe
cdtest/cdtest-init.o cdtest/cdtest-main.o
./../../lib/libbsp/powerpc/psim/librtemsbsp.a ./../../cpukit/librtemscpu.a
./../../cpukit/librtemstest.a
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
warning: cannot find entry symbol _start; defaulting to 0000000001800100
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
./../../lib/libbsp/powerpc/psim/librtemsbsp.a(cpu.o): in function
`_TLS_Get_thread_control_block_area_size':
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:151: undefined
reference to `_TLS_Alignment'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:151: undefined
reference to `_TLS_Alignment'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
./../../lib/libbsp/powerpc/psim/librtemsbsp.a(cpu.o): in function
`_TLS_Heap_align_up':
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:135: undefined
reference to `_TLS_Size'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:135: undefined
reference to `_TLS_Size'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
./../../lib/libbsp/powerpc/psim/librtemsbsp.a(cpu.o): in function
`_TLS_Copy_and_clear':
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:171: undefined
reference to `_TLS_Data_begin'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:171: undefined
reference to `_TLS_Data_begin'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:171: undefined
reference to `_TLS_Data_size'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:171: undefined
reference to `_TLS_Data_size'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:179: undefined
reference to `_TLS_BSS_begin'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:179: undefined
reference to `_TLS_BSS_begin'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:178: undefined
reference to `_TLS_BSS_size'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
/home/joel/rtems-work/rtems/cpukit/include/rtems/score/tls.h:178: undefined
reference to `_TLS_BSS_size'
/home/joel/rtems-cron-6/tools/6/lib/gcc/powerpc-rtems6/10.2.1/../../../../powerpc-rtems6/bin/ld:
./../../cpukit/librtemscpu.a(newlibc_exit.o): in function `_exit':
/home/joel/rtems-work/b-psim/powerpc-rtems6/c/psim/cpukit/../../../../../rtems/c/src/../../cpukit/libcsupport/src/newlibc_exit.c:37:
undefined reference to `_fini'

Any ideas?

--joel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20210204/c32b91b5/attachment-0001.html>


More information about the devel mailing list