1 |
Hello, |
2 |
|
3 |
I need to build gcc 4.2 on a core 2 duo system. The only 4.2.x version |
4 |
is 4.2.4, which is masked by ~. When I try to build it fails: |
5 |
|
6 |
... |
7 |
/var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/x86_64-pc-linux-gnu/lib/ -isystem /usr/x86_64-pc-linux-gnu/include -isystem /usr/x86_64-pc-linux-gnu/sys-include -O2 -O2 -O2 -march=core2 -pipe -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -msse -c \ |
8 |
/var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/gcc/config/i386/crtfastmath.c \ |
9 |
-o crtfastmath.o |
10 |
/var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/gcc/config/i386/crtfastmath.c:1: error: bad value (core2) for -march= switch |
11 |
/var/tmp/portage/sys-devel/gcc-4.2.4-r1/work/gcc-4.2.4/gcc/config/i386/crtfastmath.c:1: |
12 |
error: bad value (core2) for -mtune= switch |
13 |
|
14 |
I do indeed have -march=core2 in /etc/make.conf. I suppose I could |
15 |
change -march= to something else and try again - but what should I |
16 |
change it to? gcc-4.2.4 would only be used for non-portage compiling |
17 |
so, am I right in thinking that after it is built it would be safe to |
18 |
revert to -march=core2? |
19 |
|
20 |
Thanks, |
21 |
Roger |