Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Every emerge fails "C compiler cannot create executables"
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
Ps0ke
n00b
n00b


Joined: 19 Jun 2013
Posts: 7

PostPosted: Wed Jun 19, 2013 2:15 pm    Post subject: Every emerge fails "C compiler cannot create executable Reply with quote

Hello, I'm new to gentoo and Linux in general. I installed it a week ago and got it running with the help of some experienced gentoo friends. Now I screwed up my Portage as it seems. Every ebuild that I try to install fails with the following message:
Code:
ps0ke-thinkpad ps0ke # emerge -qv netcat
>>> Verifying ebuild manifests
>>> Emerging (1 of 2) dev-libs/libmix-2.05-r6
>>> Failed to emerge dev-libs/libmix-2.05-r6, Log file:
>>>  '/var/tmp/portage/dev-libs/libmix-2.05-r6/temp/build.log'
>>> Jobs: 0 of 2 complete, 1 failed                 Load avg: 0.52, 0.13, 0.08
 * Package:    dev-libs/libmix-2.05-r6
 * Repository: gentoo
 * Maintainer: maintainer-needed@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   sandbox
 * Applying libmix-2.05-fix-pattern.patch ...
 [ ok ]
 * Applying libmix-2.05-gentoo-r1.patch ...
 [ ok ]
 * Applying libmix-2.05-libnet.patch ...
 [ ok ]
 * Running eautoreconf in '/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05' ...
 * Running aclocal ...
 [ ok ]
 * Running autoconf ...
 [ ok ]
 * Running autoheader ...
 [ ok ]
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05':
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/libmix-2.05-r6/work/libmix-v2.05/config.log
 * ERROR: dev-libs/libmix-2.05-r6 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2986:  Called econf '--disable-static' '--without-net2'
 *   phase-helpers.sh, line  521:  Called die
 * The specific snippet of code:
 *            die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libmix-2.05-r6'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libmix-2.05-r6'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libmix-2.05-r6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libmix-2.05-r6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05'
 * S: '/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05'

 * Messages for package dev-libs/libmix-2.05-r6:

 * ERROR: dev-libs/libmix-2.05-r6 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2986:  Called econf '--disable-static' '--without-net2'
 *   phase-helpers.sh, line  521:  Called die
 * The specific snippet of code:
 *            die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libmix-2.05-r6'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libmix-2.05-r6'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libmix-2.05-r6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libmix-2.05-r6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05'
 * S: '/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05'


I think there could be two reasons: I messed with the ownership in /var with this command
Code:
# chown ps0ke:ps0ke /var/*/mpd
and a
Code:
# chwon root:root /var
did not fix it.

Current permissions are this:
Code:
ps0ke-thinkpad ps0ke # ls -l /
total 69
drwxr-xr-x   2 root root  4096 Jun 18 00:44 bin
drwxr-xr-x   4 root root  1024 Jun 13 23:18 boot
drwxr-xr-x  15 root root 13840 Jun 19 15:22 dev
drwxr-xr-x  69 root root  4096 Jun 19 15:22 etc
drwxr-xr-x   3 root root  4096 Jun 12 23:48 home
lrwxrwxrwx   1 root root     5 Jun  6 06:52 lib -> lib64
drwxr-xr-x   3 root root  4096 Jun 12 22:32 lib32
drwxr-xr-x  13 root root  4096 Jun 18 01:15 lib64
drwx------   2 root root 16384 Jun 12 18:59 lost+found
drwxr-xr-x   3 root root  4096 Jun 18 17:34 media
drwxr-xr-x   4 root root  4096 Jun 18 20:02 mnt
drwxr-xr-x   3 root root  4096 Jun 13 18:07 opt
dr-xr-xr-x 111 root root     0 Jun 19 15:21 proc
drwx------  16 root root  4096 Jun 19 15:43 root
drwxr-xr-x  10 root root   480 Jun 19 15:22 run
drwxr-xr-x   2 root root  4096 Jun 18 20:11 sbin
dr-xr-xr-x  12 root root     0 Jun 19 15:21 sys
drwxrwxrwt   6 root root  4096 Jun 19 15:37 tmp
drwxr-xr-x  15 root root  4096 Jun 16 13:29 usr
drwxr-xr-x  11 root root  4096 Jun 15 00:18 var

