Discussion:
[gentoo-user-de] C compiler cannot create executables
(zu alt für eine Antwort)
Clemens Schüller
2014-12-14 17:30:01 UTC
Permalink
Hallo!

Seit einiger Zeit kann ich keine Pakete mehr emergen:

Hier slrn als Beispiel:

--8<---------------cut here---------------start------------->8---
checking for x86_64-pc-linux-gnu-gcc... clang
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2':
configure: error: C compiler cannot create executables
See `config.log' for more details

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2/config.log
* ERROR: net-nntp/slrn-1.0.2::gentoo failed (configure phase):
* econf failed
*=20
* Call stack:
* ebuild.sh, line 93: Called src_configure
* environment, line 2844: Called autotools-utils_src_configure
* environment, line 600: Called econf '--docdir=3D/usr/share/doc/=
slrn-1.0.2' '--with-docdir=3D/usr/share/doc/slrn-1.0.2' '--with-slrnpull' '=
--without-canlock' '--without-uu' '--enable-nls' '--with-ssl'
* phase-helpers.sh, line 584: Called die
* The specific snippet of code:
* die "econf failed"
*=20
* If you need support, post the output of `emerge --info '=3Dnet-nntp/slrn=
-1.0.2::gentoo'`,
* the complete build log and the output of `emerge -pqv '=3Dnet-nntp/slrn-=
1.0.2::gentoo'`.
* The complete build log is located at '/var/tmp/portage/net-nntp/slrn-1.0=
.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/net-nntp/slr=
n-1.0.2/temp/environment'.
* Working directory: '/var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2'
* S: '/var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2'
--8<---------------cut here---------------end--------------->8---


Und hier der relevante Auszug aus meiner make.conf:

--8<---------------cut here---------------start------------->8---
CC=3Dclang
CXX=3Dclang++
CFLAGS=3D"-O2 -march=3Dcore2 -pipe -fcolor-diagnostics"
CHOST=3D"x86_64-pc-linux-gnu"
CXXFLAGS=3D"${CFLAGS}"
LDFLAGS=3D"-Wl -O1 --as-needed"
ACCEPT_KEYWORDS=3D"~amd64"
MAKEOPTS=3D"-j8"
FEATURES=3D"parallel-fetch protect-owned splitdebug userfetch userpriv ccache"
--8<---------------cut here---------------end--------------->8---

Das Problem tritt _nur_ beim emergen von verschiedenen Paketen auf. Ein
manuelles make funktioniert ohne Probleme.
--
Beste Grüße, Clemens Schüller
Hartmut Figge
2014-12-14 17:40:02 UTC
Permalink
Post by Clemens Schüller
checking whether the C compiler works... no
configure: error: C compiler cannot create executables
Was sagt gcc-config -l? Bei mir:

***@i5_64 ~ $ gcc-config -l
[1] x86_64-pc-linux-gnu-4.7.3
[2] x86_64-pc-linux-gnu-4.8.3 *

Hartmut
Clemens Schüller
2014-12-14 18:20:02 UTC
Permalink
Hallo!
Post by Hartmut Figge
[1] x86_64-pc-linux-gnu-4.7.3
[2] x86_64-pc-linux-gnu-4.8.3 *
Da ich clang verwende, erübrigt sich das mit dem gcc - aber Danke.

Es war übrigens ein Rechteproblem beim ccache.
--
Beste Grüße, Clemens Schüller
Marco Ziebell
2014-12-14 17:40:02 UTC
Permalink
Guck dir mal die Datei "config.log" im Working-Directory an:

/var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2/config.log

Dort steht drinnen wieso das nicht funktioniert hat.
Such einfach nach "cannot create executables" und guck dir die Zeilen
darüber an.

mfg

Am Sun, 14 Dec 2014 18:25:55 +0100
Post by Clemens Schüller
Hallo!
--8<---------------cut here---------------start------------->8---
checking for x86_64-pc-linux-gnu-gcc... clang
checking whether the C compiler works... no
configure: error: in
error: C compiler cannot create executables See `config.log' for more
details
!!! /var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2/config.log
* econf failed
*=20
* ebuild.sh, line 93: Called src_configure
* environment, line 2844: Called
autotools-utils_src_configure
* environment, line 600: Called econf
'--docdir=3D/usr/share/doc/= slrn-1.0.2'
'--with-docdir=3D/usr/share/doc/slrn-1.0.2' '--with-slrnpull' '=
--without-canlock' '--without-uu' '--enable-nls' '--with-ssl'
* phase-helpers.sh, line 584: Called die
* die "econf failed"
*=20
* If you need support, post the output of `emerge --info
'=3Dnet-nntp/slrn= -1.0.2::gentoo'`,
* the complete build log and the output of `emerge -pqv
'=3Dnet-nntp/slrn-= 1.0.2::gentoo'`.
* The complete build log is located at
'/var/tmp/portage/net-nntp/slrn-1.0= .2/temp/build.log'.
* The ebuild environment file is located at
'/var/tmp/portage/net-nntp/slr= n-1.0.2/temp/environment'.
'/var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2'
* S: '/var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2'
--8<---------------cut here---------------end--------------->8---
--8<---------------cut here---------------start------------->8---
CC=3Dclang
CXX=3Dclang++
CFLAGS=3D"-O2 -march=3Dcore2 -pipe -fcolor-diagnostics"
CHOST=3D"x86_64-pc-linux-gnu"
CXXFLAGS=3D"${CFLAGS}"
LDFLAGS=3D"-Wl -O1 --as-needed"
ACCEPT_KEYWORDS=3D"~amd64"
MAKEOPTS=3D"-j8"
FEATURES=3D"parallel-fetch protect-owned splitdebug userfetch
userpriv ccache" --8<---------------cut
here---------------end--------------->8---
Das Problem tritt _nur_ beim emergen von verschiedenen Paketen auf.
Ein manuelles make funktioniert ohne Probleme.
Clemens Schüller
2014-12-14 18:20:02 UTC
Permalink
Hallo!
Post by Clemens Schüller
/var/tmp/portage/net-nntp/slrn-1.0.2/work/slrn-1.0.2/config.log
Dort steht drinnen wieso das nicht funktioniert hat.
Such einfach nach "cannot create executables" und guck dir die Zeilen
darüber an.
Es war ein Rechteproblem beim ccache - diesen neu installiert, das
ccache Verzeichnis mal umbenannt und schon geht es wieder.



Danke Dir
--
Beste Grüße, Clemens Schüller
Loading...