Log in

View Full Version : x264 fails to build under Linux on x86_64


skottish
24th November 2007, 17:35
I'm not really sure where to post bug reports for x264. I know that at least one x264 dev frequents this forum, so I'll post here.

The current revisions of x264 fail to build on x86_64:
/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

akupenguin
24th November 2007, 18:26
PIC is a pain. I never liked shared libraries...

skottish
24th November 2007, 20:17
PIC is a pain. I never liked shared libraries...

Yeah, it's a hassle. This particular problem crept up somewhere between rev 688 and 700. As you know better than anyone, there has been a whole lot of releases lately. I don't think I'm losing any functionality here, but I do like to upgrade x264 with every release.

Dark Shikari
24th November 2007, 20:18
Yeah, it's a hassle. This particular problem crept up somewhere between rev 688 and 700. As you know better than anyone, there has been a whole lot of releases lately. I don't think I'm losing any functionality here, but I do like to upgrade x264 with every release.I'm guessing it was the revision that added improved cacheline handling on Intel processors for improved performance; it vastly overhauled the ASM code.

skottish
24th November 2007, 20:25
I'm guessing it was the revision that added improved cacheline handling on Intel processors for improved performance; it vastly overhauled the ASM code.

Would help for me to produce more of the output?

akupenguin
24th November 2007, 21:40
Try "configure --extra-ldflags=-Wl,-Bsymbolic". However, it might be specific to GNU ld.

skottish
24th November 2007, 22:58
[skottish@localhost x264]$ x264 --version
x264 0.57.700

I'll have to run some tests of course, but it looks good. Thanks akupenguin and Dark Shikari for everything.

By the way, was this a good place to post a bug report?

Dark Shikari
24th November 2007, 22:59
[skottish@localhost x264]$ x264 --version
x264 0.57.700

I'll have to run some tests of course, but it looks good. Thanks akupenguin and Dark Shikari for everything.

By the way, was this a good place to post a bug report?Definitely; the other place I'd think would be good is #x264dev on Freenode. Akupenguin has his account "always on" on there (pengvado), so even if he's not at the computer, he'll see it later.