ps0ke-thinkpad ps0ke # ls -l /var
total 36
drwxr-xr-x  9 root root 4096 Jun 13 21:01 cache
drwxr-xr-x  4 root root 4096 Jun 19 15:43 db
drwxr-xr-x  3 root root 4096 Jun 18 01:19 empty
drwxrwx--T  2 root gdm  4096 Jun 19 15:22 gdm
drwxr-xr-x 19 root root 4096 Jun 18 15:49 lib
lrwxrwxrwx  1 root root    9 Jun  6 05:52 lock -> /run/lock
drwxr-xr-x  8 root root 4096 Jun 19 15:22 log
drwxr-xr-x  5 root root 4096 Jun 12 22:19 nullmailer
lrwxrwxrwx  1 root root    4 Jun  6 05:52 run -> /run
drwxr-xr-x  3 root root 4096 Jun 12 22:16 spool
drwxrwxrwt  4 root root 4096 Jun 18 20:52 tmp


The other reason might be that I made a
Code:
 emerge --changed-use --deep world
which might have changed my compiler. I cannot
Code:
 emerge -e system
for obvious reasons as suggested in the forum previously. Here is my compiler information, which was requested in a similar case:
Code:
ps0ke-thinkpad ps0ke # gcc-config -c
x86_64-pc-linux-gnu-4.6.3
ps0ke-thinkpad ps0ke # gcc-config -l
 [1] x86_64-pc-linux-gnu-4.6.3 *
ps0ke-thinkpad ps0ke # eselect binutils list
Installed binutils for target x86_64-pc-linux-gnu
  [1]   2.22 *
ps0ke-thinkpad ps0ke # binutils-config -l
 [1] x86_64-pc-linux-gnu-2.22 *


Is there any chance of fixing the system without reinstalling it all together? I spent the whole last week setting it up and I think I couldn't replicate the more internal stuff like optimus configuration and so on on my own again. It would be very tedious to have to reinstall everything, especially now that I got most things I want running.

Thank you very much in advance for helping me, I hope this is not a duplicate.

Just in case the logs mentioned by emerge above are relevant I'll also paste them here:

Code:
ps0ke-thinkpad ps0ke # cat /var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./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 --disable-static --without-net2

## --------- ##
## Platform. ##
## --------- ##

hostname = ps0ke-thinkpad
uname -m = x86_64
uname -r = 3.8.13-gentoo
uname -s = Linux
uname -v = #3 SMP Thu Jun 13 23:16:39 CEST 2013

