Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41021 - Compile error while emerging media-sound/mpg123-0.59s-r1
Summary: Compile error while emerging media-sound/mpg123-0.59s-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 41773 42229 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-09 14:33 UTC by Torbjörn Svensson
Modified: 2004-02-20 16:18 UTC (History)
3 users (show)

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


Attachments
Preprocessed source (ccfRVayL.out,122.20 KB, text/plain)
2004-02-09 14:37 UTC, Torbjörn Svensson
Details
Output from emerge info (emerge_info.txt,1.33 KB, text/plain)
2004-02-10 10:53 UTC, Torbjörn Svensson
Details
this patch removes the deprecated -m486 compile-options from Makefile for the linux-486- and linux-mmx-targets (m486.diff,865 bytes, patch)
2004-02-17 15:53 UTC, Thomas Veith (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Torbjörn Svensson 2004-02-09 14:33:23 UTC
While trying to emerge KDE 3.2, which at the time was masked so I hade to use ACCEPT_KEYWORDS="~x86", one of the dependencies "mpg123-0.59s-r1" failed to compile.

The output told me to file a bug report so that's what I'm doing.

If I have 


Reproducible: Always
Steps to Reproduce:
1.ACCEPT_KEYWORDS="~x86" emerge mpg123 or ACCEPT_KEYWORDS="~x86" emerge kde
2.
3.

Actual Results:  
tabinit.c: In function `make_decode_tables':
tabinit.c:83: internal compiler error: Floating point exception
Please submit a full bug report,
[...]
with preprocessed source if appropriate.
!!! ERROR: media-sound/mpg123-0.59s-r1 failed.
!!! Function src_compile, Line 56, Exitcode 2
!!! (no error message)



Expected Results:  
It should've installed :)

kernel: development-sources 2.6.1
gcc version 3.3.2 20031218 (Gentoo Linux 3.3.2-r5, propolice-3.3-7)
Comment 1 Torbjörn Svensson 2004-02-09 14:37:35 UTC
Created attachment 25296 [details]
Preprocessed source
Comment 2 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-10 02:10:35 UTC
Can you please provide the output of 'emerge info'.  It worked fine for me...

Can you please try again?  I'm also using gcc-3.3.2-r5.
Comment 3 Torbjörn Svensson 2004-02-10 10:53:03 UTC
Created attachment 25351 [details]
Output from emerge info
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-10 11:03:00 UTC
Can you please try again.  Your compiler itself borked while compileing due to a floating point exception... Are you overclocking your system perchance?  Getting random lockups/crashes?
Comment 5 Torbjörn Svensson 2004-02-10 12:14:09 UTC
Tried to re-emerge mpg123-0.59s-r1 but it failed in the exact same way as before.

>> Are you overclocking your system perchance?  Getting random lockups/crashes?

Yes, my system is overclocked (CPU 1.6@2.24 GHz /w 1:1 FSB:RAM), but I've never run into any stabilityproblems with it.
I emerged KDE 3.2 last night and it installed just fine.
To be able to emerge KDE I just emerged the standard ebuild (non-~x86) of mpg123, and thus didn't need mpg123-0.59s-r1.

I should mention that I'm running Gentoo as a guest on VMWARE 4.0 running WinXP as a host. That might be the source of the problem even though I think it's rather unlikely.
Comment 6 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-11 23:21:23 UTC
Try to clock your system back at its real speed, re-emerge gcc, then re-emerge mpg123
Comment 7 Mickey Mullin 2004-02-15 11:04:35 UTC
I'm having the same problem with the same output.  I'm running on a P3-500 Dell Latitude, and I'm not overclocked.  I also have ACCEPT_KEYWORDS="~x86" and my version of gcc is 3.3.2-r7.
Comment 8 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-15 12:25:51 UTC
alright... bouncing to the gcc guys as this seems to be a problem with gcc...
Comment 9 lil 2004-02-15 16:14:37 UTC
it looks like r2 has the same problem i have to use an older version for it to work 
Comment 10 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-15 18:11:46 UTC
-r2 was just a security fix
Comment 11 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-16 09:58:36 UTC
Works fine here with the same CFLAGS as Torbj
Comment 12 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-16 09:58:36 UTC
Works fine here with the same CFLAGS as Torbjörn (and same gcc of course).
Comment 13 Erik Merkel 2004-02-16 11:32:39 UTC
Without "-fprefetch-loop-arrays" in the CFLAGS it works for me. With the option it fails.

CFLAGS working: "-O3 -march=pentium3"

Acer Travelmate 800; 1,3 GHz Centrino; gcc 3.3.2-r5; not overclocked
Comment 14 Kalin KOZHUHAROV 2004-02-17 05:03:51 UTC
Same with -r2 here. Usually I use:

CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays"
Comment 15 Michael G. 2004-02-17 06:24:15 UTC
*** Bug 41773 has been marked as a duplicate of this bug. ***
Comment 16 Mickey Mullin 2004-02-17 12:57:18 UTC
It compiled for me without "-fprefetch-loop-arrays."  The command I used was:  
CFLAGS="-O3 -march=pentium3 -funroll-loops -pipe" emerge mpg123
Comment 17 Thomas Veith (RETIRED) gentoo-dev 2004-02-17 15:53:27 UTC
Created attachment 25807 [details, diff]
this patch removes the deprecated -m486 compile-options from Makefile for the linux-486- and linux-mmx-targets

The internal compiler error is caused when having -fprefetch-loop-arrays in
your CFLAGS in combination with the (deprecated) -m486-compiler option in the
Makefile of mpg123. If your architecture is x86 or you have the mmx-USE-Flag
set, ebuild either issues a "make linux-486" or "make linux-mmx"... In both
cases, the Makefile adds -m486 which causes the compiler to break. After
removing this from the Makefile, everything builds fine.
Comment 18 Doug Goldstein (RETIRED) gentoo-dev 2004-02-17 16:05:05 UTC
I'm having a similar problem I think the problem is almost fixed by that patch but goes a little farther... here's a snapshot.

gcc -march=pentium4 -O3 -pipe -fomit-frame-pointer -fexpensive-optimizations -ffast-math -falign-functions=4 -fforce-addr -funroll-loops -maccumulate-outgoing-args -frerun-loop-opt -fprefetch-loop-arrays -frerun-cse-after-loop -mfpmath=sse -DI386_ASSEM -DREAL_IS_FLOAT -DI486_OPT -DLINUX               -DOSS -DTERM_CONTROL            -Wall -O2 -m486                 -fomit-frame-pointer -funroll-all-loops                 -finline-functions -ffast-math   -c -o decode_i486.o decode_i486.c
`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead.
decode_i486.c: In function `synth_1to1_486':
decode_i486.c:249: internal compiler error: Floating point exception


As you can see -O2 -m486 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math are all included from the Makefile. However I have those as well in my CFLAGS and they can be seen earlier. I however have -O3 and the Makefile has -O2 which is causing an interesting conflict.

However the Makefile patch submited by Thomas Veith does fix my problem so maybe that is enough.
Comment 19 Martin Schlemmer (RETIRED) gentoo-dev 2004-02-18 09:39:56 UTC
It only adds it for USE=-mmx only.  Anyhow, fixed in CVS, thanks.
Comment 20 Jeremy Huddleston (RETIRED) gentoo-dev 2004-02-20 16:18:01 UTC
*** Bug 42229 has been marked as a duplicate of this bug. ***