------- Comment #18 from rob1weld at aol dot com  2007-05-29 23:47 -------
I un-did all _my_ work and re-got the SVN to check that it builds - it doesn't.


Here is proof and result:

# cd /root/downloads/gcc-4_3-trunk

# cat LAST_UPDATED 
Tue May 29 15:18:17 UTC 2007 (revision 125164)

# svn di -r 125164
(Prints NOTHING)

# gcc/xgcc -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: /root/downloads/gcc-4_3-trunk/configure --verbose
--enable-languages=c,ada,c++,fortran,java,objc,obj-c++ --with-tune=athlon-xp
--prefix=/usr --enable-objc-gc --enable-concept-checks --disable-multilib
--with-gxx-include-dir=/usr/include/c++/4.3 --enable-libstdcxx-debug
--enable-static --enable-shared --enable-initfini-array --enable-__cxa_atexit
--enable-threads=posix --enable-version-specific-runtime-libs --enable-libssp
--enable-libmudflap --enable-libgomp --disable-werror --enable-nls
--with-included-gettext --enable-decimal-float --with-long-double-128
--enable-debug --enable-java-gc=boehm --with-x --x-includes=/usr/X11R6/include
--x-libraries=/usr/X11R6/lib --enable-java-awt=gtk,xlib --enable-gtk-cairo
--enable-qt-peer --enable-xmlj --enable-gconf-peer --enable-tool-wrappers
--enable-portable-native-sync --enable-examples --enable-libgcj-multifile
--with-stabs --enable-hash-synchronization --enable-gc-debug
--enable-interpreter --with-system-zlib --enable-libada --with-tls
--with-cpu=athlon-xp --with-arch=athlon-xp --enable-haifa
--enable-stage1-checking=assert,gc,misc,rtl,rtlflag,runtime,tree
Thread model: posix
gcc version 4.3.0 20070529 (experimental)


# cd /opt/gcc-4_3-build
# make
...(Many Many lines)
make[3]: Entering directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava'
make create-headers
make[4]: Entering directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava'
echo > gcjh.stamp
make[4]: Leaving directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava'
depbase=`echo jni-libjvm.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ./libtool --tag=CXX --mode=compile
/opt/gcc-4_3-build/./gcc/xgcc .... -o jni-libjvm.lo
/root/downloads/gcc-4_3-trunk/libjava/jni-libjvm.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo";
exit 1; fi
libtool: compile:  /opt/gcc-4_3-build/./gcc/xgcc .... -c
/root/downloads/gcc-4_3-trunk/libjava/jni-libjvm.cc  -fPIC -DPIC -o
.libs/jni-libjvm.o
libtool: compile:  /opt/gcc-4_3-build/./gcc/xgcc .... -c
/root/downloads/gcc-4_3-trunk/libjava/jni-libjvm.cc -o jni-libjvm.o >/dev/null
2>&1
...(Many lines)
        if /bin/sh ./libtool --tag=CXX --mode=compile
/opt/gcc-4_3-build/./gcc/xgcc .... -o posix-threads.lo
/root/downloads/gcc-4_3-trunk/libjava/posix-threads.cc; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo";
exit 1; fi
libtool: compile:  /opt/gcc-4_3-build/./gcc/xgcc .... -c
/root/downloads/gcc-4_3-trunk/libjava/posix-threads.cc  -fPIC -DPIC -o
.libs/posix-threads.o
libtool: compile:  /opt/gcc-4_3-build/./gcc/xgcc .... -c
/root/downloads/gcc-4_3-trunk/libjava/posix-threads.cc -o posix-threads.o
>/dev/null 2>&1
here=`pwd`; cd /root/downloads/gcc-4_3-trunk/libjava/classpath/lib; \
        find gnu java javax org sun -name .svn -prune -o -name '*.class' -print
| \
        jar -cfM@ $here/libgcj-4.3.0.jar


Note the above section uses "./libtool --tag=CXX --mode=compile" and works
fine.
Note the next  section uses "./libtool --tag=GCJ --mode=compile" and fails
after a few files.


/bin/sh ./libtool --tag=GCJ --mode=compile ....
/root/downloads/gcc-4_3-trunk/libjava/classpath/lib/java/lang/Object.class
libtool: compile:  /opt/gcc-4_3-build/gcc/gcj ....
/root/downloads/gcc-4_3-trunk/libjava/classpath/lib/java/lang/Object.class 
libtool: compile: mv -f "Object.o" "java/lang/.libs/Object.o"
libtool: compile:  /opt/gcc-4_3-build/gcc/gcj ....
/root/downloads/gcc-4_3-trunk/libjava/classpath/lib/java/lang/Object.class
>/dev/null 2>&1
libtool: compile: mv -f "Object.o" "java/lang/Object.o"
/bin/sh ./libtool --tag=GCJ --mode=compile ....
/root/downloads/gcc-4_3-trunk/libjava/classpath/lib/java/lang/Class.class
libtool: compile:  /opt/gcc-4_3-build/gcc/gcj ....
/root/downloads/gcc-4_3-trunk/libjava/classpath/lib/java/lang/Class.class 
libtool: compile: mv -f "Class.o" "java/lang/.libs/Class.o"
libtool: compile:  /opt/gcc-4_3-build/gcc/gcj ....
/root/downloads/gcc-4_3-trunk/libjava/classpath/lib/java/lang/Class.class
>/dev/null 2>&1
libtool: compile: mv -f "Class.o" "java/lang/Class.o"
echo
/root/downloads/gcc-4_3-trunk/libjava/classpath/lib/java/lang/PosixProcess*.class
> java/process-Posix.list
/bin/sh ./libtool --tag=GCJ --mode=compile ... java/process-Posix.deps
@java/process-Posix.list
libtool: compile:  /opt/gcc-4_3-build/gcc/gcj .... java/process-Posix.deps
@java/process-Posix.list 
libtool: compile: mv -f "process-Posix.o" "java/.libs/process-Posix.o"
mv: cannot stat `process-Posix.o': No such file or directory
make[3]: *** [java/process-Posix.lo] Error 1
make[3]: Leaving directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava'
make[1]: *** [all-target-libjava] Error 2
make[1]: Leaving directory `/opt/gcc-4_3-build'
make: *** [all] Error 2



Need to follow comment nine given above. 


# cp /root/downloads/libtool-1.5.22/libtool
/opt/gcc-4_3-build/i686-pc-linux-gnu/libjava
# make

Working fine ...


Other notes:

See here for using "./libtool --tag=CXX --mode=compile" instead of "./libtool
--tag=GCJ --mode=compile" to compile Java - the spec file needs fixing to do
that (add "-fuse-boehm-gc"): http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31998


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32078

Reply via email to