Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emake failure: unable to install packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
thorlacius
n00b
n00b


Joined: 23 Apr 2010
Posts: 2
Location: Kópavogur, Iceland

PostPosted: Sat Apr 24, 2010 12:38 pm    Post subject: emake failure: unable to install packages Reply with quote

Something like this happens when I try to merge /any/ package. Can't upgrade because of this.
lappi bjartur # emerge libxml2
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) dev-libs/libxml2-2.7.7
* libxml2-2.7.7.tar.gz RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* CPV: dev-libs/libxml2-2.7.7
* REPO: gentoo
* USE: amd64 elibc_glibc kernel_linux multilib readline userland_GNU
>>> Unpacking source...
>>> Unpacking libxml2-2.7.7.tar.gz to /var/tmp/portage/dev-libs/libxml2-2.7.7/work
>>> Source unpacked in /var/tmp/portage/dev-libs/libxml2-2.7.7/work
>>> Preparing source in /var/tmp/portage/dev-libs/libxml2-2.7.7/work/libxml2-2.7.7 ...
* Removing useless C++ checks ... [ ok ]
* Running elibtoolize in: libxml2-2.7.7
* Applying portage-2.2.patch ...
* Applying sed-1.5.6.patch ...
* Applying as-needed-2.2.6.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-libs/libxml2-2.7.7/work/libxml2-2.7.7 ...
* econf: updating libxml2-2.7.7/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating libxml2-2.7.7/config.guess with /usr/share/gnuconfig/config.guess
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --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 --with-zlib --with-html-subdir=libxml2-2.7.7/html --docdir=/usr/share/doc/libxml2-2.7.7 --without-run-debug --without-python --with-readline --with-history --disable-ipv6
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
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-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name...
configure: error: in `/var/tmp/portage/dev-libs/libxml2-2.7.7/work/libxml2-2.7.7':
configure: error: C compiler cannot create executables
See `config.log' for more details.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-libs/libxml2-2.7.7/work/libxml2-2.7.7/config.log
* ERROR: dev-libs/libxml2-2.7.7 failed:
* econf failed
*
* Call stack:
* ebuild.sh, line 54: Called src_configure
* environment, line 4809: Called python_execute_function '-f' '-q' 'econf' '--with-zlib' '--with-html-subdir=libxml2-2.7.7/html' '--docdir=/usr/share/doc/libxml2-2.7.7' '--without-run-debug' '--without-python' '--with-readline' '--with-history' '--disable-ipv6'
* environment, line 3549: Called econf '--with-zlib' '--with-html-subdir=libxml2-2.7.7/html' '--docdir=/usr/share/doc/libxml2-2.7.7' '--without-run-debug' '--without-python' '--with-readline' '--with-history' '--disable-ipv6'
* ebuild.sh, line 544: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =dev-libs/libxml2-2.7.7',
* the complete build log and the output of 'emerge -pqv =dev-libs/libxml2-2.7.7'.
* The complete build log is located at '/var/tmp/portage/dev-libs/libxml2-2.7.7/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/libxml2-2.7.7/temp/environment'.
* S: '/var/tmp/portage/dev-libs/libxml2-2.7.7/work/libxml2-2.7.7'

>>> Failed to emerge dev-libs/libxml2-2.7.7, Log file:

>>> '/var/tmp/portage/dev-libs/libxml2-2.7.7/temp/build.log'

* Messages for package dev-libs/libxml2-2.7.7:

* ERROR: dev-libs/libxml2-2.7.7 failed:
* econf failed
*
* Call stack:
* ebuild.sh, line 54: Called src_configure
* environment, line 4809: Called python_execute_function '-f' '-q' 'econf' '--with-zlib' '--with-html-subdir=libxml2-2.7.7/html' '--docdir=/usr/share/doc/libxml2-2.7.7' '--without-run-debug' '--without-python' '--with-readline' '--with-history' '--disable-ipv6'
* environment, line 3549: Called econf '--with-zlib' '--with-html-subdir=libxml2-2.7.7/html' '--docdir=/usr/share/doc/libxml2-2.7.7' '--without-run-debug' '--without-python' '--with-readline' '--with-history' '--disable-ipv6'
* ebuild.sh, line 544: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =dev-libs/libxml2-2.7.7',
* the complete build log and the output of 'emerge -pqv =dev-libs/libxml2-2.7.7'.
* The complete build log is located at '/var/tmp/portage/dev-libs/libxml2-2.7.7/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/libxml2-2.7.7/temp/environment'.
* S: '/var/tmp/portage/dev-libs/libxml2-2.7.7/work/libxml2-2.7.7'
lappi bjartur # emerge --info =dev-libs/libxml2-2.7.7
Portage 2.1.8.3 (default/linux/amd64/10.0, gcc-4.3.4, glibc-2.10.1-r1, 2.6.32-tuxonice-r5 x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-2.6.32-tuxonice-r5-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 23 Apr 2010 19:15:01 +0000
app-shells/bash: 4.0_p35
dev-lang/python: 2.6.4
dev-util/cmake: 2.8.0-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox: 1.6-r2
sys-devel/autoconf: 2.63-r1
sys-devel/automake: 1.10.2
sys-devel/binutils: 2.18-r3
sys-devel/gcc: 4.3.4, 4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool: 2.2.6b
virtual/os-headers: 2.6.33
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=intel64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news noinfo parallel-fetch protect-owned python-trace sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.rhnet.is/pub/gentoo ftp://ftp.rhnet.is/pub/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 cli crypt cups cxx dri evdev fortran gdbm gpm haskell iconv javascript latex mmx modules mudflap multilib ncurses nls nptl nptlonly openmp pam pcre perl pppd readline reflection session spl sse sse2 ssl sysfs tcpd unicode xattr xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau"
Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Sat Apr 24, 2010 12:52 pm    Post subject: Reply with quote

You have -march=intel64 in your CFLAGS, which isn't a valid arch setting, and when you see "configure: error: C compiler cannot create executables" it's usually caused by something like this.

Interestingly, you have a more appropriate setting in CXXFLAGS...

You should change them in /etc/make.conf to the following;
Code:
CFLAGS="-O2 -march=native -pipe"
CXXFLAGS="${CFLAGS}"


You don't need -fomit-frame-pointer in there either, on amd64 it's enabled by default by -O2.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
thorlacius
n00b
n00b


Joined: 23 Apr 2010
Posts: 2
Location: Kópavogur, Iceland

PostPosted: Sat Apr 24, 2010 8:05 pm    Post subject: Reply with quote

Thanks!

I thought GCC had different optimizations for Intel's x86_64.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Apr 24, 2010 8:50 pm    Post subject: Reply with quote

It might, but you need to use a valid -march to specify such. Possible values include nocona, core2, and atom. There may be others. New -march values are added over time, so not all values will be available in older versions of gcc. Your version should understand core2, but I do not think it will understand atom.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9530
Location: beyond the rim

PostPosted: Sat Apr 24, 2010 11:07 pm    Post subject: Reply with quote

Also
Code:
See `config.log' for more details.
is usually some good advice :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
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