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


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

Re: libjava testsuite problem under i686-pc-linux-gnu


> > I think that this is a version mismatch between libgcc_s.so.0 and
> > libgcj.so.2.  I've seen this same thing before.  You may need to
> > delete shared libraries from your install dir, or better delete the
> > install dir altogether, delete the build dir altogether and rebuild.
> > Please tell us if it still fails with the current 3.0 branch.  
> 
> I did another build today.  Still had the same problem until I installed
> the new build.  The testsuite must have been linking apps with libs
> in the install directory as you suggested.

The problem cam back again with a different symbol.  I looked at the boehm-gc
failure:

lt-gctest: error in loading shared libraries: /home/dave/gnu/gcc-3.0/objdir/i686-pc-linux-gnu/boehm-gc/.libs/libgcjgc.so.1: symbol __deregister_frame_info_bases, version GCC_3.0 not defined in file libgcc_s.so.0 with link time reference
FAIL: gctest

If I hack the script gctest as follows:

--- gctest.orig	Thu May 24 16:26:23 2001
+++ gctest	Thu May 24 16:28:14 2001
@@ -18,7 +18,7 @@
 # if CDPATH is set.
 if test "${CDPATH+set}" = set; then CDPATH=:; export CDPATH; fi
 
-relink_command="cd /home/dave/gnu/gcc-3.0/objdir/i686-pc-linux-gnu/boehm-gc; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; LD_LIBRARY_PATH=\"/home/dave/gnu/gcc-3.0/objdir/bfd:/home/dave/gnu/gcc-3.0/objdir/opcodes:/home/dave/gnu/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/src/.libs\"; export LD_LIBRARY_PATH; PATH=\"/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/var/lib/dosemu:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde/bin:/opt/Wingz3/bin:/usr/local/WordPerfect-8/wpbin:/usr/openwin/bin:.:/usr/lib/pgsql/bin:/opt/pilotsdk/bin:/sbin:/usr/sbin\"; export PATH; /home/dave/gnu/gcc-3.0/!
objdir/gcc/xgcc -B/home/dave/gnu/gcc-3.0/objdir/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -I././targ-include -I./../../../boehm-gc/./libc/include -fno-builtin -g -O2 -o \$progdir/\$file -shared-libgcc test.o  ./.libs/libgcjgc.so -lpthread -ldl -Wl,--rpath -Wl,/home/dave/gnu/gcc-3.0/objdir/i686-pc-linux-gnu/boehm-gc/.libs -Wl,--rpath -Wl,/usr/local/lib"
+relink_command="cd /home/dave/gnu/gcc-3.0/objdir/i686-pc-linux-gnu/boehm-gc; { test -z \"\${LIBRARY_PATH+set}\" || unset LIBRARY_PATH || { LIBRARY_PATH=; export LIBRARY_PATH; }; }; { test -z \"\${COMPILER_PATH+set}\" || unset COMPILER_PATH || { COMPILER_PATH=; export COMPILER_PATH; }; }; { test -z \"\${GCC_EXEC_PREFIX+set}\" || unset GCC_EXEC_PREFIX || { GCC_EXEC_PREFIX=; export GCC_EXEC_PREFIX; }; }; { test -z \"\${LD_RUN_PATH+set}\" || unset LD_RUN_PATH || { LD_RUN_PATH=; export LD_RUN_PATH; }; }; LD_LIBRARY_PATH=\"/home/dave/gnu/gcc-3.0/objdir/bfd:/home/dave/gnu/gcc-3.0/objdir/opcodes:/home/dave/gnu/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/src/.libs\"; export LD_LIBRARY_PATH; PATH=\"/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/var/lib/dosemu:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde/bin:/opt/Wingz3/bin:/usr/local/WordPerfect-8/wpbin:/usr/openwin/bin:.:/usr/lib/pgsql/bin:/opt/pilotsdk/bin:/sbin:/usr/sbin\"; export PATH; /home/dave/gnu/gcc-3.0/!
objdir/gcc/xgcc -B/home/dave/gnu/gcc-3.0/objdir/gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -I././targ-include -I./../../../boehm-gc/./libc/include -fno-builtin -g -O2 -o \$progdir/\$file -shared-libgcc test.o  ./.libs/libgcjgc.so -lpthread -ldl -Wl,--rpath -Wl,/home/dave/gnu/gcc-3.0/objdir/i686-pc-linux-gnu/boehm-gc/.libs -Wl,--rpath -Wl,/home/dave/gnu/gcc-3.0/objdir/gcc -Wl,--rpath -Wl,/usr/local/lib"
 
 # This environment variable determines our operation mode.
 if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then

With this change, the test runs successfully.  As you can see, I added a
`--rpath' linker option for the gcc build directory before the `--rpath'
option for the ${prefix}/lib directory.  This would appear to be a libtool
issue since the script gctest is built by ltmain.sh

Dave
-- 
J. David Anglin                                  dave.anglin@nrc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6605)


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