Opened 12 years ago
Closed 12 years ago
#2047 closed defect (invalid)
svn trunk does not built with gcc-4.7 prereleases
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | build system |
Version: | HEAD | Severity: | normal |
Keywords: | Cc: | compn, ojab@… | |
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
Hi,
I have recently tried to update mplayer rpm package in RPM fusion to the latest SVN. Unfortunately, it does not build with gcc-4.7 prereleases Fedora switched to. I originally reported this to ffmpeg [1], but the bug turned out to belong to mplayer:
ffmpeg/libavcodec/libavcodec.a(ffv1.o): In function `encode_init':
/builddir/build/BUILD/mplayer-export-2012-02-26/ffmpeg/libavcodec/ffv1.c:1041: undefined reference to `builtin_iround'
collect2: error: ld returned 1 exit status
make: * [mencoder] Error 1
make: * Waiting for unfinished jobs....
ffmpeg/libavcodec/libavcodec.a(ffv1.o): In function `encode_init':
/builddir/build/BUILD/mplayer-export-2012-02-26/ffmpeg/libavcodec/ffv1.c:1041: undefined reference to `builtin_iround'
collect2: error: ld returned 1 exit status
make: * [mplayer] Error 1
Full build log is attached.
Attachments (1)
Change History (9)
by , 12 years ago
Attachment: | build.log.xz added |
---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Cc: | added |
---|
could you try gcc 4.7 from gcc and not distro version?
(yes, we are playing hot potato with this bug)
comment:3 by , 12 years ago
Hmm, I don't know. I need to remind myself how does one bootstrap a compiler. I'll report back once I figure it out.
comment:4 by , 12 years ago
Cc: | added |
---|
The same error with
gcc (GCC) 4.7.0 20120302 (prerelease)
on LFS system (so gcc was built from source).
comment:5 by , 12 years ago
(to be exact):
gcc -o mplayer command.o m_property.o mixer.o mp_fifo.o …
ffmpeg/libavcodec/libavcodec.a(ffv1.o): In function `encode_init':
ffv1.c:(.text.unlikely+0x1679): undefined reference to `builtin_iround'
collect2: error: ld returned 1 exit status
make: * [mplayer] Error 1
comment:6 by , 12 years ago
Looks like related to http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01001.html and
Please document those in doc/extend.texi and make sure they do not leak into the global namespace as ifloor, etc., but are only available as builtin_ifloor, etc..
from http://gcc.gnu.org/ml/gcc-patches/2011-08/msg01003.html
mplayer builds fine with CFLAGS=-ffast-math, looks like gcc bug (I'm not a programmer, though).
full build log