Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79150 - regression gcc-3.3.5-r1 doesn't like --march=k8 or athlon64
Summary: regression gcc-3.3.5-r1 doesn't like --march=k8 or athlon64
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-22 15:40 UTC by Jason Dyer
Modified: 2005-01-28 05:18 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 Jason Dyer 2005-01-22 15:40:39 UTC
Or --march=athlon64

I'm running the x86 (32bit) version of Gentoo on my Athlon 64 and when I did emerge -u world, gcc complained that it could not create an executable and refused to install until I changed the --march (from k8 to i686 I think.)

Now when I try to emerge new packages, it's still rejecting k8 and athlon64.  Here's some output:

(athlon64)

i686-pc-linux-gnu-gcc -O2 -march=athlon64 -m32 -ftracer -fomit-frame-pointer -pipe -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H   -c -o example.o example.c
i686-pc-linux-gnu-gcc -O2 -march=athlon64 -m32 -ftracer -fomit-frame-pointer -pipe -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H   -c -o adler32.o adler32.c
cc1: error: bad value (athlon64) for -march= switch
cc1: error: bad value (athlon64) for -mcpu= switch
make: *** [example.o] Error 1
make: *** Waiting for unfinished jobs....
cc1: error: bad value (athlon64) for -march= switch
cc1: error: bad value (athlon64) for -mcpu= switch
make: *** [adler32.o] Error 1

(and here's --march-k8, which was working fine under 3.3.4)

Checking for mmap support... No.
i686-pc-linux-gnu-gcc -O2 -march=k8 -m32 -ftracer -fomit-frame-pointer -pipe -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H   -c -o example.o example.c
cc1: error: bad value (k8) for -march= switch
cc1: error: bad value (k8) for -mcpu= switch
make: *** [example.o] Error 1
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2005-01-25 14:18:44 UTC
Sorry, but this is nonsense. -march=(k8|athlon64|opteron) is not supposed to work
with <gcc-3.4. It _can't_ work, as it was only introduced by gcc-3.4.0.

Marking as INVALID.
Comment 2 Jason Dyer 2005-01-26 10:38:28 UTC
Sorry, but it *did* work with gcc-3.3.4.  In fact, I emerged the old package (3.3.4-r1) and:

nil / # gcc -march=k8 test.c -o test.o
nil / # gcc -march=k9 test.c -o test.o
cc1: error: bad value (k9) for -march= switch
cc1: error: bad value (k9) for -mcpu= switch
nil / # gcc --version
gcc (GCC) 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Notice that 'k9' failed, so it's not just ignoring the option.  If 'k8' actually does anything useful, I don't know, but it did not choke and die...
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2005-01-26 13:31:14 UTC
I don't know why it works with 3.3.4, but it is not supposed to work with any
of gcc-3.3.x. -march=k8 was introduced in version 3.4.0 of gcc. You can start
googling for "march k8 gcc config" and you will find a commit message from gcc
CVS.
Comment 4 SpanKY gentoo-dev 2005-01-28 05:18:51 UTC
it worked with 3.3.4 because we added patches to support amd64

however, amd64 now uses 3.4.x which means we dropped it from 3.3.5