Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
"C compiler cannot create executables" !??!
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 9, 10, 11  
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
nickel
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2005
Posts: 118

PostPosted: Thu Oct 06, 2011 3:47 pm    Post subject: Reply with quote

Perhaps, the answer is already there. I didn't find it, so sorry.

I just bought an acer aspire. It has intel i7 2670q processor.

When i try to emerge syslog-ng, it fails and complains: "configure: error: C compiler cannot create executables".

Mostly here is the talk about upgrading gcc and such.

My system is brand new. I read about fixing my CFLAGS. Easier said than done.
I never had a 64bit system, so i don't exactly know how.

/etc/make.conf
Code:

# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-march=corei7-avx -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"
MAKEOPTS="-j9"

# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="mmx sse sse2"
ACCEPT_LICENSE="Broadcom"


pls, help!
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


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

PostPosted: Thu Oct 06, 2011 4:52 pm    Post subject: Reply with quote

Comment out the CFLAGS variable in make.conf and see if the problem goes away. If so, it probably means that the compiler you're using doesn't support the exact -march you're trying to use. Try that & report back, please.

- John
_________________
Yoda: "Intentionally left blank, this space is."
Back to top
View user's profile Send private message
nickel
Tux's lil' helper
Tux's lil' helper


Joined: 21 Oct 2005
Posts: 118

PostPosted: Tue Oct 11, 2011 3:23 pm    Post subject: Reply with quote

yeah, it did it! I set my CFLAGS to native.
thx
Back to top
View user's profile Send private message
lostinspace2011
Tux's lil' helper
Tux's lil' helper


Joined: 09 Sep 2005
Posts: 130
Location: UK

PostPosted: Wed Feb 29, 2012 7:08 pm    Post subject: Reply with quote

I am having the same issue and also got around it by using march=native ? Is this the best solution. What are the alternatives ?
Back to top
View user's profile Send private message
hypermyth
n00b
n00b


Joined: 02 Feb 2010
Posts: 10

PostPosted: Tue Mar 20, 2012 1:21 am    Post subject: Reply with quote

Similar issue - not sure how to fix it. Can anyone suggest anything, please?

I ran emerge -auD world on a previously working system which had not been updated for about 3 weeks.
This upgraded gcc-config-1.4.1-r1 to gcc-config-1.5-r2
sys-devel/gcc-4.5.3-r1 to sys-devel/gcc-4.5.3-r2
sys-devel/gcc-4.4.5 to sys-devel/gcc-4.4.6-r1
glibc was not updated
The emerge was completely successful, in that it completed without error.
I did not run revdep-rebuild at the time but I did use dispatch-conf and I have subsequently rebooted
Now the C compiler is not working. I have a few other miscellaneous breakages as well (firefox).

Compiling by hand fails

Code:
$ gcc -o hello hello.c
In file included from hello.c:1:0:
/usr/include/stdio.h:34:21: fatal error: stddef.h: No such file or directory
compilation terminated.


emerge fails
Code:
$ firefox
firefox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
$ ldd /usr/bin/firefox
   linux-vdso.so.1 =>  (0x00007fff8d540000)
   libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fb652326000)
   libdl.so.2 => /lib64/libdl.so.2 (0x00007fb652122000)
   libstdc++.so.6 => not found
   libc.so.6 => /lib64/libc.so.6 (0x00007fb651d9b000)
   /lib64/ld-linux-x86-64.so.2 (0x00007fb652543000)
# emerge -1 firefox
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) www-client/firefox-10.0.1-r1
 * firefox-10.0-patches-0.6.tar.xz RMD160 SHA1 SHA256 size ;-) ...                                                                                                                  [ ok ]
 * firefox-10.0.1.source.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                    [ ok ]
 *
 * You are enabling official branding. You may not redistribute this build
 * to any users on your network or the internet. Doing so puts yourself into
 * a legal problem with Mozilla Foundation
 * You can disable it by emerging firefox _with_ the bindist USE-flag
 * Checking for at least 4 gibibytes disk space at "/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/temp" ...                                                                [ ok ]
