Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270409 (PR37179) - sys-devel/gcc-4.3.2-r3: patch for gcc emitting bad code for the AMD Geode CPU
Summary: sys-devel/gcc-4.3.2-r3: patch for gcc emitting bad code for the AMD Geode CPU
Status: RESOLVED FIXED
Alias: PR37179
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://gcc.gnu.org/PR37179
Whiteboard:
Keywords:
: 271343 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-19 11:35 UTC by cortez8591
Modified: 2009-06-26 01:31 UTC (History)
1 user (show)

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 cortez8591 2009-05-19 11:35:11 UTC
gcc released recently patch for this issue: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37179 Could You apply it to portage ? Patch affects stable versions of gcc so it is quite essential.

Reproducible: Always

Steps to Reproduce:
1.Buy Geode LX cpu
2.Try to compile mplayer on it (march=geode)
3.Try to run mplayer

Actual Results:  
Illegal instruction

Expected Results:  
mplayer should play the music ;)

Just apply official patch and everything should be ok
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2009-05-19 11:41:54 UTC
Nice. Upstream has already applied this patch to branches.
Comment 2 Mark Loeser (RETIRED) gentoo-dev 2009-05-21 01:32:18 UTC
According to the upstream bug, march=geode works fine.  It only happens if you use -march=native.  I just wanted to clear that up since the original post claims contrary to what upstream is saying.
Comment 3 cortez8591 2009-05-21 11:38:24 UTC
(In reply to comment #2)
> According to the upstream bug, march=geode works fine.  It only happens if you
> use -march=native.  I just wanted to clear that up since the original post
> claims contrary to what upstream is saying.
> 

Then I don't get it, I have ffreep in my mplayer binary which was compiled with march=geode.
Comment 4 pigeon768 2009-05-26 21:45:20 UTC
*** Bug 271343 has been marked as a duplicate of this bug. ***
Comment 5 cortez8591 2009-05-26 23:14:02 UTC
(In reply to comment #4)
> *** Bug 271343 has been marked as a duplicate of this bug. *** 

There stays "Falling back to -march=geode fixes the problem." when in fact -march=geode causes the problem.

Will provide some detailed info about my specs soon.
Comment 6 Maik Nijhuis 2009-06-16 10:08:41 UTC
As I said in http://bugs.gentoo.org/show_bug.cgi?id=274273 , mplayer overrides your CFLAGS. -march=geode therefore does not cause the problem, but the -march=native from mplayer causes it.
Comment 7 Mark Loeser (RETIRED) gentoo-dev 2009-06-16 20:23:15 UTC
Um, this isn't fixed.
Comment 8 cortez8591 2009-06-17 10:30:46 UTC
it is fixed(not even issue) since this was problem of mplayer, not gcc, USE flag custom-cflags for mplayer package solves the problem
Comment 9 Mark Loeser (RETIRED) gentoo-dev 2009-06-20 18:53:09 UTC
(In reply to comment #8)
> it is fixed(not even issue) since this was problem of mplayer, not gcc, USE
> flag custom-cflags for mplayer package solves the problem
> 

It does not change the fact that -march=native is broken for Geode CPUs.  I have added these patches to the patchset for the next release
Comment 10 Mark Loeser (RETIRED) gentoo-dev 2009-06-26 01:31:07 UTC
*** Bug 271343 has been marked as a duplicate of this bug. ***