Red Hat Bugzilla – Bug 805958
"internal compiler error: Segmentation fault" error during xbmc compilation
Last modified: 2012-03-26 03:34:59 EDT
Created attachment 572015 [details]
Preprocessed source file
Description of problem:
When I try to compile the latest snapshot of XBMC using this specfile, I got the following g++ error:
In file included from /home/gokcen/rpmbuild/BUILD/xbmc-xbmc-f38655f/lib/DllAvUtil.h:42:0,
/usr/include/ffmpeg/libavcodec/avcodec.h:533:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/cccKxqHv.out file, please attach this to your bugreport.
make: *** [CDDARipper.o] Error 1
make: *** [xbmc/cdrip/cdrip.a] Error 2
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.MjbBth (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.MjbBth (%build)
I have tried with -O0 and default -O2 optimization flags, and both produced the same error.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Prepare a tarball of latest XBMC 11 Eden branch.
2. Update xbmc.spec accordingly.
3. Use rpmbuild -bb to compile spec file.
I'm using up-to-date Fedora 17 with updates-testing repository. Preprocessed source file is attached.
Created attachment 572016 [details]
Related ffmpeg header
referenced ffmpeg header is attached.
__attribute__((deprecated)) on enum AVLPCType is misplaced, previously GCC would just warn that it ignores the attribute there and suggest where to put it, but 4.7/4.8 crashes on it. Fixing that upstream now, but please report the misplaced attribute to whomever is responsible for that.
Thank you for quick response and gcc fix. I'll also inform ffmpeg package maintainer of rpmfusion repository.
Recently prepared gcc-4.7.0-1 package and gcc-4.7.0-20120322.tar.bz2 tarball does not include this fix, right?
It doesn't, it will be only in subsequent updates.