This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Can't build 3.3.5 without getting java?


I'm trying to bring an old machine (Solaris 2.5.1, Sparc, Sun4c) up
to date.  It has been my experience that I can't build GCC with a
version of gcc that is too old.  Thus, to reach gcc-3.4.3 I'm trying
to build gcc-3.3.5 first, with 2.95.2

I have a build script <quote>

#!/bin/sh -x

PATH=/bin:/usr/sbin:/usr/ccs/bin:/etc:/usr/local/bin:/opt/sfw/bin:/usr/openwin/bin
export PATH

CONFIG_SHELL=/bin/sh
export CONFIG_SHELL
BUILDINGVER=3.3.5
BUILD_DIR=/apps/hgs/gcc-build
GCC_SOURCE_DIR=/apps/hgs/gcc-${BUILDINGVER}

# CC="/progs/SUNWspro/bin/cc -xildoff -xarch=v9" options only needed
# for 64 bit...
# CC="/progs/SUNWspro/bin/cc"
CC=gcc
export CC

CXX=g++
export CXX

MAKE=/usr/local/bin/gmake
export MAKE

ASOPT="--with-as=/usr/local/bin/as"
LDOPT="--with-ld=/usr/local/bin/ld"
# LANGOPT="--enable-languages=c,c++,f77,java,objc"
LANGOPT="--enable-languages=c,c++,f77"

cd $BUILD_DIR
/bin/rm -rf ./*
${GCC_SOURCE_DIR}/configure $ASOPT $LDOPT $LANGOPTS --disable-nls \
--with-local-prefix=/tmp/gcc-local --without-libjava --without-gcj
&& \
# gmake --jobs=5 bootstrap-lean && \
gmake  bootstrap-lean && \
gmake check

</quote>

But it insists on building libjava and doing work with gcj --
<quote>
make[2]: Entering directory
`/apps/hgs/gcc-build/sparc-sun-solaris2.5.1/libjava'
/apps/hgs/gcc-build/gcc/gcj
-B/apps/hgs/gcc-build/sparc-sun-solaris2.5.1/libjava/
-B/apps/hgs/gcc-build/gcc/ --encoding=UTF-8 -C -g -classpath ''
-bootclasspath
/apps/hgs/gcc-build/sparc-sun-solaris2.5.1/libjava:/apps/hgs/gcc-3.3.5/libjava
\
             -d /apps/hgs/gcc-build/sparc-sun-solaris2.5.1/libjava /apps/hgs/gcc-3.3.5/libjava/java/lang/Class.java
</quote>
and so forth.

This takes abour 5 hours, gmake check fails, and I don't need
anything java and didn't ask for it.  What options should I be using
for this?  --disable-libjava, perhaps?

Why isn't --enable-languages=c,c++,f77 sufficient to stop this?

I stuck the --without options on the command line as an attempt to
stop this, but it will take another 5 hours to try any alternatives.

I'd appreciate it if someone could save me waiting another 5 hours
for another failure

       Thank you,
       Hugh


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]