Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45637 - mjpegtools-1.6.1.90-r2 doesn't compile with -O3
Summary: mjpegtools-1.6.1.90-r2 doesn't compile with -O3
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-24 12:37 UTC by Ludootje
Modified: 2004-03-24 23:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ludootje 2004-03-24 12:37:57 UTC
I wanted to emerge k3b, and mjpegtools is one of its requirements.
When emerge tried to 'make' mjpegtools-1.6.1.90-r2, this error occured:

 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.1.90\" -I/usr/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include -I/usr/include/quicktime -I/usr/X11R6/include -I /usr/X11R6/include -I../utils -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -mcpu=i686 -march=i686 -03 -mcpu=athlon-xp -pipe -fomit-frame-pointer -mno-sse2 -Wall -Wunused -c audiolib.c -MT liblavrec_la-audiolib.lo -MD -MP -MF .deps/liblavrec_la-audiolib.TPlo  -DPIC
gcc: unrecognized option `-03'
 gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include -DG_LOG_DOMAIN=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.1.90\" -I/usr/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/local/include -I/usr/include/quicktime -I/usr/X11R6/include -I /usr/X11R6/include -I../utils -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/X11R6/include -mcpu=i686 -march=i686 -03 -mcpu=athlon-xp -pipe -fomit-frame-pointer -mno-sse2 -Wall -Wunused -c liblavrec.c -MT liblavrec_la-liblavrec.lo -MD -MP -MF .deps/liblavrec_la-liblavrec.TPlo  -DPIC
gcc: unrecognized option `-03'
mv -f liblavrec_la-audiolib.o .libs/liblavrec_la-audiolib.o
mv: cannot stat `liblavrec_la-audiolib.o': No such file or directory
make[2]: *** [liblavrec_la-audiolib.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f liblavrec_la-liblavrec.o .libs/liblavrec_la-liblavrec.o
mv: cannot stat `liblavrec_la-liblavrec.o': No such file or directory
make[2]: *** [liblavrec_la-liblavrec.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1.90-r2/work/mjpegtools-1.6.1.90/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.1.90-r2/work/mjpegtools-1.6.1.90'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.6.1.90-r2 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! compile problem

Because of the line "gcc: unrecognized option `-03'", I tried to remove the '-O3' of my CFLAGS:
gax ~ # grep ^CFLAGS /etc/make.conf
CFLAGS="-03 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
gax ~ # CFLAGS="-mcpu=athlon-xp -pipe -fomit-frame-pointer" /usr/bin/emerge mjpegtools

This time, it worked fine.

Reproducible: Always
Steps to Reproduce:
1. add -O3 to your CFLAGS
2. emerge mjpegtools (version 1.6.1.90-r2)

Actual Results:  
Error message from emerge.

Expected Results:  
Install :)

gax ~ # cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 8
model name      : AMD Athlon(tm) XP 2400+
stepping        : 1
cpu MHz         : 2004.450
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
pat pse36 mmx fxsr sse syscall mmxext 3dnowext 3dnow
bogomips        : 3964.92

gax ~ # grep ^CFLAGS /etc/make.conf
CFLAGS="-03 -mcpu=athlon-xp -pipe -fomit-frame-pointer"
gax ~ # grep ^CXXFLAGS /etc/make.conf
CXXFLAGS="${CFLAGS}"
Comment 1 Ludootje 2004-03-24 12:40:00 UTC
Sorry, I forgot to add gcc's version:
gax ~ # gcc --version
gcc (GCC) 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)

BTW this is linux-2.6.1, although this is probably irrelevant.
Comment 2 Patrick Kursawe (RETIRED) gentoo-dev 2004-03-24 23:45:46 UTC
Yes, this is irrelevant, since you used -03 (zero three) instead of -O3 (letter O three) which is indeed an unknown option for gcc (and by the way often worse than O2 on modern processors since it tends to increase code size).