This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs 1.03 on SGI IRIX 6.4
- To: Craig Burley <burley at gnu dot org>
- Subject: Re: egcs 1.03 on SGI IRIX 6.4
- From: "James E. Rowley" <jer at research dot att dot com>
- Date: Mon, 15 Jun 1998 17:42:03 -0400 (EDT)
- Cc: N8TM at aol dot com, egcs-bugs at cygnus dot com, jer at research dot att dot com
- References: <945976fc.3573859e@aol.com><199806031658.MAA03897@melange.gnu.org>
Craig Burley said Re: egcs 1.03 on SGI IRIX 6.4:
>
> In short: build gcc (LANGUAGES=c only) using native cc (by default),
> with no optimization.
>
> Then `make stage1', which moves all the resulting stuff (objects,
> executables, drivers, etc.) into a directory named `stage1'.
>
> Then build gcc (all languages by default) using gcc, with optimization,
> in `stage1'. Then `make stage2', which moves stuff into `stage2'.
>
> Then build gcc again using gcc in `stage2'.
>
> Then make sure the object files in `stage2' are the same as their
> kin at the top level of the build directory. If not, that could
> indicate a bug in gcc's code generation.
>
I've tried several builds of egcs 1.0.3 on IRIX 6.4, and all have the
same problem, which is that the resulting gcc fails to compile "concat.c"
in the libiberty directory:
$ gcc -c -g -I. -I./../include concat.c
concat.c: In function `concat':
concat.c:107: parse error before `const'
concat.c:107: parse error before `const'
concat.c:107: parse error before `const'
concat.c:107: parse error before `const'
concat.c:107: parse error before `const'
concat.c:107: parse error before `)'
(etc)
The stage1 and stage2 xgcc intermediate builds have this same error.
BTW, the stage2 xgcc and the xgcc made from it aren't the same:
$ ls -l xgcc stage*/xgcc
-rwxr-xr-x 1 jer acoustic 196784 Jun 12 18:58 stage1/xgcc
-rwxr-xr-x 1 jer acoustic 171816 Jun 12 19:13 stage2/xgcc
-rwxr-xr-x 1 jer acoustic 172096 Jun 15 16:19 xgcc
I do *NOT* get this error when building gcc on Solaris or Linux platforms.
- jim