[ANNOUNCE] Libgcj in gcc tree availability.

Robert Lipe robertlipe@usa.net
Sun Dec 10 12:52:00 GMT 2000


When performing a 3-stage with a non-gcc bootstrap compiler,
GCC-specific flags are used for building fastjar.  This sends the build
up in smoke.  I'll leave it to you to decide whether the wrong compiler
is used or the wrong flags are used.  It's also discomforting that the
flags that compiler sees aren't what's displayed.

CC=/bin/cc /path/to/configure
make bootstrap
[ months pass ] 

gmake[2]: Leaving directory `/lfs/home20/robertl/tmp/negcs/texinfo'
gmake[1]: Leaving directory `/lfs/home20/robertl/tmp/negcs/texinfo'
gmake[1]: Entering directory `/lfs/home20/robertl/tmp/negcs/zlib'
true "AR_FLAGS=cr" "CC_FOR_BUILD=/bin/cc" "CFLAGS=-g" "CXXFLAGS=-g -O2" "CFLAGS_
FOR_BUILD=" "CFLAGS_FOR_TARGET=-g" "INSTALL=/bin/sh /lfs/home20/robertl/src/egcs
/install-sh -c" "INSTALL_DATA=/bin/sh /lfs/home20/robertl/src/egcs/install-sh -c
 -m 644" "INSTALL_PROGRAM=/bin/sh /lfs/home20/robertl/src/egcs/install-sh -c " "
INSTALL_SCRIPT=/bin/sh /lfs/home20/robertl/src/egcs/install-sh -c" "LDFLAGS=" "L
IBCFLAGS=-g" "LIBCFLAGS_FOR_TARGET=-g" "MAKE=gmake" "MAKEINFO=/lfs/home20/robert
l/tmp/negcs/texinfo/makeinfo/makeinfo  " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL
=/bin/sh" "EXPECT=expect" "RUNTEST=runtest" "RUNTESTFLAGS=" "exec_prefix=/usr/lo
cal" "infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local" "tool
dir=/usr/local/i586-sco-sysv5uw7.1.1" "AR=ar" "AS=as" "CC=/bin/cc" "CXX=c++" "LD
=ld" "LIBCFLAGS=-g" "NM=nm" "PICFLAG=" "RANLIB=true" "DESTDIR=" DO=all multi-do
gmake[1]: Leaving directory `/lfs/home20/robertl/tmp/negcs/zlib'
gmake[1]: Entering directory `/lfs/home20/robertl/tmp/negcs/fastjar'
/bin/cc -DHAVE_CONFIG_H -I. -I/home/robertl/src/egcs/fastjar -I. -I. -I/home/rob
ertl/src/egcs/fastjar -I/home/robertl/src/egcs/fastjar/../zlib    -g -c /home/ro
bertl/src/egcs/fastjar/jartool.c
UX:acomp: ERROR: Illegal option -- M

gmake[2]: Entering directory `/lfs/home20/robertl/tmp/negcs/fastjar'
/bin/cc -DHAVE_CONFIG_H -I. -I/home/robertl/src/egcs/fastjar -I. -I. -I/home/rob
ertl/src/egcs/fastjar -I/home/robertl/src/egcs/fastjar/../zlib    -g -c /home/ro
bertl/src/egcs/fastjar/jartool.c
UX:acomp: ERROR: Illegal option -- M
UX:acomp: ERROR: command line: -D option argument not an identifier
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 632: argumen
t is incompatible with prototype: arg #2
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1262: argume
nt is incompatible with prototype: arg #2
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1280: argume
nt is incompatible with prototype: arg #1
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1283: improp
er pointer/integer combination: op "="
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1293: argume
nt is incompatible with prototype: arg #2
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1330: argume
nt is incompatible with prototype: arg #1
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1338: argume
nt is incompatible with prototype: arg #1
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1345: argume
nt is incompatible with prototype: arg #1
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1349: argument is incompatible with prototype: arg #1
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1571: argume
nt is incompatible with prototype: arg #2
UX:acomp: WARNING: "/home/robertl/src/egcs/fastjar/jartool.c", line 1716: argume
nt is incompatible with prototype: arg #2
gmake[2]: *** [jartool.o] Error 1
gmake[2]: Leaving directory `/lfs/home20/robertl/tmp/negcs/fastjar'
gmake[1]: *** [all-fastjar] Error 2
gmake[1]: Leaving directory `/lfs/home20/robertl/tmp/negcs'
gmake: *** [bootstrap] Error 2

Sure enough, the Makefile echos one thing and then runs another
(GCC-specific) thing.  I suspe that somehow it needs to use the freshly
built compiler and not the bootstrap compiler.

%.o: %.c
        @echo '$(COMPILE) -c $<'; \
        $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
        @-cp .deps/$(*F).pp .deps/$(*F).P; \
        tr ' ' '\012' < .deps/$(*F).pp \

RJL


More information about the Java mailing list