>>> Unpacking source...
>>> Unpacking firefox-10.0-patches-0.6.tar.xz to /home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work
>>> Unpacking firefox-10.0.1.source.tar.bz2 to /home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work
>>> Source unpacked in /home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work
>>> Preparing source in /home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release ...
 * Applying various patches (bugfixes/updates) ...
 *   1001-fix_jemalloc_vs_aslr.patch ...                                                                                                                                            [ ok ]
 *   1002-fix_jemalloc_vs_aslr_part2.patch ...                                                                                                                                      [ ok ]
 *   2000-firefox_gentoo_install_dirs.patch ...                                                                                                                                     [ ok ]
 *   2002_fix-preferences-gentoo.patch ...                                                                                                                                          [ ok ]
 *   2003_fix_system_hunspell_dict_detection.patch ...                                                                                                                              [ ok ]
 *   2004_support_libvpx_1.0.0.patch ...                                                                                                                                            [ ok ]
 *   5001_fix-title-backspace.patch ...                                                                                                                                             [ ok ]
 *   5002_allow_locked_prefs.patch ...                                                                                                                                              [ ok ]
 *   5003_avoid_spurious_run_items_in_application_handlers.patch ...                                                                                                                [ ok ]
 *   5004_properly_launch_applications_set_in_home.patch ...                                                                                                                        [ ok ]
 *   5005_use_resource_urls_appropriately.patch ...                                                                                                                                 [ ok ]
 *   5006_export_IO_stdin_symbol_for_sparc.patch ...                                                                                                                                [ ok ]
 *   5007_bug_709259_fix_cursor_support.patch ...                                                                                                                                   [ ok ]
 *   5008_part1_bug_635918_libcanberra.patch ...                                                                                                                                    [ ok ]
 *   5009_part2_bug_635918_libcanberra.patch ...                                                                                                                                    [ ok ]
 *   6001_add_alpha_defines_in_ipc.patch ...                                                                                                                                        [ ok ]
 *   6006_dont_require_16_bytes_alignment_for_VMFrame_on_sparc.patch ...                                                                                                            [ ok ]
 *   6007_fix_ARMAssembler-getOp2RegScale_on_ARMv5.patch ...                                                                                                                        [ ok ]
 *   6008_fix_build_failure_on_platforms_without_yarr_support.patch ...                                                                                                             [ ok ]
 *   6009_avaoid_R_SPARC_WDISP22_relocation_in_TrampolineSparc.s.patch ...                                                                                                          [ ok ]
 *   6010_avoid_invalid_conversions.patch ...                                                                                                                                       [ ok ]
 *   6011_fix_arm_detection.patch ...                                                                                                                                               [ ok ]
 * Done with patching
 * Running eautoreconf in '/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release' ...
 * Running autoconf ...                                                                                                                                                             [ ok ]
 * Running elibtoolize in: mozilla-release/js/src/ctypes/libffi/
 *   Applying install-sh/1.5.4 patch ...
 *   Applying portage/2.2 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Running elibtoolize in: mozilla-release/modules/freetype2/builds/unix/
 *   Applying portage/2.2 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Running elibtoolize in: mozilla-release/toolkit/crashreporter/google-breakpad/autotools/
 *   Applying portage/2.2 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/2.2.6 patch ...
 * Running elibtoolize in: mozilla-release/ipc/chromium/src/third_party/libevent/
 *   Applying install-sh/1.5 patch ...
 *   Applying portage/1.5.10 patch ...
 *   Applying sed/1.5.6 patch ...
 *   Applying as-needed/1.5.26 patch ...
>>> Source prepared.
>>> Configuring source in /home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release ...

