[oclug] gcc-2.95.3 gone

Bob Lockie bjlockie at lockie.ca
Tue Jul 1 02:35:03 EDT 2003


On 06/27/03 08:29 Greg Franks spoke thusly

>>>>>>"Bob" == Bob Lockie <bjlockie at lockie.ca> writes:
> 
> 
>     Bob> I made a stupid mistake and now gcc (emerge umerge gcc under
>     Bob> Gentoo) is gone from my system.  I was trying to find
>     Bob> gcc-3.2.3 and I wasn't thinking so I deinstalled 2.95.3.  Now
>     Bob> that I am without a compiler, can I save my system?
> 
> What, no backups?

No backups.
If I can't salvage my install then I'll reinstall. :-)


> You should be able to find a binary of gcc someplace.  Perhaps
> ftp.gnu.org, or perhaps another oclug-er will send you a tar ball.
> UnTar it anywhere, change your path to point to the compiler and then
> boostrap up gcc under gentoo.

I couldn't find a Linux binary so I think I have gcc-2.95.3 working from 
a gentoo install file but I can't emerge it (fails with some error) so 
I'm trying to build it directly from source.
I'm getting an error on my stdlib.h include file, any ideas what is 
causing it?

# ll /usr/include/stdlib.h
-rw-r--r--    1 root     root        31991 Jul  1 01:22 
/usr/include/stdlib.h

# make bootstrap
make[1]: Entering directory `/downloads/gcc-3.3/libiberty'
if [ x"" != x ]; then \
   /tmp/stages/stage1/usr/bin/gcc -c -DHAVE_CONFIG_H -g -O2 -I. 
-I./../include  -W -Wall -Wtraditional -pedantic  regex.c -o pic/regex.o; \
else true; fi
/tmp/stages/stage1/usr/bin/gcc -c -DHAVE_CONFIG_H -g -O2 -I. 
-I./../include  -W -Wall -Wtraditional -pedantic regex.c -o regex.o
In file included from regex.c:130:
/usr/include/stdlib.h:95: syntax error before "typedef"
/usr/include/stdlib.h:113: parse error before "__BEGIN_NAMESPACE_C99"
/usr/include/stdlib.h:137: syntax error before "extern"
/usr/include/stdlib.h:142: syntax error before "extern"
/usr/include/stdlib.h:150: parse error before "__BEGIN_NAMESPACE_C99"
/usr/include/stdlib.h:157: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:159: syntax error before "extern"
/usr/include/stdlib.h:164: parse error before "__BEGIN_NAMESPACE_C99"
/usr/include/stdlib.h:166: syntax error before "extern"
/usr/include/stdlib.h:174: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:176: syntax error before "extern"
/usr/include/stdlib.h:197: parse error before "__BEGIN_NAMESPACE_C99"
In file included from /usr/include/stdlib.h:225,
                  from regex.c:130:
/usr/include/xlocale.h:28: syntax error before "typedef"
In file included from regex.c:130:
/usr/include/stdlib.h:308: syntax error before "extern"
/usr/include/stdlib.h:328: parse error before "__BEGIN_NAMESPACE_C99"
/usr/include/stdlib.h:329: syntax error before "extern"
/usr/include/stdlib.h:343: parse error before "__extension__"
/usr/include/stdlib.h:359: parse error before "__extension__"
/usr/include/stdlib.h:374: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:375: syntax error before "extern"
/usr/include/stdlib.h:393: parse error before "__BEGIN_NAMESPACE_C99"
/usr/include/stdlib.h:408: syntax error before "extern"
In file included from regex.c:130:
/usr/include/stdlib.h:471: syntax error before "extern"
/usr/include/stdlib.h:478: syntax error before "extern"
/usr/include/stdlib.h:554: syntax error before "extern"
/usr/include/stdlib.h:562: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:565: syntax error before "extern"
/usr/include/stdlib.h:572: syntax error before "extern"
In file included from regex.c:130:
/usr/include/stdlib.h:592: syntax error before "extern"
/usr/include/stdlib.h:602: syntax error before "extern"
/usr/include/stdlib.h:610: syntax error before "extern"
/usr/include/stdlib.h:614: parse error before "__BEGIN_NAMESPACE_C99"
/usr/include/stdlib.h:617: syntax error before "extern"
/usr/include/stdlib.h:622: parse error before "__BEGIN_NAMESPACE_STD"
/usr/include/stdlib.h:624: syntax error before "extern"
/usr/include/stdlib.h:629: syntax error before "extern"
/usr/include/stdlib.h:694: syntax error before "extern"
/usr/include/stdlib.h:702: syntax error before "extern"
/usr/include/stdlib.h:730: syntax error before "extern"
/usr/include/stdlib.h:745: parse error before "__extension__"
/usr/include/stdlib.h:754: syntax error before "extern"
/usr/include/stdlib.h:761: parse error before "__BEGIN_NAMESPACE_C99"
/usr/include/stdlib.h:776: syntax error before "extern"
/usr/include/stdlib.h:822: syntax error before "extern"
/usr/include/stdlib.h:847: syntax error before "extern"
In file included from ../include/xregex.h:26,
                  from regex.c:195:
../include/xregex2.h:551: warning: ISO C89 does not support `static' or 
type qualifiers in parameter array declarators
In file included from regex.c:649:
regex.c: In function `byte_compile_range':
regex.c:4548: warning: signed and unsigned type in conditional expression
regex.c:4558: warning: signed and unsigned type in conditional expression
regex.c:4558: warning: signed and unsigned type in conditional expression


-- 
----------------------------------------
Sent from Mozilla and GNU/Linux.
Powered by an AMD processor.




More information about the OCLUG mailing list