Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 58967 - Building libstdc++-v3 fails with gcc-3.4.1-r1 with march=pentium-m
Summary: Building libstdc++-v3 fails with gcc-3.4.1-r1 with march=pentium-m
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-30 20:10 UTC by Hector E. Gomez Morales
Modified: 2004-07-31 12:55 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 Hector E. Gomez Morales 2004-07-30 20:10:51 UTC
Yesterday I did a fresh install of gentoo in a centrino (dothan) laptop, I started from stage 1 boostraped first with gcc-3.3 and last glibc (without nptl) with CFLAG= -march=pentium3 -O2 -pipe then I bootstraped with gcc-3.4 and  glibc with nptl, after that I changed to -march=pentium-m. Then when building the stage 2 the libstdc++-v3 ebuild stopped  because this error:

checking for sys/sysctl.h... yes
checking for sys/systemcfg.h... no
checking for sys/wait.h that is POSIX.1 compatible... no
checking whether time.h and sys/time.h may both be included... no
checking whether errno must be declared... yes
checking for ANSI C header files... no
checking for uintptr_t... no
checking for pid_t... yes
checking whether the C compiler ( /var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/xgcc -B/var/tmp/portage/libstdc++-v3-3.3.3-r1/work/build/gcc/ -B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include -O2 -march=pentium-m -pipe works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [configure-target-libiberty] Error 1

Seeing the a similar bug I concluded xgcc couldn't compile because the -march=pentium-m ,I checked the ebuild and saw that it filters some flags but not the pentium-m and prescott flags. Well I reverted to pentium3 and emerged without problems, so the ebuild needs to filter the -march=pentium-m flag. Thats all

Reproducible: Always
Steps to Reproduce:
1. USE -march=pentium-m in cflags and cxxflags.
2.  emerge libstdc++-v3.

Actual Results:  
A failed emerge

Expected Results:  
A succesful emerge
Comment 1 Aron Griffis (RETIRED) gentoo-dev 2004-07-31 12:55:35 UTC
Thanks, should be fixed now