public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/26437]  New: java build fails with relocation R_X86_64_32 error
@ 2006-02-23  1:21 quanah at stanford dot edu
  2006-02-23  1:25 ` [Bug java/26437] " quanah at stanford dot edu
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2006-02-23  1:21 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug java/26437] java build fails with relocation R_X86_64_32 error
  2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
@ 2006-02-23  1:25 ` quanah at stanford dot edu
  2006-02-24 23:09 ` quanah at stanford dot edu
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2006-02-23  1:25 UTC (permalink / raw)
  To: java-prs



------- Comment #1 from quanah at stanford dot edu  2006-02-23 01:25 -------
Oh, and here are my configure options:

configure   '--datadir=${prefix}/lib' '--libexecdir=${prefix}/lib'
'--sharedstatedir=${prefix}/lib' --prefix=/usr/pubsw --enable-threads --wi
th-gnu-as --with-as=/usr/pubsw/bin/as --with-gnu-ld --with-ld=/usr/pubsw/bin/ld
--with-libintl-prefix=/usr/pubsw --with-libiconv-prefix=/usr/pubsw --disable-mu
ltilib --enable-libada --enable-languages=c,ada,c++,f95,java,objc

I'm using the following environment flags:
CFLAGS="-O -fPIC" CC=/usr/bin/gcc-3.4 CXX=/usr/bin/g++-3.4

--Quanah


-- 

quanah at stanford dot edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |quanah at stanford dot edu


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug java/26437] java build fails with relocation R_X86_64_32 error
  2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
  2006-02-23  1:25 ` [Bug java/26437] " quanah at stanford dot edu
@ 2006-02-24 23:09 ` quanah at stanford dot edu
  2006-02-24 23:24 ` quanah at stanford dot edu
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2006-02-24 23:09 UTC (permalink / raw)
  To: java-prs



------- Comment #2 from quanah at stanford dot edu  2006-02-24 23:09 -------
This seems to be because libsax_gcj_la-sax.o is not being built with -fPIC,
like it apparently needs to be:


quanah@tribes2:/afs/ir/src/pubsw/languages/gcc-build/amd64_linux26/x86_64-unknown-linux-gnu/libjava/external/sax$
more libsax_gcj_la-sax.lo
# libsax_gcj_la-sax.lo - a libtool object file
# Generated by ltmain.sh - GNU libtool 1.4a-GCC3.0 (1.641.2.256 2001/05/28
20:09:07 with GCC-local changes)
#
# Please DO NOT delete this file!
# It is necessary for linking the library.

# Name of the PIC object.
pic_object=none

# Name of the non-PIC object.
non_pic_object='libsax_gcj_la-sax.o'


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug java/26437] java build fails with relocation R_X86_64_32 error
  2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
  2006-02-23  1:25 ` [Bug java/26437] " quanah at stanford dot edu
  2006-02-24 23:09 ` quanah at stanford dot edu
@ 2006-02-24 23:24 ` quanah at stanford dot edu
  2006-02-25  0:59 ` quanah at stanford dot edu
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2006-02-24 23:24 UTC (permalink / raw)
  To: java-prs



------- Comment #3 from quanah at stanford dot edu  2006-02-24 23:24 -------
This may be in part because two variables are not being set correctly:

"PICFLAG=" "PICFLAG_FOR_TARGET="

when building in libjava/

--Quanah


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug java/26437] java build fails with relocation R_X86_64_32 error
  2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
                   ` (2 preceding siblings ...)
  2006-02-24 23:24 ` quanah at stanford dot edu
@ 2006-02-25  0:59 ` quanah at stanford dot edu
  2006-02-25 15:55 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2006-02-25  0:59 UTC (permalink / raw)
  To: java-prs



------- Comment #4 from quanah at stanford dot edu  2006-02-25 00:59 -------
Setting the PIC flags did not fix this issue.  It appears impossible at this
time to build gcj on AMD64 with 4.0.x.

--Quanah


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug java/26437] java build fails with relocation R_X86_64_32 error
  2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
                   ` (3 preceding siblings ...)
  2006-02-25  0:59 ` quanah at stanford dot edu
@ 2006-02-25 15:55 ` pinskia at gcc dot gnu dot org
  2006-02-27  3:46 ` quanah at stanford dot edu
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-25 15:55 UTC (permalink / raw)
  To: java-prs



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-02-25 15:55 -------
I cannot reproduce this, I just built 4.0.3 lately and it worked.

Can you try using a different binutils as this seems like a bug there.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal
             Status|UNCONFIRMED                 |WAITING


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug java/26437] java build fails with relocation R_X86_64_32 error
  2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
                   ` (4 preceding siblings ...)
  2006-02-25 15:55 ` pinskia at gcc dot gnu dot org
@ 2006-02-27  3:46 ` quanah at stanford dot edu
  2006-03-14  3:28 ` quanah at stanford dot edu
  2006-03-14  3:30 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2006-02-27  3:46 UTC (permalink / raw)
  To: java-prs



------- Comment #6 from quanah at stanford dot edu  2006-02-27 03:46 -------
What version of binutils would you recommend I try?


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug java/26437] java build fails with relocation R_X86_64_32 error
  2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
                   ` (5 preceding siblings ...)
  2006-02-27  3:46 ` quanah at stanford dot edu
@ 2006-03-14  3:28 ` quanah at stanford dot edu
  2006-03-14  3:30 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: quanah at stanford dot edu @ 2006-03-14  3:28 UTC (permalink / raw)
  To: java-prs



------- Comment #7 from quanah at stanford dot edu  2006-03-14 03:28 -------
gcc 4.0.3 builds for me without issue on the AMD 64, so the issue I hit must
have been something fixed between 4.0.2 and 4.0.3.  This can be closed.

--Quanah


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug java/26437] java build fails with relocation R_X86_64_32 error
  2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
                   ` (6 preceding siblings ...)
  2006-03-14  3:28 ` quanah at stanford dot edu
@ 2006-03-14  3:30 ` pinskia at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-14  3:30 UTC (permalink / raw)
  To: java-prs



------- Comment #8 from pinskia at gcc dot gnu dot org  2006-03-14 03:30 -------
Reporter reports this is fixed so closing as such.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.3


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-03-14  3:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23  1:21 [Bug java/26437] New: java build fails with relocation R_X86_64_32 error quanah at stanford dot edu
2006-02-23  1:25 ` [Bug java/26437] " quanah at stanford dot edu
2006-02-24 23:09 ` quanah at stanford dot edu
2006-02-24 23:24 ` quanah at stanford dot edu
2006-02-25  0:59 ` quanah at stanford dot edu
2006-02-25 15:55 ` pinskia at gcc dot gnu dot org
2006-02-27  3:46 ` quanah at stanford dot edu
2006-03-14  3:28 ` quanah at stanford dot edu
2006-03-14  3:30 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).