Gentoo Archives: gentoo-user

From: Zeerak Waseem <zeerak.w@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] gcc 4.2.4 fails to build
Date: Tue, 01 Dec 2009 16:01:56
Message-Id: op.u39i9qayagyv58@zeerak
In Reply to: [gentoo-user] gcc 4.2.4 fails to build by Roger Mason
1 if you're using an intel core2 processor, the proper -march setting is
2 -march=nocona
3
4 On Tue, 01 Dec 2009 14:26:28 +0100, Roger Mason <rmason@×××.ca> wrote:
5
6 > Hello,
7 >
8 > I need to build gcc 4.2 on a core 2 duo system. The only 4.2.x version
9 > is 4.2.4, which is masked by ~. When I try to build it fails:
10 >
11 > ...
12 > /var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/build/./gcc/xgcc
13 > -B/var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/build/./gcc/
14 > -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem
15 > /usr/x86_64-pc-linux-gnu/include -isystem
16 > /usr/x86_64-pc-linux-gnu/sys-include -O2 -O2 -O2 -march=core2 -pipe
17 > -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
18 > -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC
19 > -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -msse -c \
20 > /var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/gcc/config/i386/crtfastmath.c
21 > \
22 > -o crtfastmath.o
23 > /var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/gcc/config/i386/crtfastmath.c:1:
24 > error: bad value (core2) for -march= switch
25 > /var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/gcc/config/i386/crtfastmath.c:1:
26 > error: bad value (core2) for -mtune= switch
27 >
28 > I do indeed have -march=core2 in /etc/make.conf. I suppose I could
29 > change -march= to something else and try again - but what should I
30 > change it to? gcc-4.2.4 would only be used for non-portage compiling
31 > so, am I right in thinking that after it is built it would be safe to
32 > revert to -march=core2?
33 >
34 > Thanks,
35 > Roger
36 >

Replies

Subject Author
Re: [gentoo-user] gcc 4.2.4 fails to build [solved] Roger Mason <rmason@×××.ca>