Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70015 - Errors with sys-devel/gcc-3.4.2-r3 (wrong assembly code generated)
Summary: Errors with sys-devel/gcc-3.4.2-r3 (wrong assembly code generated)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-04 01:22 UTC by Ervin Németh
Modified: 2004-11-08 03:42 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 Ervin Németh 2004-11-04 01:22:53 UTC
sys-devel/gcc-3.4.2-r3 fails to compile glibc mozilla-firefox and gimp for me, using CFLAGS="-pipe -march=athlon-xp -mmmx -msse -m3dnow -mfpmath=sse -O2 -funroll-loops -funswitch-loops -fprefetch-loop-arrays -finline-functions -finline-limit=24 -frename-registers -fweb -maccumulate-outgoing-args -fno-align-jumps -fno-align-loops -fno-align-labels -fomit-frame-pointer -fmove-all-movables -ftracer -funit-at-a-time --param=max-unrolled-insns=16 --param=max-unswitch-insns=24 --param=max-reload-search-insns=256".

The compilation fails with "as" messages reporting syntax errors.

Downgrading to sys-devel/gcc-3.4.2-r2 has solved my problem.
Comment 1 Daniel Black (RETIRED) gentoo-dev 2004-11-04 02:22:39 UTC
Maybe adding more CFLAGS will fix it? ;-)
Comment 2 Ervin Németh 2004-11-04 02:30:54 UTC
Can't help, I'm an addict ;-)  Gentoo rulez!
Comment 3 Travis Tilley (RETIRED) gentoo-dev 2004-11-07 13:25:41 UTC
feel free to re-open this bug with some actual errors and more information if the problem persists without those insane cflags.
Comment 4 Ervin Németh 2004-11-07 13:35:18 UTC
Let me explain it, again.

Fact #1: gcc-3.4.2-r2 works

Fact #2: gcc-3.4.2-r3 dosn't work with same conditions

Fact #3 gcc-3.4.2-r2 and gcc-3.4.2-r3 differs only in Gentoo patches

Deduction: Gentoo patches break the compiler
Comment 5 Travis Tilley (RETIRED) gentoo-dev 2004-11-07 18:05:20 UTC
actually, the major change is a cvs branch update. a few patches were -removed- that add features which are no longer in the fedora src rpms they were borrowed from. no bug fix patches were dropped...

try 3.4.3 i guess, though it should be pretty similar to 3.4.2-r3. the branch update used in 3.4.2-r3 was very close to the 3.4.3 freeze (which is why i removed 3.4.2-r3 when 3.4.3 was added).
Comment 6 Ervin Németh 2004-11-08 03:42:42 UTC
Look, what happened now. As gcc-3.4.3 failed to compile glibc, I tried to make gcc to keep the temporary assembly file. This time gcc didn't fail. I've cleaned, and did an emerge glibc, again. This time gcc failed on an other file.

It is clearly a hardware failure. The only strange thing is that post 3.4.2-r3 gcc is needed for it.

And the machine is an office-PC that isn't overclocked at all. Grr.

Sorry for wasting your time.