You are not logged in.

#1 2007-11-30 02:27:41

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

relocation R_X86_64_PC32 against...

I really don't know what to do with this, but it seems like it may be useful information.

I build x264 from subversion every time I notice an update. I've been doing it for a long time without any problems. Then on Nov. 24, I came across this error:

/usr/bin/ld: common/amd64/pixel-sse2.o: relocation R_X86_64_PC32 against `x264_pixel_sad_8x4_mmxext' 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
make: *** [libx264.so.57] Error 1

Alright, fine, another -fPIC error. I guessed that filing a bug report could be done through forum.doom9.org, and this was the result:

http://forum.doom9.org/showthread.php?p=1069246

Problem solved, right?

Today I went to build FFmpeg from subversion, and received the exact same error. The same solution also worked.

This is all beyond the scope of my understanding. I don't know if this is something that needs to be reported to somewhere or what. I do know that GCC updated right before this started to happen. Any thoughts?

Offline

#2 2007-12-02 12:17:58

Actium
Member
Registered: 2007-12-01
Posts: 20

Re: relocation R_X86_64_PC32 against...

i had exactely the same error compiling x264 with atleast revision 700. i avoided this problem by simply not building the shared library.
however building the shared object worked with revisions 702 and 705.
as of now (12:15 UTC) both x264 (rev705) and ffmpeg (rev11124) can be built without errors on my machine (i suppose u got a x86_64 one aswell).

Offline

#3 2007-12-02 16:12:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: relocation R_X86_64_PC32 against...

Cool. I just built x264 r706 without the extra ld flags. I'll report back to Doom9. Thanks.


By the way, FFmpeg from subversion still won't build without the extra flags. I just tried with r11126.

Last edited by skottish (2007-12-03 01:18:12)

Offline

Board footer

Powered by FluxBB