<div dir="ltr">Hi<div><br></div><div>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?</div><div><br></div><div>[1520/1548] Linking build/sparc/leon3/testsuites/samples/base_sp.exe<br>/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':<br>/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<br>/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':<br>/home/joel/rtems-work/rtems/build/sparc/leon3/../../../cpukit/score/src/threadhandler.c:71: undefined reference to `_init'<br>collect2: error: ld returned 1 exit status<br></div><div><br></div><div>Thanks</div><div><br></div><div>--joel</div></div>