==========================================================
Building firefox-10.0.1-r1 with the following configuration
    --enable-application=browser    mozilla.org default
    --enable-optimize               mozilla default
    --with-system-jpeg              system_libs
    --with-system-zlib              system_libs
    --enable-pango                  system_libs
    --enable-svg                    system_libs
    --enable-system-cairo           system_libs
    --disable-installer             disable_update_strip
    --disable-pedantic              disable_update_strip
    --disable-updater               disable_update_strip
    --disable-strip                 disable_update_strip
    --disable-strip-libs            disable_update_strip
    --disable-install-strip         disable_update_strip
    --enable-single-profile         basic_profile
    --disable-profilesharing        basic_profile
    --disable-profilelocking        basic_profile
    --enable-default-toolkit=cairo-gtk2  mozilla.org default
    --enable-official-branding      +!bindist
    --enable-ogg                    +alsa
    --enable-wave                   +alsa
    --enable-crashreporter          +crashreporter
    --enable-dbus                   +dbus
    --disable-debug                 -debug
    --disable-tests                 -debug
    --disable-debugger-info-modules  -debug
    --enable-ipc                    +ipc
    --disable-libnotify             -libnotify
    --disable-startup-notification  -startup-notification
    --disable-system-sqlite         -system-sqlite
    --disable-necko-wifi            -wifi
    --enable-webm                   +webm
    --with-system-libvpx=/usr       +webm
    --enable-tracejit               mozilla.org default
    --with-system-nspr              mozilla.org default
    --with-nspr-prefix=/usr         mozilla.org default
    --with-system-nss               mozilla.org default
    --with-nss-prefix=/usr          mozilla.org default
    --x-includes=/usr/include       mozilla.org default
    --x-libraries=/usr/lib64        mozilla.org default
    --with-system-libevent=/usr     mozilla.org default
    --enable-system-hunspell        mozilla.org default
    --disable-gnomevfs              mozilla.org default
    --disable-gnomeui               mozilla.org default
    --enable-gio                    mozilla.org default
    --enable-storage                places
    --enable-places                 places
    --enable-places_bookmarks       places
    --enable-oji                    mozilla.org default
    --enable-mathml                 mozilla.org default
    --disable-mochitest             broken
    --prefix=/usr                   mozilla.org default
    --libdir=/usr/lib64             mozilla.org default
    --enable-extensions=default     mozilla.org default
    --disable-gconf                 mozilla.org default
    --disable-mailnews              mozilla.org default
    --enable-canvas                 mozilla.org default
    --enable-safe-browsing          mozilla.org default
    --with-system-png               mozilla.org default
    --enable-system-ffi             mozilla.org default
    --with-default-mozilla-five-home=/usr/lib64/firefox  mozilla.org default
    --target=x86_64-pc-linux-gnu    mozilla.org default
==========================================================

>>> Source configured.
>>> Compiling source in /home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release ...
make -j6 -f client.mk
make -f /home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release/client.mk realbuild
make[1]: Entering directory `/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release'
make[2]: Entering directory `/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release'
cd obj-x86_64-unknown-linux-gnu
/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release/configure
Adding configure options from /home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release/.mozconfig:
  --enable-application=browser
  --enable-optimize
  --with-system-jpeg
  --with-system-zlib
  --enable-pango
  --enable-svg
  --enable-system-cairo
  --disable-installer
  --disable-pedantic
  --disable-updater
  --disable-strip
  --disable-strip-libs
  --disable-install-strip
  --enable-single-profile
  --disable-profilesharing
  --disable-profilelocking
  --enable-default-toolkit=cairo-gtk2
  --enable-official-branding
  --enable-ogg
  --enable-wave
  --enable-crashreporter
  --enable-dbus
  --disable-debug
  --disable-tests
  --disable-debugger-info-modules
  --enable-ipc
  --disable-libnotify
  --disable-startup-notification
  --disable-system-sqlite
  --disable-necko-wifi
  --enable-webm
  --with-system-libvpx=/usr
  --enable-tracejit
  --with-system-nspr
  --with-nspr-prefix=/usr
  --with-system-nss
  --with-nss-prefix=/usr
  --x-includes=/usr/include
  --x-libraries=/usr/lib64
  --with-system-libevent=/usr
  --enable-system-hunspell
  --disable-gnomevfs
  --disable-gnomeui
  --enable-gio
  --enable-storage
  --enable-places
  --enable-places_bookmarks
  --enable-oji
  --enable-mathml
  --disable-mochitest
  --prefix=/usr
  --libdir=/usr/lib64
  --disable-gconf
  --disable-mailnews
  --enable-canvas
  --enable-safe-browsing
  --with-system-png
  --enable-system-ffi
  --with-default-mozilla-five-home=/usr/lib64/firefox
  --target=x86_64-pc-linux-gnu
  --enable-extensions=default
