Ticket #1252 (new defect)
Build error on PPC64 linux with "-m64"
| Reported by: | thinkbrown | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | unspecified | Keywords: | |
| Cc: | michael | Blocked By: | |
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
I attempted to build a PPC64 version of FFMPEG, and when the build system trys to ld ffprobe_g, it returns an error:
/usr/bin/ld: libavcodec/libavcodec.a(iff.o)(.text.unlikely+0x188): sibling call optimization to .opd' does not allow automatic multiple TOCs; recompile with -mminimal-toc or -fno-optimize-sibling-calls, or make .opd' extern
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
The configure command I used is as follows:
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --extra-cflags="-m64 -mcpu=G5 -mtune=G5 -mpowerpc64 -maltivec -fno-optimize-sibling-calls" --extra-cxxflags="-m64 -mcpu=G5 -mtune=G5 -mpowerpc64 -maltivec -fno-optimize-sibling-calls" --extra-ldflags="-m64 -mcpu=G5 -mtune=G5 -mpowerpc64 -maltivec -fno-optimize-sibling-calls"
I already built a 64bit version of libx264 to build against.
I checked the version of FFMPEG that built in the directory, and it exectutes and is a 64bit executable. A test encode shows that it's about twice as fast as a 32bit build (using command ./ffmpeg -i ~/Desktop/file.mpg -vcodec libx264 -preset medium -crf 16 -acodec copy ~/Desktop/file.mkv) I get around 20fps vs. 9fps on a 32bit build.



googling for this error message points to a gnu ld bug. I dont know if this issue here is caused by that bug or not but if you can , please try a different compiler and or different linker. (especially one that is known to have this bug fixed) Also please tell us the exact versions of the tools used to build