Compiling GCC 2.8.1

From: Chad J. LaFrenz <clafrenz_at_rof.net>
Date: Tue, 10 Nov 1998 14:39:27 -0700

Hello All--

We are running Digital UNIX 4.0D on an Alpha 4100. I am trying to compile
GCC 2.8.1. I run the configure --with-stabs and everything runs fine. I
then proceed to try and make LANGUAGES=c and it goes through and finally
exits with this error:

cc: Error: toplev.c, line 939: In this declaration, "rusage" has no linkage
and
is of an incomplete type.
  struct rusage rusage;
----------------^
*** Exit 1
Stop.

Any help would be appreciated as I am going on after this to install
libstdc++-2.8.1 then compile groff-1.11a and finally compile the new
sendmail 8.9.1. We have always just had the standard cc installed and have
not had any gcc or gc++ compilers installed before this.

I have attached the entire output of the configure --with-stabs and make
LANGUAGES=c below my signature line if you need further output than just the
above error text.

Many thanks in advance.

Regards,

Chad J. LaFrenz
Senior System Administrator
RoFIntUG

V: 970-945-4920 F: 970-947-1923

Proudly serving the Aspen, Glenwood Springs, Rifle, and Vail Valleys.

http://www.rof.net


# ./configure --with-stabs
creating cache ./config.cache
checking host system type... alphaev56-dec-osf4.0d
checking target system type... alphaev56-dec-osf4.0d
checking build system type... alphaev56-dec-osf4.0d
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc ) works... yes
checking whether the C compiler (cc ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether make sets ${MAKE}... yes
checking for mawk... no
checking for gawk... gawk
checking for flex... flex
checking for yywrap in -lfl... no
checking for ranlib... ranlib
checking for bison... no
checking for byacc... no
checking for a BSD compatible install... /usr/bin/installbsd -c
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for limits.h... yes
checking for stddef.h... yes
checking for string.h... yes
checking for strings.h... yes
checking for stdlib.h... yes
checking for time.h... yes
checking for fcntl.h... yes
checking for unistd.h... yes
checking for sys/file.h... no
checking for sys/time.h... no
checking for sys/resource.h... no
checking for sys/param.h... no
checking for sys/times.h... yes
checking for inttypes.h... no
checking for strerror... yes
checking for putenv... yes
checking for popen... yes
checking for vprintf... yes
checking for bcopy... yes
checking for bzero... yes
checking for bcmp... yes
checking for index... yes
checking for rindex... yes
checking for kill... yes
checking for getrlimit... yes
checking for setrlimit... yes
checking for sysconf... yes
checking whether malloc must be declared... no
checking whether realloc must be declared... no
checking whether calloc must be declared... no
checking whether free must be declared... no
checking whether index must be declared... no
checking whether rindex must be declared... no
checking whether getenv must be declared... no
checking whether sbrk must be declared... no
checking for sys_siglist declaration in signal.h or unistd.h... no
Using `./config/alpha/alpha.c' to output insns.
Using `./config/alpha/alpha.md' as machine description file.
Using the following target machine macro files:
        ./config/alpha/alpha.h
        ./config/dbx.h
Using `./config/alpha/xm-alpha.h' as host machine macro file.
Using `./objc/thr-single.c' as Objective-C Runtime thread file.
Links are now set up to build a native compiler for alphaev56-dec-osf4.0d
updating cache ./config.cache
creating ./config.status
creating Makefile
creating auto-config.h
Merged alpha/x-alpha.
Created `objc/Makefile'.
# make LANGUAGES=c
cc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config -DGCC_INCLUDE_DI
R=\"
/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.8.1/include\" -DGPLUSPLUS_IN
CLUD
E_DIR=\"/usr/local/include/g++\" -DOLD_GPLUSPLUS_INCLUDE_DIR=\"/usr/local/l
ib/g
++-include\" -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" -DCROSS_INCLUDE_DI
R=\"
/usr/local/lib/gcc-lib/alphaev56-dec-osf4.0d/2.8.1/sys-include\" -DTOOL_INC
LUDE
_DIR=\"/usr/local/alphaev56-dec-osf4.0d/include\" -c `echo ./cccp.c | sed
's,^\
./,,'`
cc: Warning: /usr/include/signal.h, line 84: "extern" is an invalid
preprocessor
 directive, and is being ignored.
#extern void (*__R(signal) __((int, void (*)(int)))) __((int));
-^
cc: Warning: cccp.c, line 1306: In this statement, the expression
"simplify_file
name(...)" modifies "i", and fetches its value in a computation that is not
used
 to produce the modified value without an intervening sequence point. This
beha
vior is undefined.
            simplify_filename (pend_includes[i] = argv[++i]);
------------^
cc: Warning: cccp.c, line 1312: In this statement, the expression
"simplify_file
name(...)" modifies "i", and fetches its value in a computation that is not
used
or is undefined.
            simplify_filename (pend_files[i] = argv[++i]);
------------^
cc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config -c ./cexp.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config version.c
cc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config -DPREFIX=\"/usr/
loca
l\" -c `echo ./prefix.c | sed 's,^\./,,'`
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config obstack.c
cc -DIN_GCC -g -DHAVE_CONFIG_H -o cccp cccp.o cexp.o prefix.o
version.o
obstack.o ` case "cc" in "cc") echo "" ;; esac ` -lmld
rm -f cpp
ln cccp cpp > /dev/null 2>&1 || cp cccp cpp
cc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config -c ./c-parse.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-lang.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-lex.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-pragma.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-decl.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-typeck.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-convert.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-aux-info.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-common.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config c-iterate.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config ./genattr.c
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config rtl.c
cc -DIN_GCC -g -DHAVE_CONFIG_H -o genattr genattr.o rtl.o ` case
"obstac
k.o" in ?*) echo obstack.o ;; esac ` ` case "cc"_at_"" in "cc"_at_?*) echo ;;
esac `
` case "" in ?*) echo ;; esac ` -lmld
./genattr ./config/alpha/alpha.md > tmp-attr.h
./move-if-change tmp-attr.h insn-attr.h
touch s-attr
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config ./gencodes.c
cc -DIN_GCC -g -DHAVE_CONFIG_H -o gencodes gencodes.o rtl.o ` case
"obst
ack.o" in ?*) echo obstack.o ;; esac ` ` case "cc"_at_"" in "cc"_at_?*) echo ;;
esac
` ` case "" in ?*) echo ;; esac ` -lmld
./gencodes ./config/alpha/alpha.md > tmp-codes.h
./move-if-change tmp-codes.h insn-codes.h
touch s-codes
cc -c -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config ./genconfig.c
cc -DIN_GCC -g -DHAVE_CONFIG_H -o genconfig genconfig.o rtl.o ` case
"ob
stack.o" in ?*) echo obstack.o ;; esac ` ` case "cc"_at_"" in "cc"_at_?*) echo ;;
esa
c ` ` case "" in ?*) echo ;; esac ` -lmld
./genconfig ./config/alpha/alpha.md > tmp-config.h
./move-if-change tmp-config.h insn-config.h
touch s-config
cc -DIN_GCC -g -DHAVE_CONFIG_H -I. -I. -I./config -DUSE_COLLECT2 -
DTAR
GET_NAME=\"alphaev56-dec-osf4.0d\" -c `echo ./toplev.c | sed 's,^\./,,'`
cc: Warning: /usr/include/signal.h, line 84: "extern" is an invalid
preprocessor
 directive, and is being ignored.
#extern void (*__R(signal) __((int, void (*)(int)))) __((int));
-^
cc: Error: toplev.c, line 939: In this declaration, "rusage" has no linkage
and
is of an incomplete type.
  struct rusage rusage;
----------------^
*** Exit 1
Stop.

Received on Tue Nov 10 1998 - 21:40:25 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:38 NZDT