Patch needed for GCC 9?

Joel Sherrill joel at rtems.org
Thu Oct 29 21:15:21 UTC 2020


Hi

When I build RTEMS with GCC 9 (sparc/leon3) to get Coverity results, I get
this error linking tests that I don't get with gcc 10. I am using the same
newlib and binutils-gdb source so I am a bit confused. Are there patches in
GCC 10 that I need on GCC 9?

[1520/1548] Linking build/sparc/leon3/testsuites/samples/base_sp.exe
/home/joel/test-gcc/install-gcc9/lib/gcc/sparc-rtems6/9.3.1/../../../../sparc-rtems6/bin/ld:
testsuites/samples/base_sp/init.c.88.o: in function `__getreent':
/home/joel/rtems-work/rtems/build/sparc/leon3/../../../cpukit/include/rtems/confdefs/newlib.h:62:
multiple definition of `__getreent';
/home/joel/test-gcc/install-gcc9/lib/gcc/sparc-rtems6/9.3.1/../../../../sparc-rtems6/lib/leon3/crt0.o:/home/joel/test-gcc/b-sparc-rtems6-gcc/sparc-rtems6/leon3/newlib/libc/sys/rtems/../../../../../../../gcc/newlib/libc/sys/rtems/crt0.c:152:
first defined here
/home/joel/test-gcc/install-gcc9/lib/gcc/sparc-rtems6/9.3.1/../../../../sparc-rtems6/bin/ld:
./librtemscpu.a(threadhandler.c.59.o): in function
`_Thread_Global_construction':
/home/joel/rtems-work/rtems/build/sparc/leon3/../../../cpukit/score/src/threadhandler.c:71:
undefined reference to `_init'
collect2: error: ld returned 1 exit status

Thanks

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


More information about the devel mailing list