public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* relocation R_X86_64_PC32: but fPIC used
@ 2005-04-24 18:12 sean darcy
  2005-04-24 18:30 ` H. J. Lu
  0 siblings, 1 reply; 7+ messages in thread
From: sean darcy @ 2005-04-24 18:12 UTC (permalink / raw)
  To: binutils

I'm trying to build smilutils, a video conversion utility, on amd64.

g++ -shared -nostdlib
/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64/crti.o
/usr/lib/gcc/x86_64-redhat-linux/4.0.0/crtbeginS.o  .libs/avi.o
.libs/filehandler.o .libs/frame.o .libs/playlist.o .libs/riff.o
.libs/error.o .libs/preferences.o .libs/gnome-stubs.o  -L/usr/lib64
-lgdk_pixbuf-2.0 -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lquicktime
-lpng -ldl /usr/lib64/libdv.so -lxml2 -lz -lpthread
-L/usr/lib/gcc/x86_64-redhat-linux/4.0.0
-L/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64
-L/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../.. -L/lib/../lib64
-L/usr/lib/../lib64 -lstdc++ -lm -lc -lgcc_s
/usr/lib/gcc/x86_64-redhat-linux/4.0.0/crtendS.o
/usr/lib/gcc/x86_64-redhat-linux/4.0.0/../../../../lib64/crtn.o  
-mtune=athlon64 -fPIC -Wl,-soname -Wl,libkinolegacy.so.0 -o
.libs/libkinolegacy.so.0.0.0
/usr/bin/ld: .libs/filehandler.o: relocation R_X86_64_PC32 against
`std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::~basic_string()@@GLIBCXX_3.4' can not be used when making a shared
object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status

