From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11432 invoked by alias); 23 Feb 2006 01:22:00 -0000 Received: (qmail 11287 invoked by uid 48); 23 Feb 2006 01:21:55 -0000 Date: Thu, 23 Feb 2006 01:22:00 -0000 Subject: [Bug java/26437] New: java build fails with relocation R_X86_64_32 error X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "quanah at stanford dot edu" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-02/txt/msg02607.txt.bz2 List-Id: I've been trying to get gcc-4.0.2 to build on our AMD64 box. I'm using gcc-3.4 to bootstrap it. After successfully completing the first 3 stages, gcc fails in building the java area with: /afs/ir/src/pubsw/languages/gcc-build/@sys/gcc/xgcc -shared-libgcc -B/afs/ir/src/pubsw/languages/gcc-build/@sys/gcc/ -nostdinc++ -L/afs/ir/src/pubsw/languages/gcc-build/@sys/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/afs/ir/src/pubsw/languages/gcc-build/@sys/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -B/usr/pubsw/bin/ -B/usr/pubsw/lib/ -isystem /usr/pubsw/include -isystem /usr/pubsw/sys-include -shared -nostdlib /usr/lib/../lib64/crti.o /afs/ir/src/pubsw/languages/gcc-build/@sys/gcc/crtbeginS.o -Wl,--whole-archive ./.libs/libgcj0_convenience.a ../libffi/.libs/libffi_convenience.a ../zlib/.libs/libzgcj_convenience.a ../boehm-gc/.libs/libgcjgc_convenience.a ./libltdl/.libs/libltdlc.a -Wl,--no-whole-archive -L/afs/ir/src/pubsw/languages/gcc-build/@sys/x86_64-unknown-linux-gnu/libstdc++-v3/src -L/afs/ir/src/pubsw/languages/gcc-build/@sys/x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs -L/afs/ir/src/pubsw/languages/gcc-build/@sys/x86_64-unknown-linux-gnu/libjava ./.libs/libgcj0_convenience.a -L/afs/ir/src/pubsw/languages/gcc-build/@sys/gcc -L/usr/pubsw/bin -L/usr/pubsw/lib -L/usr/local/lib -L/lib/../lib64 -L/usr/lib/../lib64 -lgcc_s -lc -lgcc_s ../libffi/.libs/libffi_convenience.a ../zlib/.libs/libzgcj_convenience.a ../boehm-gc/.libs/libgcjgc_convenience.a -lpthread ./libltdl/.libs/libltdlc.a -ldl -lgcc_s -lc -lgcc_s /afs/ir/src/pubsw/languages/gcc-build/@sys/gcc/crtendS.o /usr/lib/../lib64/crtn.o -Wl,-soname -Wl,libgcj.so.6 -o .libs/libgcj.so.6.0.0 /usr/pubsw/bin/ld: ./.libs/libgcj0_convenience.a(libsax_gcj_la-sax.o): relocation R_X86_64_32 against `org::xml::sax::helpers::NamespaceSupport$Context::class$' can not be used when making a shared object; recompile with -fPIC ./.libs/libgcj0_convenience.a(libsax_gcj_la-sax.o): could not read symbols: Bad value collect2: ld returned 1 exit status make[3]: *** [libgcj.la] Error 1 make[3]: Leaving directory `/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/@sys/x86_64-unknown-linux-gnu/libjava' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/@sys/x86_64-unknown-linux-gnu/libjava' make[1]: *** [all-target-libjava] Error 2 make[1]: Leaving directory `/afs/ir.stanford.edu/src/pubsw/languages/gcc-build/@sys' make: *** [bootstrap] Error 2 Here is specific info on the box: quanah@amd64-linux26:/afs/ir/src/pubsw/languages/gcc-4.0.2$ uname -a Linux amd64-linux26 2.6.15-1-amd64-k8-smp #2 SMP Sun Feb 12 23:44:05 UTC 2006 x86_64 GNU/Linux Here is the binutils info: quanah@amd64-linux26:/afs/ir/src/pubsw/languages/gcc-4.0.2$ ld -v GNU ld version 2.16.1 --Quanah -- Summary: java build fails with relocation R_X86_64_32 error Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: blocker Priority: P3 Component: java AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: quanah at stanford dot edu GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26437