this is how my script/bootstrap.sh ends while installing from an existing chrooted gentoo environment ----------------------- ----------------------- setup unpack >>> Unpacking source... >>> Unpacking gettext-0.12.1.tar.gz to /var/tmp/portage/gettext-0.12.1/work bootstrap [32;01m* [0m Applying gettext-0.12.1-bootstrap.patch... [A [121G [34;01m[ [32;01mok [34;01m ] [0m >>> Source unpacked. compile nls configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu configure: creating ./config.status config.status: creating Makefile configure: configuring in autoconf-lib-link configure: running /bin/sh './configure' --prefix=/usr '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-shared' '--with-included-gettext' 'CC=gcc' 'CFLAGS=-O3 --mcpu=pentium3 -march=pentium3 -fomit-frame-pointer -pipe' 'CXXFLAGS=-O3 --mcpu=pentium3 -march=pentium3 -fomit-frame-pointer -pipe' 'CXX=gcc' 'host_alias=i686-pc-linux-gnu' --cache-file=/dev/null --srcdir=. configure: WARNING: If you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used. checking for a BSD-compatible install... /bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for i686-pc-linux-gnu-strip... no checking for strip... strip checking for i686-pc-linux-gnu-gcc... gcc checking for C compiler default output... configure: error: C compiler cannot create executables See `config.log' for more details. configure: error: /bin/sh './configure' failed for autoconf-lib-link !!! ERROR: sys-devel/gettext-0.12.1 failed. !!! Function econf, Line 365, Exitcode 1 !!! econf failed ----------------------- ----------------------- Reproducible: Always Steps to Reproduce: I have followed the handbook but related to an existing gentoo installation 1.script/bootstrap.sh -f 2.script/bootstrap.sh Actual Results: checking for C compiler default output... configure: error: C compiler cannot create executables See `config.log' for more details. configure: error: /bin/sh './configure' failed for autoconf-lib-link !!! ERROR: sys-devel/gettext-0.12.1 failed. !!! Function econf, Line 365, Exitcode 1 !!! econf failed Expected Results: I would expect to wait hours for GCC to compile: it ended after a minute Doing "emerge gettext" I don't get any error so soon , but I didn't try to finish it :aborted ######emerge info Gentoo Base System version 1.4.3.13 Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.7-gentoo-r6_2606) ================================================================= System uname: 2.6.7-gentoo-r6_2606 i686 Pentium III (Coppermine) Autoconf: Automake: ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 --mcpu=pentium3 -march=pentium3 -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 --mcpu=pentium3 -march=pentium3 -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache sandbox" GENTOO_MIRRORS="ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://128.213.5.34/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/ http://mirror.switch.ch/mirror/gentoo/ http://gentoo.mirror.sdv.fr" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/pinguin/deposito/Gentoo/ebuilds/" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X accessibility acpi alsa apm arts atm avi berkdb cdr crypt cups curl dvd dvdr emacs encode foomaticdb gdbm gif gnome gpm gstreamer gtk gtk2 imlib java jpeg kde libg++ libwww linguas_it lirc mad mikmod mmx motif mpeg ncurses nls oggvorbis opengl oss pam pdflib png ppds python qt quicktime readline scanner sdl slang spell sse ssl svga tcpd tetex tiff truetype usb x86 xml2 xmms xv zlib" ############
--mcpu=pentium3 is what you have in your CFLAGS, that is not a correct flag. Please correct it and try again.
"--mcpu=pentium3" is wrong "-mcpu=pentium3" is right thankyou
I have an user here who solved this problem by changing -march=pentium4 to -march=pentium3, go figure. His /proc/cpuinfo: processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 2 model name : Intel(R) Pentium(R) 4 CPU 2.00GHz stepping : 4 cpu MHz : 2460.203 cache size : 512 KB physical id : 0 siblings : 1 fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm bogomips : 4849.66 His emerge --info: Gentoo Base System version 1.4.16 Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, unavailable, 2.6.9-gentoo-r1 i686) ================================================================= System uname: 2.6.9-gentoo-r1 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz Autoconf: Automake: Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://gentoo.inode.at ftp://ftp.fi.muni.cz/pub/linux/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa apm avi berkdb bitmap-fonts cdr crypt cups dvd encode f77 foomaticdb fortran gdbm gif gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl pam pdflib png python qt quicktime readline sdl spell ssl svga tcpd truetype x86 xml2 xmms xv zlib"
ok, i dont see a bug, just a user who used bad CFLAGS