creating cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for mawk... no
checking for gawk... gawk
checking for perl5... no
checking for perl... /usr/bin/perl
checking for objcopy... /usr/bin/objcopy
checking for gcc... x86_64-pc-linux-gnu-gcc
checking whether the C compiler (x86_64-pc-linux-gnu-gcc -pipe -mno-avx -Wl,-O1 -Wl,--as-needed) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Fix above errors and then restart with               "make -f client.mk build"
make[2]: *** [configure] Error 1
make[2]: Leaving directory `/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release'
make[1]: *** [obj-x86_64-unknown-linux-gnu/Makefile] Error 2
make[1]: Leaving directory `/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release'
make: *** [build] Error 2
emake failed
 * ERROR: www-client/firefox-10.0.1-r1 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line  85:  Called src_compile
 *   environment, line 6455:  Called die
 * The specific snippet of code:
 *           CC="$(tc-getCC)" CXX="$(tc-getCXX)" LD="$(tc-getLD)" MOZ_MAKE_FLAGS="${MAKEOPTS}" emake -f client.mk || die "emake failed";
 *
 * If you need support, post the output of 'emerge --info =www-client/firefox-10.0.1-r1',
 * the complete build log and the output of 'emerge -pqv =www-client/firefox-10.0.1-r1'.
 * The complete build log is located at '/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/temp/environment'.
 * S: '/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/work/mozilla-release'

>>> Failed to emerge www-client/firefox-10.0.1-r1, Log file:

>>>  '/home/portage_tmp/portage/www-client/firefox-10.0.1-r1/temp/build.log'



revdep-rebuild reports a few breakages (but not including firefox)
Code:
# revdep-rebuild -i -p
 * Configuring search environment for revdep-rebuild
 * Environment mismatch from previous run, deleting temporary files...

 * Checking reverse dependencies
 * Packages containing binaries and libraries broken by a package update
 * will be emerged.

 * Collecting system binaries and libraries
 * Generated new 1_files.rr
 * Collecting complete LD_LIBRARY_PATH
 * Generated new 2_ldpath.rr
 * Checking dynamic linking consistency
[ 18% ]  *   broken /usr/bin/mencoder (requires libcdio_cdda.so.0
libcdio_paranoia.so.0
libstdc++.so.6)
 *   broken /usr/bin/mplayer (requires libcdio_cdda.so.0
libcdio_paranoia.so.0
libstdc++.so.6)
[ 24% ]  *   broken /usr/bin/spumux (requires libMagickCore.so.4)
[ 29% ]  *   broken /usr/lib/pcoip/vchan_plugins/libscredirvchanclient.so (requires libpcsclite.so.1)
[ 64% ]  *   broken /usr/lib64/libfftw3_threads.la (requires -lgomp)
 *   broken /usr/lib64/libfftw3f_threads.la (requires -lgomp)
 *   broken /usr/lib64/libfftw3l_threads.la (requires -lgomp)
[ 66% ]  *   broken /usr/lib64/libhdf5_fortran.la (requires -lgfortran)
 *   broken /usr/lib64/libhdf5hl_fortran.la (requires -lgfortran)
