#11763 NORM Not Tri: gcc segfault compiling ffmpeg on xo-1.75 12.1.0 os6

Zarro Boogs per Child bugtracker at laptop.org
Fri Apr 6 21:21:47 EDT 2012

#11763: gcc segfault compiling ffmpeg on xo-1.75 12.1.0 os6
 Reporter:  carrott       |                 Owner:               
     Type:  defect        |                Status:  new          
 Priority:  normal        |             Milestone:  Not Triaged  
Component:  not assigned  |               Version:  not specified
 Keywords:                |           Next_action:  never set    
 Verified:  0             |   Deployment_affected:               
Blockedby:                |              Blocking:               
 Compiling ffmpeg on XO-1.75 with 12.1.0 os6 ends in failure. From a clean
 install, run the following commands:

 sudo yum install -y --nogpgcheck yum-utils gcc make

 wget -c

 rpm -i ffmpeg-0.8.9-1.fc17.src.rpm

 tar -xjf ~/rpmbuild/SOURCES/ffmpeg-0.8.9.tar.bz2
 cd ffmpeg-0.8.9

 after approximately 20 minutes, it ends with:

 libavcodec/ansi.c:162:17: note: ‘width’ was declared here
 CC      libavcodec/apedec.o
 libavcodec/apedec.c: In function ‘entropy_decode.constprop.1’:
 libavcodec/apedec.c:470: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.
 The bug is not reproducible, so it is likely a hardware or OS problem.
 make: *** [libavcodec/apedec.o] Error 1

 I managed to capture the gcc command line:

 gcc -I. -I/home/olpc/ffmpeg-0.8.9 -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64
 -DHAVE_AV_CONFIG_H -std=c99 -fomit-frame-pointer -marm -pthread -g
 -Wdeclaration-after-statement -Wall -Wno-parentheses -Wno-switch
 -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-
 sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-
 prototypes -Wno-pointer-to-int-cast -O3 -fno-math-errno -fno-signed-zeros
 -fno-tree-vectorize -Werror=implicit-function-declaration -Werror=missing-
 prototypes -MMD -MF libavcodec/apedec.d -MT libavcodec/apedec.o -c -o
 libavcodec/apedec.o libavcodec/apedec.c

 It doesn't always fail but happened on 3 different laptops. If it
 succeeds, make fails with the same error on a different file. I haven't
 successfully compiled ffmpeg.

 Adding swap doesn't seem to make a difference.

Ticket URL: <http://dev.laptop.org/ticket/11763>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system

More information about the Bugs mailing list