gcc biuld, b-gcc/gcc/include-fixed/limits.h overides newlib-rtems limits.h
Hill, Jeff
johill at lanl.gov
Fri Sep 12 18:28:25 UTC 2014
Hello all,
I am attempting to build an rtems nios2 gcc cross compiler from the gcc 4.7 source provided for Altera 13.1.
After applying a patch for rtems 11 and gcc 4.7 I found at the RTEMS ftp site, I encounter some difficulties where gcc includes a limits.h in "build/b-gcc/gcc/include-fixed" instead of the one that presumably needs to be used that is provided in the RTEMS specific parts of newlib. Since this " build/b-gcc/gcc/include-fixed" path is added implicitly by gcc this is a difficult problem to work around.
Nevertheless, I see that gcc 4.7 is routinely used with RTEMS 4.11 so perhaps someone knows how to resolve this issue. Any hints are greatly appreciated!
Thanks,
Jeff
/ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/configure --target=nios2-rtems --prefix=/home/hill/install/altera-gnu-tools-13.1/ --with-newlib --verbose --enable-threads --enable-languages=c,c++
/home/hill/build/b-gcc/./gcc/cc1 -quiet -nostdinc -v -I . -I /ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/newlib/libc/posix -imultilib mhw-mul -iprefix /home/hill/build/b-gcc/gcc/../lib/gcc/nios2-rtems/4.7.3/ -isystem /home/hill/build/b-gcc/./gcc/include -isystem /home/hill/build/b-gcc/./gcc/include-fixed -D PACKAGE_NAME="newlib" -D PACKAGE_TARNAME="newlib" -D PACKAGE_VERSION="2.1.0" -D PACKAGE_STRING="newlib 2.1.0" -D PACKAGE_BUGREPORT="" -D PACKAGE_URL="" -D _COMPILING_NEWLIB -D MALLOC_PROVIDED -D EXIT_PROVIDED -D SIGNAL_PROVIDED -D REENTRANT_SYSCALLS_PROVIDED -D HAVE_NANOSLEEP -D HAVE_BLKSIZE -D HAVE_FCNTL -D HAVE_ASSERT_FUNC -D _NO_GETLOGIN -D _NO_GETPWENT -D _NO_GETUT -D _NO_GETPASS -D _NO_SIGSET -D _NO_WORDEXP -D _NO_POPEN -D _NO_POSIX_SPAWN -D _GNU_SOURCE -isystem /home/hill/build/b-gcc/nios2-rtems/mhw-mul/newlib/targ-include -isystem /ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/newlib/libc/include -isystem /home/hill/install/altera-gnu-tools-13.1/nios2-rtems/include -isystem /home/hill/install/altera-gnu-tools-13.1/nios2-rtems/sys-include /ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/newlib/libc/posix/collate.c -quiet -dumpbase collate.c -mhw-mul -auxbase-strip lib_a-collate.o -g -O2 -version -fno-builtin -o /tmp/ccRdpAoa.s
GNU C (GCC) version 4.7.3 (nios2-rtems)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1-p2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/home/hill/install/altera-gnu-tools-13.1/nios2-rtems/include"
ignoring nonexistent directory "/home/hill/install/altera-gnu-tools-13.1/nios2-rtems/sys-include"
#include "..." search starts here:
#include <...> search starts here:
.
/ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/newlib/libc/posix
/home/hill/build/b-gcc/./gcc/include
/home/hill/build/b-gcc/./gcc/include-fixed
/home/hill/build/b-gcc/nios2-rtems/mhw-mul/newlib/targ-include
/ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/newlib/libc/include
End of search list.
GNU C (GCC) version 4.7.3 (nios2-rtems)
compiled by GNU C version 4.7.2, GMP version 5.0.5, MPFR version 3.1.1-p2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 02402508529dc950f2101274835774a5
/ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/newlib/libc/posix/collate.c: In function '__collate_load_tables':
/ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/newlib/libc/posix/collate.c:64:11: error: 'PATH_MAX' undeclared (first use in this function)
/ade/rtems/gnu/tools-quartus-13-1/gcc-4.7/newlib/libc/posix/collate.c:64:11: note: each undeclared identifier is reported only once for each function it appears in
hill at nios2-rtems-virtual-machine:~/build/b-gcc/nios2-rtems/mhw-mul/newlib/libc/p
More information about the users
mailing list