[FFmpeg-trac] #1252(undetermined:new): Build error on PPC64 linux with "-m64"

FFmpeg trac at avcodec.org
Wed Apr 25 17:12:53 CEST 2012


#1252: Build error on PPC64 linux with "-m64"
-------------------------------------+-------------------------------------
             Reporter:  thinkbrown   |                     Type:  defect
               Status:  new          |                 Priority:  important
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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.

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1252>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list