/usr/bin/uname -p = Intel(R) Core(TM) i7-3520M CPU @ 2.90GHz
/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/lib64/portage/bin/ebuild-helpers
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /opt/bin
PATH: /usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2246: checking for x86_64-pc-linux-gnu-gcc
configure:2273: result: x86_64-pc-linux-gnu-gcc
configure:2542: checking for C compiler version
configure:2551: x86_64-pc-linux-gnu-gcc --version >&5
x86_64-pc-linux-gnu-gcc (Gentoo 4.6.3 p1.13, pie-0.5.2) 4.6.3
Copyright (C) 2011 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:2562: $? = 0
configure:2551: x86_64-pc-linux-gnu-gcc -v >&5
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-cloog --without-ppl --disable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python --enable-checking=release --disable-libgcj --enable-libstdcxx-time --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.3 p1.13, pie-0.5.2'
Thread model: posix
gcc version 4.6.3 (Gentoo 4.6.3 p1.13, pie-0.5.2)
configure:2562: $? = 0
configure:2551: x86_64-pc-linux-gnu-gcc -V >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized option '-V'
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:2562: $? = 1
configure:2551: x86_64-pc-linux-gnu-gcc -qversion >&5
x86_64-pc-linux-gnu-gcc: error: unrecognized option '-qversion'
x86_64-pc-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:2562: $? = 1
configure:2582: checking whether the C compiler works
configure:2604: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory
configure:2608: $? = 1
configure:2646: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2651: error: in `/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05':
configure:2653: 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=set
ac_cv_env_CC_value=x86_64-pc-linux-gnu-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=native -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_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=native -O2 -pipe'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=x86_64-pc-linux-gnu-g++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-O1 -Wl,--as-needed'
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_prog_CC=x86_64-pc-linux-gnu-gcc

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
BUILD_STATIC=''
CC='x86_64-pc-linux-gnu-gcc'
CCAUTO=''
CCOPTS=''
CFLAGS='-march=native -O2 -pipe'
CLIB=''
CPP=''
CPPFLAGS=''
CXAUTO=''
CXX='x86_64-pc-linux-gnu-g++'
CXXFLAGS='-march=native -O2 -pipe'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENDIANESS=''
EXEEXT=''
GREP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS='-Wl,-O1 -Wl,--as-needed'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
UNAME=''
ac_ct_CC=''
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build_alias='x86_64-pc-linux-gnu'
datadir='/usr/share'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias='x86_64-pc-linux-gnu'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/share/info'
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var/lib'
mandir='/usr/share/man'
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. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 77


Code:
ps0ke-thinkpad ps0ke # emerge --info '=dev-libs/libmix-2.05-r6'
Portage 2.1.11.62 (default/linux/amd64/13.0, gcc-4.6.3, glibc-2.15-r3, 3.8.13-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.8.13-gentoo-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16141796 total,  15528156 free
KiB Swap:     999996 total,    999996 free
Timestamp of tree: Wed, 12 Jun 2013 15:15:01 +0000
ld GNU ld (GNU Binutils) 2.22
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.10.3, 1.11.6, 1.12.6
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.7 (virtual/os-headers)
sys-libs/glibc:           2.15-r3
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X aac acl alsa amd64 berkdb bindist bluetooth bzip2 cli cracklib crypt cxx dri dvd flac fortran gdbm giv gnome gpm iconv ipv6 jpeg midi mmx modules mudflap multilib ncurses nls nptl opengl openmp pam pcre png python readline ruby sdl session sse sse2 ssl tcpd tiff truetype unicode zlib zsh-completion" ABI_X86="64" 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" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19 ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Code:
ps0ke-thinkpad ps0ke # emerge -pqv '=dev-libs/libmix-2.05-r6'
[ebuild  N    ] dev-libs/libmix-2.05-r6  USE="-static-libs"


Code:
ps0ke-thinkpad ps0ke # cat /var/tmp/portage/dev-libs/libmix-2.05-r6/temp/build.log
 * Package:    dev-libs/libmix-2.05-r6
 * Repository: gentoo
 * Maintainer: maintainer-needed@gentoo.org
 * USE:        abi_x86_64 amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   sandbox
 * Applying libmix-2.05-fix-pattern.patch ...
 [ ok ]
 * Applying libmix-2.05-gentoo-r1.patch ...
 [ ok ]
 * Applying libmix-2.05-libnet.patch ...
 [ ok ]
 * Running eautoreconf in '/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05' ...
 * Running aclocal ...
 [ ok ]
 * Running autoconf ...
 [ ok ]
 * Running autoheader ...
 [ ok ]
checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler works... no
configure: error: in `/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05':
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/libmix-2.05-r6/work/libmix-v2.05/config.log
 * ERROR: dev-libs/libmix-2.05-r6 failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *          ebuild.sh, line   93:  Called src_configure
 *        environment, line 2986:  Called econf '--disable-static' '--without-net2'
 *   phase-helpers.sh, line  521:  Called die
 * The specific snippet of code:
 *            die "econf failed"
 *
 * If you need support, post the output of `emerge --info '=dev-libs/libmix-2.05-r6'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libmix-2.05-r6'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libmix-2.05-r6/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libmix-2.05-r6/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05'
 * S: '/var/tmp/portage/dev-libs/libmix-2.05-r6/work/libmix-v2.05'
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8208
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 19, 2013 2:20 pm    Post subject: Reply with quote

Look in the FAQ. :wink:

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
Ps0ke
n00b
n00b


Joined: 19 Jun 2013
Posts: 7

PostPosted: Wed Jun 19, 2013 2:46 pm    Post subject: Reply with quote

As the logs show my $CFLAGS are
Code:
CFLAGS="-march=native -O2 -pipe"
, which is correct I think, as I used the ones from the official amd64 handbook. I also posted the information on my binutils which should also be correct. I also posted the output of gcc-ocnfig which only shows one compiler config, so I cannot switch to an apparently newer version which might have been compiled because of the world rebuild. This is as much as I got from the FAQ (https://forums.gentoo.org/viewtopic-t-294109.html) and the post linked there. Maybe I just didn't read carefully enough, but I think hey did not offer any other solution apart from what I tried.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33030
Location: 56N 3W

PostPosted: Wed Jun 19, 2013 3:19 pm    Post subject: Reply with quote

Ps0ke,

This snippet of log tells what failed
Code:
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory
.
That will narrow down your search a little.

Yes it can be fixed. Almost all Gentoo breakages can be fixed without a reinstall. It takes a special talent to break Gentoo so badly that a reinstall is the only way out.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8208
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 19, 2013 3:21 pm    Post subject: Reply with quote

It's still reasonable for you to be pointed at the FAQ, first. :wink:

That said,
Code:
configure:2582: checking whether the C compiler works
configure:2604: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe  -Wl,-O1 -Wl,--as-needed conftest.c  >&5
/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/cc1: error while loading shared libraries: libmpc.so.3: cannot open shared object file: No such file or directory
Can you post the output of
Code:
ls -l /usr/lib/libmpc*
please?

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33030
Location: 56N 3W

PostPosted: Wed Jun 19, 2013 3:23 pm    Post subject: Reply with quote

/me confesses to not even knowing the FAQ existed :(
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Ps0ke
n00b
n00b


Joined: 19 Jun 2013
Posts: 7

PostPosted: Wed Jun 19, 2013 3:37 pm    Post subject: Reply with quote

John R. Graham wrote:
It's still reasonable for you to be pointed at the FAQ, first. :wink:


I wasn't blaming you! It was alright, one should always read the FAQ first. Honestly I didn't find /this/ FAQ, I think there are several :-) And strangely I was not pointed to the specific FAQ entry through the forum search.

John R. Graham wrote:

Can you post the output of
Code:
ls -l /usr/lib/libmpc*
please?


Code:

ps0ke-thinkpad ps0ke # ls -l /usr/lib/libmpc*
ls: cannot access /usr/lib/libmpc*: No such file or directory


Now I remember: I wanted to install the mpd client mpc and ran emerge mpc and it intstalled some lib called mpc and not audio-sound/mpc and so I unmerged mpc. Probably that was the mistake?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8208
Location: Somewhere over Atlanta, Georgia

PostPosted: Wed Jun 19, 2013 3:58 pm    Post subject: Reply with quote

Code:
~ # equery belongs /usr/lib/libmpc.so
 * Searching for /usr/lib/libmpc.so ...
dev-libs/mpc-1.0.1 (/usr/lib/libmpc.so -> libmpc.so.3.0.0)
dev-libs/mpc-1.0.1 (/usr/lib/libmpc.so.3.0.0)
~ # equery depends dev-libs/mpc
 * These packages depend on dev-libs/mpc:
dev-lang/nacl-toolchain-newlib-0_p9093 (dev-libs/mpc)
sys-devel/gcc-4.5.4 (>=dev-libs/mpc-0.8.1)
sys-devel/gcc-4.6.3 (>=dev-libs/mpc-0.8.1)
sys-devel/gcc-4.7.3 (>=dev-libs/mpc-0.8.1)
That would be a big yes. Alas, an already compiled version of this package isn't on the Gentoo Tinderbox, which would be part of the normal solution to this type of accidental unmerge issue. Perhaps someone else knows where to get it.

The second best alternative is to retrieve the files from a stage3 tarball and manually copy them into /usr/lib (lib64, I think, in your case). From a stage3 tarball I just happen to have lying around:
Code:
Gentoo $ tar -tjvf stage3-i686-20120103.tar.bz2 | grep libmpc
lrwxrwxrwx root/root         0 2012-01-03 16:33 ./usr/lib/libmpc.so -> libmpc.so.2.0.0
-rw-r--r-- root/root    134872 2012-01-03 16:33 ./usr/lib/libmpc.a
lrwxrwxrwx root/root         0 2012-01-03 16:33 ./usr/lib/libmpc.so.2 -> libmpc.so.2.0.0
-rwxr-xr-x root/root     75484 2012-01-03 16:33 ./usr/lib/libmpc.so.2.0.0
-rw-r--r-- root/root       947 2012-01-03 16:33 ./usr/lib/libmpc.la
After you get your compiler working again, you'll need to re-emerge mpc, like so:
Code:
emerge --oneshot dev-libs/mpc
so that Portage knows it's on your system and also to make sure you have the exact best version built with your selected flags.

Let me know if you need detailed guidance.

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
Ps0ke
n00b
n00b


Joined: 19 Jun 2013
Posts: 7

PostPosted: Wed Jun 19, 2013 11:00 pm    Post subject: Reply with quote

Thank you very much! I probably should have been able to locate that error myself :/

Anyway: a friend of mine built a tarball with the needed libs and I extracted it, moved the files in place and it worked, I am able to build again :)

But you could do one thing for me: the emerge man page tells me, that:
Code:
       --oneshot (-1)
              Emerge  as normal, but do not add the packages to the world file
              for later updating.

But why would I want that? When I unmerged the package, I removed it from my world file, why would I not want to put it in again? Does it get updated that way? Or is dev-libs/mpc recorded in the system file?
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 8208
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Jun 20, 2013 12:57 am    Post subject: Reply with quote

Not all of the packages on your system are in your world file. In fact, most aren't. Packages on your system are,
  • Packages that are in the @system set. These a the minimal packages needed for a working system.
  • Packages that you have explicitly installed. These are in your @world set.
  • Packages that are necessary for the packages in the @system and @world sets to work, traditionally called dependencies.
My guess (since verified) was that dev-libs/mpc was a dependency. If a mere dependency is added to the @world set then, if it's some day no longer required, it can't be automatically deleted by Portage. So, it's best not to cruft up your @world set.

- John
_________________
I can confirm that I have received between 0 and 999 National Security Letters.
Back to top
View user's profile Send private message
_______0
Guru
Guru


Joined: 15 Oct 2012
Posts: 521

PostPosted: Thu Jun 20, 2013 7:53 am    Post subject: Reply with quote

nothing wrong with re-installing, it's a good learning experience and don't depend on friends giving you rootkitted tarballs.
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