Subject: gcc-2.95.2
To: None <port-alpha@netbsd.org>
From: Ray Phillips <r.phillips@mailbox.uq.edu.au>
List: port-alpha
Date: 02/14/2000 12:44:15
Dear Port Alpha:

Has anyone succeeded in installing gcc-2.95.2 under 1.4.1?  I wonder if
it's been written to compile correctly under NetBSD?

My reason for trying to to replace egcs-2.91.60 19981201 (egcs-1.1.1
release) which comes with 1.4.1 is that I want to install teTeX-1.0.6, and
there's a note in the teTeX release which says egcs-1.29.60 won't compile
one of its files.

(Excuse a couple of basic questions, but GCC and EGCS are one and the same
aren't they?  What does EGCS stand for?)

As per the GCC installation instructions, I downloaded these files into the
same directory and unzipped them:

gcc-2.95.2.tar.gz
gcc-chill-2.95.2.tar.gz
gcc-core-2.95.2.tar.gz
gcc-g++-2.95.2.tar.gz
gcc-g77-2.95.2.tar.gz
gcc-java-2.95.2.tar.gz
gcc-objc-2.95.2.tar.gz

then created a separate directory for the object code and ran configure
from there.  The problem I experienced was with the next step which is to
execute 'make bootstrap'  I used GNU make version 3.78.1.  Many warnings
were generated such as:

warning: type mismatch in implicit declaration for built-in function `strcpy'
warning: mktemp() possibly used unsafely, use mkstemp() or mkdtemp()
warning: assignment discards `const' from pointer target type
mv: rename s-crt to stage1/s-crt: No such file or directory
mv: rename s-crtS to stage1/s-crtS: No such file or directory

and finally make halted with this statement:

make[2]: Entering directory `/usr/home/ray/gcc/install/objdir/gcc'
stage1/xgcc -Bstage1/ -B/usr/local/alpha-unknown-netbsd1.4.1/bin/  -DIN_GCC
-DHA
IFA    -O2 -g -O2  -DHAVE_CONFIG_H    -I. -I../../gcc-2.95.2/gcc
-I../../gcc-2.9
5.2/gcc/config -I../../gcc-2.95.2/gcc/../include \

-DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/alpha-unknown-netbsd1.4.1/2.95.2/in
c
lude\" \

-DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/alpha-unknown-netbsd1.4.1/2.9
5
.2/../../../..`echo /usr/local | sed -e 's|^/usr/local||' -e
's|/[^/]*|/..|g'`/
include/g++-3\" \
  -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \

-DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/alpha-unknown-netbsd1.4.1/2.95.2/
.
./../../../alpha-unknown-netbsd1.4.1/sys-include\" \

-DTOOL_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/alpha-unknown-netbsd1.4.1/2.95.2/.
.
/../../../alpha-unknown-netbsd1.4.1/include\" \
  -c `echo ../../gcc-2.95.2/gcc/cccp.c | sed 's,^\./,,'`
../../gcc-2.95.2/gcc/cccp.c: In function `vnotice':
../../gcc-2.95.2/gcc/cccp.c:9290: incompatible type for argument 3 of
`vfprintf'
make[2]: *** [cccp.o] Error 1
make[2]: Leaving directory `/usr/home/ray/gcc/install/objdir/gcc'
make[1]: *** [bootstrap] Error 2
make[1]: Leaving directory `/usr/home/ray/gcc/install/objdir/gcc'
make: *** [bootstrap] Error 2


Ray Phillips