But they're al built with -fPIC:

 file .libs/*.o
.libs/avi.o:         ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/error.o:       ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/filehandler.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/frame.o:       ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/gnome-stubs.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/playlist.o:    ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/preferences.o: ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped
.libs/riff.o:        ELF 64-bit LSB relocatable, AMD x86-64, version 1
(SYSV), not stripped


For example:

g++ -DHAVE_CONFIG_H -I. -I. -I.. -Wno-deprecated
-I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include
-I/usr/include/gtk-2.0 -I/usr/include/libxml2 -O3 -fPIC -ffast-math
-fomit-frame-pointer -funit-at-a-time -mtune=athlon64 -ftree-vectorize
-fvisibility-inlines-hidden -I/usr/include/ffmpeg -MT filehandler.lo
-MD -MP -MF .deps/filehandler.Tpo -c filehandler.cc -fPIC -DPIC -o
.libs/filehandler.o

Puzzled.

sean

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

* Re: relocation R_X86_64_PC32: but fPIC used
  2005-04-24 18:12 relocation R_X86_64_PC32: but fPIC used sean darcy
@ 2005-04-24 18:30 ` H. J. Lu
  2005-04-24 19:35   ` sean
  0 siblings, 1 reply; 7+ messages in thread
From: H. J. Lu @ 2005-04-24 18:30 UTC (permalink / raw)
  To: sean darcy; +Cc: binutils

On Sun, Apr 24, 2005 at 02:12:00PM -0400, sean darcy wrote:
> I'm trying to build smilutils, a video conversion utility, on amd64.
> 
> /usr/bin/ld: .libs/filehandler.o: relocation R_X86_64_PC32 against
> `std::basic_string<char, std::char_traits<char>, std::allocator<char>
> >::~basic_string()@@GLIBCXX_3.4' can not be used when making a shared
> object; recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
> collect2: ld returned 1 exit status
> 
> But they're al built with -fPIC:
> 

Is this the same as

http://sources.redhat.com/bugzilla/show_bug.cgi?id=584

Can you try the latest Linux binutils?


H.J.

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

* Re: relocation R_X86_64_PC32: but fPIC used
  2005-04-24 18:30 ` H. J. Lu
@ 2005-04-24 19:35   ` sean
       [not found]     ` <5460e33305042412557e7e0069@mail.gmail.com>
  0 siblings, 1 reply; 7+ messages in thread
From: sean @ 2005-04-24 19:35 UTC (permalink / raw)
  To: binutils

H. J. Lu wrote:
..................
> 
> Can you try the latest Linux binutils?
> 

Thaks for the quick reply.

But...I got 2.15.97.   Same result.

sean

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

* Fwd: relocation R_X86_64_PC32: but fPIC used
       [not found]       ` <c195ebf705042413547d664977@mail.gmail.com>
@ 2005-04-24 21:04         ` sean darcy
  2005-04-24 21:49           ` H. J. Lu
  0 siblings, 1 reply; 7+ messages in thread
From: sean darcy @ 2005-04-24 21:04 UTC (permalink / raw)
  To: binutils

---------- Forwarded message ----------
From: sean darcy <seandarcy2@gmail.com>
Date: Apr 24, 2005 4:54 PM
Subject: Re: relocation R_X86_64_PC32: but fPIC used
To: Christian Joensson <christian.joensson@gmail.com>


>
> H.J. made a release off of mainline a few weeks ago... maybe you could
> try that one also?
>

Got and installed binutils-2.16.90.0.1-1.x86_64.rpm

No joy.

sean

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

* Re: Fwd: relocation R_X86_64_PC32: but fPIC used
  2005-04-24 21:04         ` Fwd: " sean darcy
@ 2005-04-24 21:49           ` H. J. Lu
  2005-04-25  0:55             ` sean
  0 siblings, 1 reply; 7+ messages in thread
From: H. J. Lu @ 2005-04-24 21:49 UTC (permalink / raw)
  To: sean darcy; +Cc: binutils

On Sun, Apr 24, 2005 at 05:04:11PM -0400, sean darcy wrote:
> ---------- Forwarded message ----------
> From: sean darcy <seandarcy2@gmail.com>
> Date: Apr 24, 2005 4:54 PM
> Subject: Re: relocation R_X86_64_PC32: but fPIC used
> To: Christian Joensson <christian.joensson@gmail.com>
> 
> 
> >
> > H.J. made a release off of mainline a few weeks ago... maybe you could
> > try that one also?
> >
> 
> Got and installed binutils-2.16.90.0.1-1.x86_64.rpm
> 

Please first double check that your bug isn't one of

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297

Then if you still believe it is a binutils bug, please open a bug
report at

http://www.sourceware.org/bugzilla/

with a testcase.


H.J.

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

* Re: Fwd: relocation R_X86_64_PC32: but fPIC used
  2005-04-24 21:49           ` H. J. Lu
@ 2005-04-25  0:55             ` sean
  2005-04-25  0:57               ` sean darcy
  0 siblings, 1 reply; 7+ messages in thread
From: sean @ 2005-04-25  0:55 UTC (permalink / raw)
  To: binutils

H. J. Lu wrote:
> On Sun, Apr 24, 2005 at 05:04:11PM -0400, sean darcy wrote:
> 

> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297
> 
> Then if you still believe it is a binutils bug, please open a bug
> report at
> 
> http://www.sourceware.org/bugzilla/
> 
> with a testcase.
> 
This may be bug 19664. If I don't use 
-fvisibility-inlines-hidden it works.

Odd, I thought visibility-inlines-hidden should affect the 
linker.

But what do I know.

sean

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

* Re: Fwd: relocation R_X86_64_PC32: but fPIC used
  2005-04-25  0:55             ` sean
@ 2005-04-25  0:57               ` sean darcy
  0 siblings, 0 replies; 7+ messages in thread
From: sean darcy @ 2005-04-25  0:57 UTC (permalink / raw)
  To: binutils

On 4/24/05, sean <seandarcy2@gmail.com> wrote:
> H. J. Lu wrote:
> > On Sun, Apr 24, 2005 at 05:04:11PM -0400, sean darcy wrote:
> >
> 
> >
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19664
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218
> > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297
> >
> > Then if you still believe it is a binutils bug, please open a bug
> > report at
> >
> > http://www.sourceware.org/bugzilla/
> >
> > with a testcase.
> >
> This may be bug 19664. If I don't use
> -fvisibility-inlines-hidden it works.
> 
> Odd, I thought visibility-inlines-hidden should affect the
> linker.
> 

Typing without brain in gear, I mean't should *not*.

> But what do I know.
> 
> sean
> 
>

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

end of thread, other threads:[~2005-04-25  0:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-04-24 18:12 relocation R_X86_64_PC32: but fPIC used sean darcy
2005-04-24 18:30 ` H. J. Lu
2005-04-24 19:35   ` sean
     [not found]     ` <5460e33305042412557e7e0069@mail.gmail.com>
     [not found]       ` <c195ebf705042413547d664977@mail.gmail.com>
2005-04-24 21:04         ` Fwd: " sean darcy
2005-04-24 21:49           ` H. J. Lu
2005-04-25  0:55             ` sean
2005-04-25  0:57               ` sean darcy

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).