gcc8 build failure - multiple targets

Joel Sherrill joel at rtems.org
Mon Nov 20 22:01:05 UTC 2017


Hi

Looks like with -j1, there are real build failures -- so far on arm, i386
and sparc:

checking for sparc-rtems5-gcc...
/home/joel/test-gcc/b-sparc-rtems5-gcc/./gcc/xgcc
-B/home/joel/test-gcc/b-sparc-rtems5-gcc/./gcc/ -nostdinc
-B/home/joel/test-gcc/b-sparc-rtems5-gcc/sparc-rtems5/newlib/ -isystem
/home/joel/test-gcc/b-sparc-rtems5-gcc/sparc-rtems5/newlib/targ-include
-isystem /home/joel/test-gcc/gcc/newlib/libc/include
-B/home/joel/test-gcc/install-master/sparc-rtems5/bin/
-B/home/joel/test-gcc/install-master/sparc-rtems5/lib/ -isystem
/home/joel/test-gcc/install-master/sparc-rtems5/include -isystem
/home/joel/test-gcc/install-master/sparc-rtems5/sys-include
checking for C compiler default output file name...
configure: error: in
`/home/joel/test-gcc/b-sparc-rtems5-gcc/sparc-rtems5/libbacktrace':
configure: error: C compiler cannot create executables
See `config.log' for more details.

====================================
/home/joel/test-gcc/install-master/sparc-rtems5/bin/ld: warning: cannot
find entry symbol _start; defaulting to 0000000000010054
/home/joel/test-gcc/b-sparc-rtems5-gcc/sparc-rtems5/newlib/libg.a(lib_a-errno.o):
In function `__errno':
/home/joel/test-gcc/b-sparc-rtems5-gcc/sparc-rtems5/newlib/libc/errno/../../../../../gcc/newlib/libc/errno/errno.c:13:
undefined reference to `__getreent'
collect2: error: ld returned 1 exit status
configure:3021: $? = 1
configure:3058: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "package-unused"
| #define PACKAGE_TARNAME "libbacktrace"
| #define PACKAGE_VERSION "version-unused"
| #define PACKAGE_STRING "package-unused version-unused"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3064: error: in
`/home/joel/test-gcc/b-sparc-rtems5-gcc/sparc-rtems5/libbacktrace':
configure:3068: error: C compiler cannot create executables
See `config.log' for more details.
====================================

This means that we need a __getreent() stub in the stub crt0.c found in
newlib.

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


More information about the devel mailing list