Gentoo Archives: gentoo-hardened

From: Alexader Netopier Leonov <a.leonov@×××××××.cz>
To: gentoo-hardened@l.g.o
Subject: [gentoo-hardened] stage1 - C++ compiler cannot create executables
Date: Sat, 18 Jun 2005 13:21:28

I have problem with installing selinux. Im doing it like usually step by step 
from gentoo manual. Downloaded stage1-x86-selinux-20041123.tar.bz2 unpacking 
etc etc.
Now i run bootstrap and after while i got gcc error. I read some conferentions 
where are trying explain this problem but nothing help me. Thanks for any 
help any idea. (BTW: same error i got when i was trying install from new 
beta9 hardened livecd with 2005 profile). I already tryed edit make.conf and 
remove some flags.

After bootstrap emerged glibc:

>>> Unpacking Python-2.3.5.tar.bz2 to /var/tmp/portage/python-2.3.5/work
* Applying python-2.3-readline.patch ... [ ok ] * Applying python-2.3-add_portage_search_path_take_2.patch ... [ ok ] * Applying python-2.3-gentoo_py_dontcompile.patch ... [ ok ] * Applying python-2.3.2-disable_modules_and_ssl.patch ... [ ok ] * Applying python-2.3-mimetypes_apache.patch ... [ ok ] * Applying python-2.3-db4.2.patch ... [ ok ]
>>> Source unpacked.
build bootstrap build ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-fpectl --enable-shared --disable-ipv6 --infodir=${prefix}/share/info --mandir=${prefix}/share/man --with-threads --with-libc= --enable-unicode=ucs4 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 MACHDEP... linux2 checking EXTRAPLATDIR... checking for --without-gcc... no checking for --with-cxx=<compiler>... no checking for c++... g++ checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. !!! ERROR: dev-lang/python-2.3.5 failed. !!! Function econf, Line 449, Exitcode 77 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. livecd portage # livecd portage # env MANPATH=/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i386-pc-linux-gnu/3.3/man INFODIR=/usr/share/info HOSTNAME=livecd TERM=xterm SHELL=/bin/bash SSH_CLIENT= 40866 22 OLDPWD=/ SSH_TTY=/dev/pts/0 USER=root GUILE_LOAD_PATH=/usr/share/guile/1.6 CONFIG_PROTECT_MASK=/etc/terminfo PAGER=/usr/bin/less MAIL=/var/mail/root PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i386-pc-linux-gnu/gcc-bin/3.3 GLIBC_SSP_CHECKED=1 INPUTRC=/etc/inputrc PWD=/usr/portage EDITOR=/bin/nano PS1=\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\] CXX=g++ SHLVL=3 HOME=/root LESS=-R LOGNAME=root CVS_RSH=ssh SSH_CONNECTION= 40866 22 LESSOPEN=| %s INFOPATH=/usr/share/info:/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info CC=gcc _=/bin/env livecd portage # gcc-config -l [1] i386-pc-linux-gnu-3.3.4 * [2] i686-pc-linux-gnu-3.3.4 livecd portage # livecd portage # gcc -v Reading specs from /usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/specs Configured with: /var/tmp/portage/gcc-3.3.4-r1/work/gcc-3.3.4/configure --prefix=/usr --bindir=/usr/i386-pc-linux-gnu/gcc-bin/3.3 --includedir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include --datadir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3 --mandir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/man --infodir=/usr/share/gcc-data/i386-pc-linux-gnu/3.3/info --enable-shared --host=i386-pc-linux-gnu --target=i386-pc-linux-gnu --with-system-zlib --enable-languages=c --enable-threads=posix --enable-long-long --disable-checking --disable-libunwind-exceptions --enable-cstdio=stdio --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i386-pc-linux-gnu/3.3.4/include/g++-v3 --with-local-prefix=/usr/local --disable-nls --disable-multilib --enable-__cxa_atexit --enable-clocale=generic Thread model: posix gcc version 3.3.4 20040623 (Gentoo Linux 3.3.4-r1, ssp-3.3.2-2, pie-8.7.6) livecd portage # livecd portage # ls -la /etc/make.profile lrwxr-xr-x 1 root root 40 Jun 18 14:00 /etc/make.profile -> /usr/portage/profiles/selinux/2004.1/x86 livecd portage # livecd portage # cat /etc/make.conf CPU="3dnow gcj gcc mmx mmx2 nptl nptlonly pic sse threads x86" PM="acpi -apm" NET="ipv6" USE="-X -gtk -gnome -alsa -qt -kde ${NET} ${CPU} ${PM}" CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -mcpu=athlon-xp -O2 -pipe -falign-functions=4 -fomit-frame-pointer" #-mtunr=athlon-xp CXXFLAGS="${CFLAGS}" #ACCEPT_KEYWORDS="~x86" #PORTAGE_TMPDIR=/var/tmp #PORTDIR=/usr/portage #DISTDIR=${PORTDIR}/distfiles #PKGDIR=${PORTDIR}/packages #PORT_LOGDIR=/var/log/portage #PORTDIR_OVERLAY=/usr/local/portage #FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp \${URI} -P \${DISTDIR}" #RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp \${URI} -P \${DISTDIR}" #FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp --limit-rate=200k \${URI} -P \${DISTDIR}" #RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp --limit-rate=200k \${URI} -P \${DISTDIR}" GENTOO_MIRRORS="" #PORTAGE_BINHOST="" SYNC="rsync://" #RSYNC_RETRIES="3" #RSYNC_TIMEOUT=180 MAKEOPTS="-j1" #PORTAGE_NICENESS=3 #AUTOCLEAN="yes" #FEATURES="sandbox buildpkg ccache distcc userpriv usersandbox notitles noclean noauto cvs keeptemp keepwork autoaddcvs" #FEATURES="sandbox ccache distcc distlocks autoaddcvs" #CCACHE_SIZE="512M" #DISTCC_DIR="${PORTAGE_TMPDIR}/.distcc" #RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes livecd portage # -- :-)


File name MIME type
config.log text/x-log


Subject Author
Re: [gentoo-hardened] stage1 - C++ compiler cannot create executables kakou <kakou@×××××.org>