[SOLVED] git x264: final link failed: Nonrepresentable section on output
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
git x264: final link failed: Nonrepresentable section on output
I have been building x264 from git for some time but I am stuck with the latest pull from git (on Slackware -current) :
Code:
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../i486-slackware-linux/bin/ld: libx264.a(dct.o)(.text+0x2be8): unresolvable R_386_32 relocation against symbol `x264_dct4_weight2_zigzag'
/usr/lib/gcc/i486-slackware-linux/4.5.3/../../../../i486-slackware-linux/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [x264] Error 1
when I upgrade my x264 installs, usually first I try to build what I see tagged as stable on git: that seems to build fine here (on multilib).
maybe there's something that broke it in the last two commits.
I am using my own rather ugly script for x264 but I used your script on the same version, but on my 32bit system, and the error was the same as my original post. I have retreated to an older version at the moment but will keep a keen eye on the git repository for updates. Mind you it would be nice if somebody could reproduce my error message .
I could successfully compile a 32-bit package of x264 (20110801 snapshot) on 32-bit Slackware-current. No idea what's wrong with your setup.
I uploaded the build log here: http://pastebin.com/bVHZPFrG
Thanks Eric, you gave me the clue to solve the problem!! On your build:
Code:
Platform: X86
System: LINUX
cli: yes
libx264: internal
shared: yes
static: no
asm: yes
interlaced: yes
avs: no
lavf: no
ffms: no
gpac: no
gpl: yes
thread: posix
filters: crop select_every
debug: no
gprof: no
strip: no
PIC: no
visualize: yes
bit depth: 8
So your build does not have import support through FFmpeg libraries built in while my own draws support from the git FFmpeg I have installed. Once I ran my script with --disable-lavf compilation succeeded. Looks like a current git x264 vs current git FFmpeg issue. Thanks for helping out!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.