Bug 212848

Summary: Error: bad register name `%r'
Product: [Fedora] Fedora Reporter: sean <seandarcy>
Component: gccAssignee: Jakub Jelinek <jakub>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 4.1.1-32 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-11-05 13:00:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
preprocessed source none

Description sean 2006-10-29 17:26:44 UTC
Description of problem:
building ffmpeg:

........
{standard input}: Assembler messages:

gcc -I/usr/src/redhat/BUILD/ffmpeg/libswscale   -DHAVE_AV_CONFIG_H
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
-I/usr/src/redhat/BUILD/ffmpeg -I/usr/src/redhat/BUILD/ffmpeg
-I/usr/src/redhat/BUILD/ffmpeg/libavutil -fPIC  -march=k8 -funswitch-loops
-ftree-vectorize     -pipe -frename-registers -mfpmath=sse -fomit-frame-pointer
-pthread -g -Wdeclaration-after-statement -Wall -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3  -c -o
cavs.o cavs.c
{standard input}:11102: Warning: end of file not at end of a line; newline inserted
{standard input}:11968: Error: bad register name `%r'
gcc: Internal error: Killed (program cc1)

Version-Release number of selected component (if applicable):

binutils-2.17.50.0.6-2.x86_6
gcc-4.1.1-31.x86_64



How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 sean 2006-10-29 17:29:09 UTC
Sorry, cut and paste error:

..............
gcc -I/usr/src/redhat/BUILD/ffmpeg/libswscale   -DHAVE_AV_CONFIG_H
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
-I/usr/src/redhat/BUILD/ffmpeg -I/usr/src/redhat/BUILD/ffmpeg
-I/usr/src/redhat/BUILD/ffmpeg/libavutil -fPIC  -march=k8 -funswitch-loops
-ftree-vectorize     -pipe -frename-registers -mfpmath=sse -fomit-frame-pointer
-pthread -g -Wdeclaration-after-statement -Wall -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3  -c -o
cavs.o cavs.c

{standard input}: Assembler messages:
{standard input}:11102: Warning: end of file not at end of a line; newline inserted
{standard input}:11968: Error: bad register name `%r'
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
...........

Comment 2 Jakub Jelinek 2006-10-29 17:42:40 UTC
Please preprocess the source (assuming it the problem reproduceable; replace -c
with -E and cavs.o with cavs.i on the command line) and attach here.
Killed (program cc1) means that either some other process or kernel killed cc1,
so it might very well not be a gcc bug at all, it would be a bug only if gcc
needed excessively much memory compared to how big the source is.

Comment 3 sean 2006-10-29 18:12:31 UTC
Created attachment 139673 [details]
preprocessed source

cavs.i from:

 gcc -I/usr/src/redhat/BUILD/ffmpeg/libswscale	 -DHAVE_AV_CONFIG_H
-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE
-I/usr/src/redhat/BUILD/ffmpeg -I/usr/src/redhat/BUILD/ffmpeg
-I/usr/src/redhat/BUILD/ffmpeg/libavutil -fPIC	-march=k8 -funswitch-loops
-ftree-vectorize     -pipe -frename-registers -mfpmath=sse -fomit-frame-pointer
-pthread -g -Wdeclaration-after-statement -Wall -Wno-switch
-Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3	-E -o
cavs.i cavs.c

Comment 4 sean 2006-10-29 18:33:59 UTC
You're correct about the memory. 

I ran it again watching top. I have 1 gig of ram and 4 gig swap. cc1 kept going
until it had 3950m of virtual ram.


Comment 5 sean 2006-11-04 13:14:11 UTC
Is this a gcc bug, or should I report it to ffmpeg list?

And if it is gcc bug, is there a workaround while it's being looked at?

Comment 6 Jakub Jelinek 2006-11-05 13:00:33 UTC
Fixed in gcc-4.1.1-32 in rawhide.