Subject: egcs 1.1 on pmax
To: None <tv@pobox.com, tech-toolchain@netbsd.org>
From: Erik Bertelsen <erik@mediator.uni-c.dk>
List: tech-toolchain
Date: 08/19/1998 16:36:33
1. egcs 1.1 with the supplied makefiles looks for 
   config/mipsel/mipsel.{c,md}, but the actual
   files on disk are config/mips/mips.{c,md}.

If fixing 1. by adding a few soft links, the following
two compilation problems raise their heads:

2. cpp/cexp.c: 
all ===> cpp
cc -O  -Werror  -DGCC_INCLUDE_DIR=\"\"
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/include/g++\"
-I/home/src/gnu/usr.bin/egcs/cpp/../arch
-I/home/src/gnu/usr.bin/egcs/cpp/../arch/mips
-I/home/src/gnu/usr.bin/egcs/common/obj.pmax
-I/home/src/gnu/usr.bin/egcs/cpp/../../../dist/gcc
-I/home/src/gnu/usr.bin/egcs/cpp/../../../dist/gcc/config  -DIN_GCC
-DNETBSD_NATIVE -DHAVE_CONFIG_H -DPREFIX=\"/usr\"
-DDEFAULT_TARGET_VERSION=\"egcs-2.91.54\"
-DDEFAULT_TARGET_MACHINE=\"mipsel-netbsd\"
-DSTANDARD_STARTFILE_PREFIX=\"/usr/lib/\"
-DSTANDARD_EXEC_PREFIX=\"/usr/libexec/\"
-DTOOLDIR_BASE_PREFIX=\"/usr/libexec/\" -c cexp.c
cc1: warnings being treated as errors
/home/src/gnu/usr.bin/egcs/cpp/../../../dist/gcc/cexp.y: In function
`yylex':
/home/src/gnu/usr.bin/egcs/cpp/../../../dist/gcc/cexp.y:607: warning: left
shift count >= width of type
/home/src/gnu/usr.bin/egcs/cpp/../../../dist/gcc/cexp.y:614: warning: left
shift count >= width of type
*** Error code 1 (continuing)
`all' not remade because of errors.

These two lines both contain:

       mask = MAX_WCHAR_TYPE_MASK;

with mask declared as a HOST_WIDE_INT.

3. collect2/collect2.c

all ===> collect2
cc -O  -Werror  -DTARGET_MACHINE=\"mipsel-netbsd\"
-I/home/src/gnu/usr.bin/egcs/collect2/../arch
-I/home/src/gnu/usr.bin/egcs/collect2/../arch/mips
-I/home/src/gnu/usr.bin/egcs/common/obj.pmax
-I/home/src/gnu/usr.bin/egcs/collect2/../../../dist/gcc
-I/home/src/gnu/usr.bin/egcs/collect2/../../../dist/gcc/config  -DIN_GCC
-DNETBSD_NATIVE -DHAVE_CONFIG_H -DPREFIX=\"/usr\"
-DDEFAULT_TARGET_VERSION=\"egcs-2.91.54\"
-DDEFAULT_TARGET_MACHINE=\"mipsel-netbsd\"
-DSTANDARD_STARTFILE_PREFIX=\"/usr/lib/\"
-DSTANDARD_EXEC_PREFIX=\"/usr/libexec/\"
-DTOOLDIR_BASE_PREFIX=\"/usr/libexec/\" -c
/home/src/gnu/usr.bin/egcs/collect2/../../../dist/gcc/collect2.c
/home/src/gnu/usr.bin/egcs/collect2/../../../dist/gcc/collect2.c:105:
ldfcn.h: No such file or directory
*** Error code 1 (continuing)
`all' not remade because of errors.

1. is a consequence of the recent debate about mips vs. mipsel, and
if we stay with mipsel, I suspect the solution to be as simple as 
a couple of rename operations...

I have no immediate fixes for 2 and 3, but may take another look into
it if the problems aren't obvious for Todd.

regards
Erik Bertelsen