View previous topic :: View next topic |
Author |
Message |
djpenguin Guru
Joined: 02 Sep 2004 Posts: 386
|
Posted: Mon Mar 28, 2005 6:38 am Post subject: gcc 3.4.x CFLAGS optimisations |
|
|
I'm installing gentoo on a brand-new laptop, and I've run into a problem.
I've compiled everything up from stage 1, and now I've switched from gcc 3.3.5 to 3.4.3.20050110-r1 I then changed the march cflag to read pentium-m. I recompiled gcc with no problems, and managed to compile linux26-headers and glibc just fine too.
Now I'm trying to emerge gnome, but I get an error on the very first package it tries to compile
Code: | >>> emerge (1 of 190) media-libs/libpng-1.2.8 to /
>>> md5 src_uri ;-) libpng-1.2.8.tar.bz2
>>> Unpacking source...
>>> Unpacking libpng-1.2.8.tar.bz2 to /var/tmp/portage/libpng-1.2.8/work
* Applying 1.2.7-gentoo.diff ... [ ok ]
>>> Source unpacked.
i686-pc-linux-gnu-gcc -I/usr/include -Wall -O2 -march=pentium-m -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -pipe -fomit-frame-pointer -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=32 -falign-jumps=32 -funroll-loops -c -o png.o png.c
cc1: error: bad value (pentium-m) for -march= switch
i686-pc-linux-gnu-gcc -I/usr/include -Wall -O2 -march=pentium-m -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -pipe -fomit-frame-pointer -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=32 -falign-jumps=32 -funroll-loops -c -o pngset.o pngset.c
i686-pc-linux-gnu-gcc -I/usr/include -Wall -O2 -march=pentium-m -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -pipe -fomit-frame-pointer -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=32 -falign-jumps=32 -funroll-loops -c -o pngget.o pngget.c
i686-pc-linux-gnu-gcc -I/usr/include -Wall -O2 -march=pentium-m -fomit-frame-pointer -mmmx -msse -msse2 -mfpmath=sse -pipe -fomit-frame-pointer -fforce-addr -frerun-cse-after-loop -frerun-loop-opt -falign-functions=32 -falign-jumps=32 -funroll-loops -c -o pngrutil.o pngrutil.c
cc1: error: bad value (pentium-m) for -mcpu= switch
cc1: error: bad value (pentium-m) for -march= switch
cc1: error: bad value (pentium-m) for -mcpu= switch
cc1: error: bad value (pentium-m) for -march= switch
cc1: error: bad value (pentium-m) for -mcpu= switch
make: *** [pngset.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [pngget.o] Error 1
cc1: error: bad value (pentium-m) for -march= switch
cc1: error: bad value (pentium-m) for -mcpu= switch
make: *** [png.o] Error 1
!!! ERROR: media-libs/libpng-1.2.8 failed.
!!! Function src_compile, Line 48, Exitcode 2
!!! emake failed
!!! If you need support, post the topmost build error, NOT this status message.
|
I've got to admit that I'm stumped...any thoughts? |
|
Back to top |
|
|
Qdot Tux's lil' helper
Joined: 06 Jan 2005 Posts: 127
|
Posted: Mon Mar 28, 2005 7:36 am Post subject: Re: gcc 3.4.x CFLAGS optimisations |
|
|
Have you changed your compiler using gcc-config?
If you do, don't forget to do source /etc/profile afterwards |
|
Back to top |
|
|
djpenguin Guru
Joined: 02 Sep 2004 Posts: 386
|
Posted: Tue Mar 29, 2005 12:15 am Post subject: |
|
|
Thanks...that got it. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|