Building libgcj.
Manosiz Bhattacharyya
mano@cse.ucsc.edu
Fri May 14 13:19:00 GMT 1999
Hi,
I am trying to build libgcj on Solaris system. According to the
build instructions in the libgcj webpage, the required thing to do was
mkdir build
cd build
../libgcj/configure
make
make install
There is no directory named libgcj in the entire source tree for
the libgcj directory. I am working on the snapshot
libgcj-snapshot-1999-05-13 . There is a directory called libjava instead
which I used. I have already the gcj build and is in my path. The
configure step works in the newly created build directory. However, the
make crashes. Here is the output:
inaja libgcj-snapshot-1999-05-13/build 74> gmake
gmake "AR_FLAGS=" "CC_FOR_BUILD=" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2"
"CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET="
"INSTALL=/usr/local/gnu/bin/install -c"
"INSTALL_DATA=/usr/local/gnu/bin/install -c -m 644"
"INSTALL_PROGRAM=/usr/local/gnu/bin/install -c "
"INSTALL_SCRIPT=/usr/local/gnu/bin/install -c " "JC1FLAGS=-g " "LDFLAGS="
"LIBCFLAGS=" "LIBCFLAGS_FOR_TARGET=" "MAKE=gmake" "MAKEINFO=makeinfo "
"PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "exec_prefix=/usr/local"
"infodir=/usr/local/info" "libdir=/usr/local/lib" "prefix=/usr/local"
"AR=ar" "AS=as" "CC=gcc" "CXX=c++" "LD=/usr/ccs/bin/ld" "LIBCFLAGS="
"NM=nm" "PICFLAG=" "RANLIB=ranlib" "DESTDIR=" DO=all multi-do
gmake[1]: Entering directory
`/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build'
if [ -z "" ]; then \
true; \
else \
rootpre=`pwd`/; export rootpre; \
srcrootpre=`cd ../libjava; pwd`/; export srcrootpre; \
lib=`echo ${rootpre} | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
compiler="gcc"; \
for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
dir=`echo $i | sed -e 's/;.*$//'`; \
if [ "${dir}" = "." ]; then \
true; \
else \
if [ -d ../${dir}/${lib} ]; then \
flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
if (cd ../${dir}/${lib}; gmake \
CFLAGS="-g -O2 ${flags}" \
CXXFLAGS="-g -O2 ${flags}" \
LIBCFLAGS=" ${flags}" \
LIBCXXFLAGS=" ${flags}" \
LDFLAGS=" ${flags}" \
all); then \
true; \
else \
exit 1; \
fi; \
else true; \
fi; \
fi; \
done; \
fi
gmake[1]: Leaving directory
`/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build'
Making all in testsuite
gmake[1]: Entering directory
`/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build/testsuite'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory
`/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build/testsuite'
gmake[1]: Entering directory
`/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build'
gmake java/lang/ConcreteProcess.class
gmake[2]: Entering directory
`/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build'
javac="gcj -C"; \
$javac -g -classpath
/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build:`cd
../libjava && /bin/pwd` \
-d /projects/learning/usr/java/libgcj-snapshot-1999-05-13/build
java/lang/ConcreteProcess.java
gcj:
/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build:/projects/learning/usr/java/libgcj-snapshot-1999-05-13/libjava:
No such file or directory
gcj: unrecognized option `-classpath'
Did not find a .class file to compile!!!
gmake[2]: *** [java/lang/ConcreteProcess.class] Error 1
gmake[2]: Leaving directory
`/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build'
gmake[1]: *** [libgcj.zip] Error 2
gmake[1]: Leaving directory
`/projects/learning/usr/java/libgcj-snapshot-1999-05-13/build'
gmake: *** [all-recursive] Error 1
It would be nice if any of you could explain what could be done about
this.
Thanking you in antcipation,
Manosiz.
**********************************************************************
Manosiz Bhattacharyya. e:mail : mano@cse.ucsc.edu
626 Koshland Way, School of Engineering,
Santa Cruz, University of California,
CA-95064,USA. Santa Cruz.
Phone: (res) (831)-420-1368 (off) (831)-459-5625
**********************************************************************
More information about the Java
mailing list