varenet <[email protected]> added the comment: I'm experiencing the same problem. Here's a summary of the issue:
- The issue arises only when building with --enable-shared. - The issue apparently consists in a relocation overflow (I'm suspecting very large tables are being allocated on the stack), with the following type of compiler output during the final link of libavcodec.so: libavcodec/msmpeg4.o: In function `ff_msmpeg4_decode_init': /home/varenet/ffmpeg/libavcodec/msmpeg4.c:1071: relocation truncated to fit: GPREL22 against `.bss' /home/varenet/ffmpeg/libavcodec/msmpeg4.c:1071: relocation truncated to fit: GPREL22 against `.bss' /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: ld returned 1 exit status make: *** [libavcodec/libavcodec.so.52] Error 1 After performing a (painful :P) binary search, I've eventually isolated the offending commit. The following svn revision doesn't compile: URL: svn://svn.ffmpeg.org/ffmpeg/trunk Repository Root: svn://svn.ffmpeg.org/ffmpeg Repository UUID: 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b Revision: 18553 Node Kind: directory Schedule: normal Last Changed Author: kostya Last Changed Rev: 18553 Last Changed Date: 2009-04-17 16:09:56 +0200 (Fri, 17 Apr 2009) The previous revision (r18552) builds (almost) fine (it dies later with undefined references in libswscale. These are unrelated to the present issue. The final link of libavcodec.so is carried through successfully with r18552. I've tested both gcc-4.3: gcc-4.3 --version gcc-4.3 (Debian 4.3.4-3) 4.3.4 Copyright (C) 2008 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. and gcc-4.4: gcc-4.4 --version gcc-4.4 (Debian 4.4.1-4) 4.4.1 Copyright (C) 2009 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Both fail to build r18553 with --enable-shared Note that the above error message is the one from the failed attempt at building r18553. Current HEAD has a slightly different error message, (another object fails to link into the .so, but the cause is likely the same). HTH PS: I can provide remote access to an ia64 box if that can help. ---------- title: Doesn't build on ia64 arch -> Doesn't build on ia64 arch with --enable-shared _____________________________________________________ FFmpeg issue tracker <[email protected]> <https://roundup.ffmpeg.org/roundup/ffmpeg/issue1182> _____________________________________________________