[ 96% ]  *   broken /usr/libexec/gvfsd-cdda (requires libcdio.so.12
libcdio_cdda.so.0
libcdio_paranoia.so.0)
[ 100% ]                 
 * Generated new 3_broken.rr
 * Assigning files to packages
 *   /usr/bin/mencoder -> media-video/mplayer
 *   /usr/bin/mplayer -> media-video/mplayer
 *   /usr/bin/spumux -> media-video/dvdauthor
 *  !!! /usr/lib/pcoip/vchan_plugins/libscredirvchanclient.so not owned by any package is broken !!!
 *   /usr/lib/pcoip/vchan_plugins/libscredirvchanclient.so -> (none)
 *   /usr/lib64/libfftw3_threads.la -> sci-libs/fftw
 *   /usr/lib64/libfftw3f_threads.la -> sci-libs/fftw
 *   /usr/lib64/libfftw3l_threads.la -> sci-libs/fftw
 *   /usr/lib64/libhdf5_fortran.la -> sci-libs/hdf5
 *   /usr/lib64/libhdf5hl_fortran.la -> sci-libs/hdf5
 *   /usr/libexec/gvfsd-cdda -> gnome-base/gvfs
 * Generated new 4_raw.rr and 4_owners.rr
 * Cleaning list of packages to rebuild
 * Generated new 4_pkgs.rr
 * Assigning packages to ebuilds
 * Generated new 4_ebuilds.rr
 * Evaluating package order
 * Generated new 5_order.rr
 * All prepared. Starting rebuild
emerge --complete-graph=y --oneshot  --pretend gnome-base/gvfs:0 media-video/dvdauthor:0 media-video/mplayer:0 sci-libs/fftw:3.0 sci-libs/hdf5:0

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] media-video/dvdauthor-0.6.18
[ebuild   R    ] sci-libs/fftw-3.2.2
[ebuild   R    ] sci-libs/hdf5-1.8.4-r1
[ebuild   R    ] media-video/mplayer-1.0_rc4_p20110322-r1
[ebuild   R    ] gnome-base/gvfs-1.6.7-r1
 * Now you can remove -p (or --pretend) from arguments and re-run revdep-rebuild.


Here some more general information about my environment

Code:
# gcc-config -l
 * gcc-config: Profile does not exist or invalid setting for /etc/env.d/gcc/x86_64-pc-linux-gnu-4.5.3
 [1] x86_64-pc-linux-gnu-4.4.6
 [2] x86_64-pc-linux-gnu-4.5.3 *

$ ls -l /etc/make.profile
lrwxrwxrwx 1 root root 48 Nov  6 00:34 /etc/make.profile -> ../usr/portage/profiles/default/linux/amd64/10.0

# cat /etc/env.d/gcc/x86_64-pc-linux-gnu-4.5.3
LDPATH="/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3:/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/32"
MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man"
INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info"
STDCXX_INCDIR="g++-v4"
GCC_PATH="/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3"

# equery l glibc gcc
 * Searching for glibc ...
[IP-] [  ] sys-libs/glibc-2.13-r4:2.2

# emerge --info
Portage 2.1.10.49 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.13-r4, 3.1.6-gentoo x86_64)
=================================================================
System uname: Linux-3.1.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.0.3
Timestamp of tree: Sun, 18 Mar 2012 00:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.6-r4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo vmware
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA Oracle-BCLA-JavaSE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-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/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/home/portage_distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6"
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="/home/portage_tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vmware"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="acl acpi alsa amd64 berkdb bzip2 cdr cli cracklib crypt cups cxx dri dvd fortran gdbm gnome gpm gtk iconv ipv6 laptop mmx modules mudflap multilib ncurses nls nptl nptlonly nvidia openmp oss pam pcre perl pppd readline session sse sse2 ssl sysfs tcpd tetex tiff unicode xorg xulrunner 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 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 stage tables krita karbon braindump" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="i810 fbdev 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, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


I have tried selecting the compiler with gcc-config and running env-update, to no avail.
Back to top
View user's profile Send private message
hypermyth
n00b
n00b


Joined: 02 Feb 2010
Posts: 10

