Gentoo Archives: gentoo-hardened

From: kakou <kakou@×××××.org>
To: gentoo-hardened@l.g.o
Subject: Re: [gentoo-hardened] stage1 - C++ compiler cannot create executables
Date: Sat, 18 Jun 2005 19:46:03
Message-Id: 42B4795D.9030804@kakou.org
In Reply to: [gentoo-hardened] stage1 - C++ compiler cannot create executables by Alexader Netopier Leonov
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

you can try :

gcc-config 2
binutils-config 1

Alexader Netopier Leonov wrote:

>Ehlo. > >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=192.168.0.136 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=192.168.0.136 40866 192.168.0.202 22 >LESSOPEN=|lesspipe.sh %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="ftp://ftp.sh.cvut.cz/MIRRORS/gentoo" >#PORTAGE_BINHOST="http://grp.mirror.site/gentoo/grp/1.4/i686/athlon-xp/" >SYNC="rsync://ftp.sh.cvut.cz/gentoo-portage" >#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 # > > > >---------------------------------------------------------------------- > >This file contains any messages produced by compilers while >running configure, to aid debugging if configure makes a mistake. > >It was created by python configure 2.3, which was >generated by GNU Autoconf 2.59. Invocation command line was > > $ ./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
> >## --------- ## >## Platform. ## >## --------- ## > >hostname = livecd >uname -m = i686 >uname -r = 2.6.5-gentoo-r1 >uname -s = Linux >uname -v = #1 Fri Jun 18 20:05:43 UTC 2004 > >/usr/bin/uname -p = AMD Athlon(tm) XP 2000+ >/bin/uname -X = unknown > >/bin/arch = unknown >/usr/bin/arch -k = unknown >/usr/convex/getsysinfo = unknown >hostinfo = unknown >/bin/machine = unknown >/usr/bin/oslevel = unknown >/bin/universe = unknown > >PATH: /sbin >PATH: /usr/sbin >PATH: /usr/lib/portage/bin >PATH: /bin >PATH: /usr/bin >PATH: /usr/local/bin >PATH: /opt/bin >PATH: /usr/i386-pc-linux-gnu/gcc-bin/3.3 > > >## ----------- ## >## Core tests. ## >## ----------- ## > >configure:1443: checking MACHDEP >configure:1552: result: linux2 >configure:1558: checking EXTRAPLATDIR >configure:1573: result: >configure:1592: checking for --without-gcc >configure:1641: result: no >configure:1647: checking for --with-cxx=<compiler> >configure:1668: result: no >configure:1687: checking for c++ >configure:1713: result: g++ >configure:1753: checking for C++ compiler default output file name >configure:1756: g++ -march=i686 -mcpu=athlon-xp -O2 -pipe
-falign-functions=4 -fomit-frame-pointer conftest.cc >&5
>./configure: line 1: g++: command not found >configure:1759: $? = 127 >configure: failed program was: >| /* confdefs.h. */ >| >| #define _GNU_SOURCE 1 >| #define _NETBSD_SOURCE 1 >| #define __BSD_VISIBLE 1 >| #define _BSD_TYPES 1 >| #define _XOPEN_SOURCE 600 >| #define _XOPEN_SOURCE_EXTENDED 1 >| #define _POSIX_C_SOURCE 200112L >| /* end confdefs.h. */ >| >| int >| main () >| { >| >| ; >| return 0; >| } >configure:1798: error: C++ compiler cannot create executables >See `config.log' for more details. > >## ---------------- ## >## Cache variables. ## >## ---------------- ## > >ac_cv_env_CC_set=set >ac_cv_env_CC_value=gcc >ac_cv_env_CFLAGS_set=set >ac_cv_env_CFLAGS_value='-march=i686 -mcpu=athlon-xp -O2 -pipe
-falign-functions=4 -fomit-frame-pointer'
>ac_cv_env_CPPFLAGS_set= >ac_cv_env_CPPFLAGS_value= >ac_cv_env_CPP_set= >ac_cv_env_CPP_value= >ac_cv_env_LDFLAGS_set= >ac_cv_env_LDFLAGS_value= >ac_cv_env_build_alias_set= >ac_cv_env_build_alias_value= >ac_cv_env_host_alias_set=set >ac_cv_env_host_alias_value=i686-pc-linux-gnu >ac_cv_env_target_alias_set= >ac_cv_env_target_alias_value= >ac_cv_prog_CXX=g++ > >## ----------------- ## >## Output variables. ## >## ----------------- ## > >AR='' >BASECFLAGS='' >BLDLIBRARY='' >BLDSHARED='' >BUILDEXEEXT='' >CC='gcc' >CCSHARED='' >CFLAGS='-march=i686 -mcpu=athlon-xp -O2 -pipe -falign-functions=4
-fomit-frame-pointer'
>CFLAGSFORSHARED='' >CONFIGURE_MACOSX_DEPLOYMENT_TARGET='' >CONFIG_ARGS=''--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' 'CC=gcc' 'CFLAGS=-march=i686 -mcpu=athlon-xp -O2 -pipe -falign-functions=4 -fomit-frame-pointer' 'host_alias=i686-pc-linux-gnu''
>CPP='' >CPPFLAGS='' >CXX='g++' >DEFS='' >DLINCLDIR='' >DLLLIBRARY='' >DYNLOADFILE='' >ECHO_C='' >ECHO_N='-n' >ECHO_T='' >EGREP='' >EXEEXT='' >EXTRAMACHDEPPATH='' >EXTRAPLATDIR='' >HAVE_GETHOSTBYNAME='' >HAVE_GETHOSTBYNAME_R='' >HAVE_GETHOSTBYNAME_R_3_ARG='' >HAVE_GETHOSTBYNAME_R_5_ARG='' >HAVE_GETHOSTBYNAME_R_6_ARG='' >INSTALL_DATA='' >INSTALL_PROGRAM='' >INSTALL_SCRIPT='' >INSTSONAME='' >LDFLAGS='' >LDLAST='' >LDLIBRARY='' >LDLIBRARYDIR='' >LDSHARED='' >LIBC='' >LIBM='' >LIBOBJS='' >LIBRARY='' >LIBS='' >LIBTOOL_CRUFT='' >LINKCC='' >LINKFORSHARED='' >LN='' >LTLIBOBJS='' >MACHDEP='linux2' >MACHDEP_OBJS='' >MAINOBJ='python.o' >OBJEXT='' >OPT='-march=i686 -mcpu=athlon-xp -O2 -pipe -falign-functions=4
-fomit-frame-pointer'
>PACKAGE_BUGREPORT='' >PACKAGE_NAME='python' >PACKAGE_STRING='python 2.3' >PACKAGE_TARNAME='python' >PACKAGE_VERSION='2.3' >PATH_SEPARATOR=':' >PYTHONFRAMEWORK='' >PYTHONFRAMEWORKDIR='no-framework' >PYTHONFRAMEWORKINSTALLDIR='' >PYTHONFRAMEWORKPREFIX='' >RANLIB='' >RUNSHARED='' >SGI_ABI='' >SHELL='/bin/sh' >SHLIBS='' >SIGNAL_OBJS='' >SO='' >SOVERSION='1.0' >SRCDIRS='' >THREADHEADERS='' >THREADOBJ='' >TRUE='' >UNICODE_OBJS='' >USE_SIGNAL_MODULE='' >USE_THREAD_MODULE='' >VERSION='2.3' >ac_ct_CC='' >ac_ct_RANLIB='' >bindir='${exec_prefix}/bin' >build_alias='' >datadir='/usr/share' >exec_prefix='NONE' >host_alias='i686-pc-linux-gnu' >includedir='${prefix}/include' >infodir='${prefix}/share/info' >libdir='${exec_prefix}/lib' >libexecdir='${exec_prefix}/libexec' >localstatedir='/var/lib' >mandir='${prefix}/share/man' >oldincludedir='/usr/include' >prefix='/usr' >program_transform_name='s,x,x,' >sbindir='${exec_prefix}/sbin' >sharedstatedir='${prefix}/com' >sysconfdir='/etc' >target_alias='' > >## ----------- ## >## confdefs.h. ## >## ----------- ## > >#define _BSD_TYPES 1 >#define _GNU_SOURCE 1 >#define _NETBSD_SOURCE 1 >#define _POSIX_C_SOURCE 200112L >#define _XOPEN_SOURCE 600 >#define _XOPEN_SOURCE_EXTENDED 1 >#define __BSD_VISIBLE 1 > >configure: exit 77
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCtHlc3RS+hG/PB/URApN8AJ0W8jIFOxGn8qnzmhobZUXM56fzlwCggoov s4E2MD2wzBMmAw36WX98Ysk= =FScK -----END PGP SIGNATURE----- -- gentoo-hardened@g.o mailing list

Replies