| View previous topic :: View next topic |
| Author |
Message |
E001754 Apprentice


Joined: 01 Aug 2004 Posts: 290 Location: Paris, France
|
Posted: Fri Oct 24, 2008 2:55 pm Post subject: [SOLVED] C++ compiler cannot create executables |
|
|
Hi,
I'm on my way of a fresh Gentoo installation.
I had a compilation break during the xorg-x11 emerge process, which was saying that the "fglrx" option couldn't be compiled against a 2.6.25 kernel.
Then, I changed the "VIDEO_CARDS" option from "fglrx" to "radeon" and I ran | Code: | emerge -vt --deep xorg-server
|
Some packages after, I had a strange break saying that my C++ compiler cannot create executables, when emerge lzma package (which is emerged as a dependency of xorg-x11).
Here's the build.log :
| Quote: | >>> Unpacking source...
>>> Unpacking lzma-4.32.6.tar.gz to /var/tmp/portage/app-arch/lzma-utils-4.32.6/work
* Applying lzma-utils-4.32.6-semicolon.patch ... [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6 ...
* econf: updating lzma-4.32.6/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating lzma-4.32.6/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
checking if debugging code should be compiled... no
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for x86_64-pc-linux-gnu-g++... x86_64-pc-linux-gnu-g++
checking for C++ compiler default output file name...
configure: error: C++ compiler cannot create executables
See `config.log' for more details.
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6/config.log
*
* ERROR: app-arch/lzma-utils-4.32.6 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 2106: Called econf
* ebuild.sh, line 519: Called die
* The specific snippet of code:
* die "econf failed"
* The die message:
* econf failed
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/app-arch/lzma-utils-4.32.6/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/app-arch/lzma-utils-4.32.6/temp/environment'.
*
|
After having read through the forums that this could come from a misconfiguration of gcc-config, I tried to make | Code: | | gcc-config x86_64-pc-gnu-linux-4.1.2 | .
I emerged libtool again, to make sure, and updated my environment.
All that with no more luck, the lzma still breaks.
Here is some additionnal info :
| Quote: |
cat /etc/make.conf
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
CFLAGS="-march=nocona -O2 -pipe"
CXXFLAGS="{CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="qt3 qt4 kde dvd alsa cdr mmx sse dhcp usb sse sse2 mozilla java pic -gtk -gnome -ipv6"
MAKEOPTS="-j5"
FEATURES="parallel-fetch"
GENTOO_MIRRORS="ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.first-world.info/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/"
CLEAN_DELAY=0
LINGUAS="fr"
########################################
# #
# PARTIE RESERVEE XORG-X11 #
# #
########################################
INPUT_DEVICES="keyboard mouse"
#VIDEO_CARDS="fglrx"
VIDEO_CARDS="radeon"
|
| Quote: |
gcc-config -l
[1] x86_64-pc-linux-gnu-4.1.2 *
|
and finally the config.log generated during the configure process of emerging lzma :
| Quote: |
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by LZMA configure 4.32.6, which was
generated by GNU Autoconf 2.62. Invocation command line was
$ ./configure --prefix=/usr --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --build=x86_64-pc-linux-gnu
## --------- ##
## Platform. ##
## --------- ##
hostname = 48FOCH
uname -m = x86_64
uname -r = 2.6.25-gentoo-r7
uname -s = Linux
uname -v = #1 SMP Thu Oct 23 21:19:05 CEST 2008
/usr/bin/uname -p = Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/sbin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/lib64/portage/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2053: checking if debugging code should be compiled
configure:2073: result: no
configure:2127: checking for a BSD-compatible install
configure:2195: result: /usr/bin/install -c
configure:2206: checking whether build environment is sane
configure:2249: result: yes
configure:2274: checking for a thread-safe mkdir -p
configure:2313: result: /bin/mkdir -p
configure:2326: checking for gawk
configure:2342: found /bin/gawk
configure:2353: result: gawk
configure:2364: checking whether make sets $(MAKE)
configure:2386: result: yes
configure:2590: checking for x86_64-pc-linux-gnu-g++
configure:2606: found /usr/bin/x86_64-pc-linux-gnu-g++
configure:2617: result: x86_64-pc-linux-gnu-g++
configure:2692: checking for C++ compiler version
configure:2700: x86_64-pc-linux-gnu-g++ --version >&5
x86_64-pc-linux-gnu-g++ (GCC) 4.1.2 (Gentoo 4.1.2 p1.0.2)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2704: $? = 0
configure:2711: x86_64-pc-linux-gnu-g++ -v >&5
Using built-in specs.
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.1.2/work/gcc-4.1.2/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.2 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.2/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --enable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,treelang,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 (Gentoo 4.1.2 p1.0.2)
configure:2715: $? = 0
configure:2722: x86_64-pc-linux-gnu-g++ -V >&5
x86_64-pc-linux-gnu-g++: '-V' option must have argument
configure:2726: $? = 1
configure:2749: checking for C++ compiler default output file name
configure:2771: x86_64-pc-linux-gnu-g++ {CFLAGS} -Wl,-O1 conftest.cpp >&5
x86_64-pc-linux-gnu-g++: {CFLAGS}: No such file or directory
configure:2775: $? = 1
configure:2813: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "LZMA"
| #define PACKAGE_TARNAME "lzma"
| #define PACKAGE_VERSION "4.32.6"
| #define PACKAGE_STRING "LZMA 4.32.6"
| #define PACKAGE_BUGREPORT "lasse.collin@tukaani.org"
| #define NDEBUG 1
| #define PACKAGE "lzma"
| #define VERSION "4.32.6"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2820: error: C++ compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=nocona -O2 -pipe'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='{CFLAGS}'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-pc-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CXX=x86_64-pc-linux-gnu-g++
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6/missing --run aclocal-1.10'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6/missing --run tar'
AR=''
AUTOCONF='${SHELL} /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6/missing --run automake-1.10'
AWK='gawk'
CC=''
CCDEPMODE=''
CFLAGS='-march=nocona -O2 -pipe'
CPP=''
CPPFLAGS=''
CXX='x86_64-pc-linux-gnu-g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='{CFLAGS}'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77='no'
FFLAGS=''
GETOPT_H=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS='-Wl,-O1'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6/missing --run makeinfo'
MKDIR_P='/bin/mkdir -p'
NMEDIT=''
OBJEXT=''
PACKAGE='lzma'
PACKAGE_BUGREPORT='lasse.collin@tukaani.org'
PACKAGE_NAME='LZMA'
PACKAGE_STRING='LZMA 4.32.6'
PACKAGE_TARNAME='lzma'
PACKAGE_VERSION='4.32.6'
PATH_SEPARATOR=':'
RANLIB=''
SDK_CFLAGS='-D_LZMA_IN_CB -D_LZMA_OUT_READ -D_LZMA_SYSTEM_SIZE_T -D_LZMA_PROB32'
SDK_CXXFLAGS='-DCOMPRESS_MF_BT -DCOMPRESS_MF_BT4 -DCOMPRESS_MF_HC'
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='4.32.6'
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_F77=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias='x86_64-pc-linux-gnu'
build_cpu=''
build_os=''
build_vendor=''
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias='x86_64-pc-linux-gnu'
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
install_sh='$(SHELL) /var/tmp/portage/app-arch/lzma-utils-4.32.6/work/lzma-4.32.6/install-sh'
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "LZMA"
#define PACKAGE_TARNAME "lzma"
#define PACKAGE_VERSION "4.32.6"
#define PACKAGE_STRING "LZMA 4.32.6"
#define PACKAGE_BUGREPORT "lasse.collin@tukaani.org"
#define NDEBUG 1
#define PACKAGE "lzma"
#define VERSION "4.32.6"
configure: exit 77
|
Thanks very much in advance for the help
Last edited by E001754 on Sun Oct 26, 2008 5:16 pm; edited 1 time in total |
|
| Back to top |
|
 |
Hopeless Veteran


Joined: 05 Aug 2004 Posts: 3041 Location: Ariel
|
|
| Back to top |
|
 |
E001754 Apprentice


Joined: 01 Aug 2004 Posts: 290 Location: Paris, France
|
Posted: Fri Oct 24, 2008 3:09 pm Post subject: |
|
|
Thanks a lot.
Just the time to reboot in gentoo and I'll let you know if that worked ! |
|
| Back to top |
|
 |
E001754 Apprentice


Joined: 01 Aug 2004 Posts: 290 Location: Paris, France
|
Posted: Sun Oct 26, 2008 5:15 pm Post subject: |
|
|
I've finished my Gentoo installation thanks to your tip !
Thanks a lot once again !
Added [SOLVED] to topic title |
|
| 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
|
|