This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
cpp0 problem on armv4l linux when bootstrapping
- To: gcc-bugs at gcc dot gnu dot org
- Subject: cpp0 problem on armv4l linux when bootstrapping
- From: Rod Stewart <stewart at lab43 dot org>
- Date: Wed, 20 Sep 2000 09:24:57 -0400 (EDT)
I've been having trouble for the last little while bootstrapping on armv4l
Linux with glibc 2.1.93/94.
If I use:
[@zip gcc]# gcc -v
Reading specs from /usr/lib/gcc-lib/armv4l-redhat-linux/2.96/specs
gcc version 2.96 20000918 (experimental)
to build itself, the build fails in 'stage_a'. If I use GCC 2.95.2, and
an older glibc the build succeeds.
A simple test case is at the bottom. The problem appears to be with cpp0,
and the -B option to xgcc. If I simply call ./xgcc without '-B./' the
program compiles. But if '-B./' is added to the compile, the compile
fails.
It is possible this is a problem with glibc, at present I'm simply not
certain. The example is a stripped down version of what is in the
feature.h glibc header file.
Here is the output, thanks for any help.
-Rms
[@zip gcc]# ./xgcc e.c -o e
[@zip gcc]# ./xgcc -B./ e.c -o e -v
Reading specs from ./specs
gcc version 2.96 20000918 (experimental)
./cpp0 -lang-c -v -iprefix ./../lib/gcc-lib/armv4l-redhat-linux/2.96/
-isystem ./include -D__GNUC__=2 -D__GNUC_MINOR__=96
-D__GNUC_PATCHLEVEL__=0 -Dunix -Dlinux -D__ELF__ -D__unix__ -D__linux__
-D__ELF__ -D__unix -D__linux
-Asystem(unix) -Asystem(posix) -Acpu(arm) -Amachine(arm) -D__CHAR_UNSIGNED__
-D__STDC_HOSTED__=1 -D__ARM_ARCH_3__ -D__APCS_32__ -D__ARMEL__ -D__arm__
e.c /tmp/ccHlQ20T.i
GNU CPP version 2.96 20000918 (experimental) (cpplib)
(ARM GNU/Linux with ELF)
ignoring nonexistent directory
"../lib/gcc-lib/armv4l-redhat-linux/2.96/include"
ignoring nonexistent directory "../armv4l-redhat-linux/include"
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory "/usr/armv4l-redhat-linux/include"
#include "..." search starts here:
#include <...> search starts here:
include
/usr/lib/gcc-lib/armv4l-redhat-linux/2.96/include
/usr/include
End of search list.
e.c:9:24: missing binary operator
And the file e.c:
[@zip gcc]# cat e.c
/* #include <features.h> */
#include "e.h"
int main (void)
{
#if defined __GNUC_PREREQ
printf ("have: __GNUC_PREREQ\n");
# if __GNUC_PREREQ (2,8)
printf ("defined: __GNUC_PREREQ (2,8)\n");
# endif
#else
printf ("do not have __GNUC_PREREQ (2,8)\n");
#endif
}