[comp.unix.ultrix] Problems making

hbrand@lll-crg.llnl.gov (Hal Brand) (09/20/90)

I am trying to build the GCC 1.37.1 compilier on a DECStation 5000
under Ultrix 4.0A.  After editing Makefile and doing a "gcc.config
decstation", the "make" dies while cc-ing the file symout.c due to a
"typedef unsigned log size_t;" in ./stddef.h. Looking at
/usr/include/stdlib.h, I edited ./stddef.h to be conditional on _SIZE_T_
instead of _SIZE_T, restarted the make, and everything ran to completion.
Doing the "make stage1" also worked. However, doing the:
          make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"
dies quickly. The first thing done is:
          stage1/gcc [stuff omitted]  -c    `echo ./gcc.c | sed 's,^\./,,'`
This gives the errors:
   /usr/include/sys/file.h:125: warning: garbage at end of #ifdef argument
   cc1: Invalid option `-g'
   In file included from gvarargs.h:9, from gcc.c:127:
   va-mips.h:68: conflicting types for `va_list'
   /usr/include/stdio.h:154: previous declaration of `va_list'
   *** Error code 1
Looks like gcc didn't compile/build properly using cc.

Can anybody offer any help getting GCC working???
						Hal Brand
						hbrand@crg.llnl.gov

lat@creatures.cs.vt.edu (Laurie Zirkle) (09/20/90)

In article <68294@lll-winken.LLNL.GOV> hbrand@lll-crg.llnl.gov (Hal Brand) writes:
>I am trying to build the GCC 1.37.1 compilier on a DECStation 5000
>under Ultrix 4.0A.  After editing Makefile and doing a "gcc.config
>decstation", the "make" dies while cc-ing the file symout.c due to a
>"typedef unsigned log size_t;" in ./stddef.h. Looking at
>/usr/include/stdlib.h, I edited ./stddef.h to be conditional on _SIZE_T_
>instead of _SIZE_T, restarted the make, and everything ran to completion.
>Doing the "make stage1" also worked. However, doing the:
>          make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"
>dies quickly. The first thing done is:
>          stage1/gcc [stuff omitted]  -c    `echo ./gcc.c | sed 's,^\./,,'`
>This gives the errors:
>   /usr/include/sys/file.h:125: warning: garbage at end of #ifdef argument
>   cc1: Invalid option `-g'
>   In file included from gvarargs.h:9, from gcc.c:127:
>   va-mips.h:68: conflicting types for `va_list'
>   /usr/include/stdio.h:154: previous declaration of `va_list'
>   *** Error code 1
>Looks like gcc didn't compile/build properly using cc.
>
>Can anybody offer any help getting GCC working???
>						Hal Brand
>						hbrand@crg.llnl.gov

I can't offer you help, but I have run into something similar.  Like you,
I changed _SIZE_T to SIZE_T_, but I also changed typedef unsigned long size_t
to typedef unsigned int size_t (I believe that was done for the 3100 - I saw
a message in the gnu.gcc group a while back to that effect).

Has anyone gotten GCC working on the DECsystem 5000/200 running Ultrix 4.0?
Can I just make it on a 3100 running 3.1 and then install it on the 5000
running 4.0?  Any help would be greatly appreciated.

Laurie  (lat@vtopus.cs.vt.edu)

Here is the output from my stage1:
# make CC=stage1/gcc CFLAGS="-g -O -Bstage1/"
stage1/gcc -c -g -O -Bstage1/  -I. -I. -I./config mips-tfile.c
/usr/include/sys/file.h:125: warning: garbage at end of #ifdef argument
In file included from mips-tfile.c:144:
./stdarg.h:21: redefinition of `va_list'
/usr/include/stdio.h:154: here is the previous declaration of `va_list'
mips-tfile.c:1080: conflicting types for `memcmp'
/usr/include/string.h:74: previous declaration of `memcmp'
mips-tfile.c:1084: conflicting types for `printf'
/usr/include/stdio.h:185: previous declaration of `printf'
mips-tfile.c:1085: conflicting types for `fprintf'
/usr/include/stdio.h:168: previous declaration of `fprintf'
mips-tfile.c:1086: conflicting types for `vprintf'
/usr/include/stdio.h:201: previous declaration of `vprintf'
mips-tfile.c:1087: conflicting types for `vfprintf'
/usr/include/stdio.h:200: previous declaration of `vfprintf'
mips-tfile.c:1088: conflicting types for `vsprintf'
/usr/include/stdio.h:202: previous declaration of `vsprintf'
mips-tfile.c:1095: conflicting types for `fopen'
/usr/include/stdio.h:167: previous declaration of `fopen'
mips-tfile.c:1096: conflicting types for `freopen'
/usr/include/stdio.h:173: previous declaration of `freopen'
mips-tfile.c:1098: conflicting types for `setvbuf'
/usr/include/stdio.h:194: previous declaration of `setvbuf'
mips-tfile.c:1099: conflicting types for `perror'
/usr/include/stdio.h:182: previous declaration of `perror'
mips-tfile.c:1106: conflicting types for `open'
mips-tfile.c:1106: A parameter list with an ellipsis can't match
mips-tfile.c:1106: an empty parameter name list declaration.
/usr/include/sys/file.h:337: previous declaration of `open'
mips-tfile.c: In function write_varray:
mips-tfile.c:2862: warning: argument passing of non-const * pointer from const *
mips-tfile.c: In function write_object:
mips-tfile.c:2889: warning: argument passing of non-const * pointer from const *
mips-tfile.c:2914: warning: argument passing of non-const * pointer from const *
mips-tfile.c:2940: warning: argument passing of non-const * pointer from const *
mips-tfile.c:3022: warning: argument passing of non-const * pointer from const *
mips-tfile.c:3049: warning: argument passing of non-const * pointer from const *
mips-tfile.c: In function copy_object:
mips-tfile.c:3400: warning: argument passing of non-const * pointer from const *
*** Error code 1

frank@croton.enet.dec.com (Frank Wortner) (09/24/90)

> Has anyone gotten GCC working on the DECsystem 5000/200 running Ultrix 4.0?
> Can I just make it on a 3100 running 3.1 and then install it on the 5000
> running 4.0?

Yes, you can.  I'm running 4.0 on my workstation and mount a filesystem
containing
a 3.1 binary of gcc from a server.  Seems to work just fine.

						Frank