PostPosted: Wed Mar 21, 2012 12:22 am    Post subject: My issue solved Reply with quote

The cause was vmware PCoIP client 32-bit software I was obliged to install. It recreated a /usr/lib containing just its own files. I removed this directory and symlinked /usr/lib64 to /usr/lib, which is the way I presume things are mean't to be. Then running env-update seems to have got everything working again.
Back to top
View user's profile Send private message
sheem-on
n00b
n00b


Joined: 28 Mar 2012
Posts: 4
Location: SE-USA

PostPosted: Wed Mar 28, 2012 10:32 pm    Post subject: Yet another variation on CC cannot create... Reply with quote

Trying to emerge/ebuild about 1/2 of ports I need to, recently fail.

Case in point: dev-util/diffstat-1.55. Look at this relevant segment of the config.log:


configure:1282: $? = 0
configure:1284: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.5.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /ebuild/working/portage/sys-devel/gcc-4.5.3-r2/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-lto --disable-nls --with-system-zlib --disable-werror --enable-secureplt --enable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.5.3/python --enable-checking=release --enable-java-awt=gtk --enable-objc-gc --enable-languages=c,c++,java,objc,obj-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.5.3-r2 p1.1, pie-0.4.7'
Thread model: posix
gcc version 4.5.3 (Gentoo 4.5.3-r2 p1.1, pie-0.4.7)
configure:1287: $? = 0
configure:1289: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
x86_64-pc-linux-gnu-gcc: '-V' option must have argument
configure:1292: $? = 1
configure:1312: checking for C compiler default output
configure:1315: x86_64-pc-linux-gnu-gcc /usr/bin/gcc -fPIC -march=k8 -O2 -pipe -Wl,-O1 -Wl,--as-needed conftest.c >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/4.5.3/../../../../x86_64-pc-linux-gnu/bin/ld: error in /usr/bin/gcc(.eh_frame); no .eh_frame_hdr table will be created.
configure:1318: $? = 0
configure:1347: result: a.out
configure:1352: checking whether the C compiler works
configure:1358: ./a.out
./a.out: relocation error: ./a.out: symbol ck_chk_fail, version GLIBC_2.4 not defined in file libc.so.6 with link time reference
configure:1361: $? = 127
configure:1368: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.


Background:
* Installed AVR cross-tools for Arduino (the Atmel package). After a while tried to follow "Gentoo on Beagle" which failed
(another matter altogether?).
* Tried this operation with several versions of GCC. Various modes of failure, but at the same place.
* Ran the configure generated by the ebuild directly; configures fine.

Questions:

* Freely admitting my setup is complex and messy and the trouble I am in is of my own doing, can someone help me
out of this mess?
* Where does the -V come into CFLAGS? It is not in /etc/make.conf, not in the .ebuild script, not in the environment.
This -V is not set up correctly for gcc 2.5, and is gone from gcc 2.6.
* Who/what specifies that GLIBC_2.4 is needed, and why?
Why not newer version (2.12 is installed here).
* I can see the string "GLIBC_2.4" in /lib64/libc.xxx. So why is the test a.out complaining?
* How can I "force" recognition of this label?

Any help will be greatly appreciated!

Sincerely,

Sheem-On
_________________
Sincerely,

Sheem-On
Back to top
View user's profile Send private message
sheem-on
n00b
n00b


Joined: 28 Mar 2012
Posts: 4
Location: SE-USA

PostPosted: Wed Mar 28, 2012 10:34 pm    Post subject: Sorry, I forgot a critical datum Reply with quote

Linux nomis 3.2.9-gentoo_nomis-20120305.0-c326 #1 SMP PREEMPT Mon Mar 5 19:53:23 EST 2012 x86_64 AMD Phenom(tm) II X4 940 Processor AuthenticAMD GNU/Linux
_________________
Sincerely,

Sheem-On
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
Goto page Previous  1, 2, 3 ... 9, 10, 11
Page 11 of 11

 
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