Hi!

I tried to emerge k3b and got suck while installing the necessary app-cdr/cdrdao-1.2.1-r1 package:

    [...]
    checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking for C compiler default output file name... configure: error: *C compiler cannot create executables*
    See `config.log' for more details.
    [...]
    !!! ERROR: app-cdr/cdrdao-1.2.1-r1 failed.

In the config.log the interesting part is

    configure:2357: x86_64-pc-linux-gnu-gcc -v </dev/null >&5
    Reading specs from ./specs
    x86_64-pc-linux-gnu-gcc: *./specs: Is a directory*
    configure:2360: $? = 1
    configure:2362: x86_64-pc-linux-gnu-gcc -V </dev/null >&5
    x86_64-pc-linux-gnu-gcc: '-V' option must have argument
    configure:2365: $? = 1
    configure:2388: checking for C compiler default output file name
    configure:2391: x86_64-pc-linux-gnu-gcc -march=k8 -pipe
                -O2 -fno-inline conftest.c >&5
    x86_64-pc-linux-gnu-gcc: *./specs: Is a directory*
    configure:2394: $? = 1
    [...]
    configure:2433: error: C compiler cannot create executables

What I figured out: My problem is, that my GCC reads the specs from the current directory (if available). To demonstrate this:

    bluespirit tmp # ls
    bluespirit tmp # gcc -v
    *Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/specs*
    Target: x86_64-pc-linux-gnu
    [...]
    gcc version 4.1.1 (Gentoo 4.1.1-r3)
    bluespirit tmp # touch specs
    bluespirit tmp # gcc -v
    *Reading specs from ./specs*
    gcc: unrecognized option '-v'
    gcc: unrecognized option '-mtune=k8'
    Target: x86_64-pc-linux-gnu
    [...]
    gcc version 4.1.1 (Gentoo 4.1.1-r3)
    bluespirit tmp # rm specs
    bluespirit tmp # mkdir specs
    bluespirit tmp # gcc -v
    *Reading specs from ./specs*
    gcc: ./specs: Is a directory
    bluespirit tmp # unset GCC_SPECS
    bluespirit tmp # gcc -v
    *Reading specs from ./specs*
    gcc: ./specs: Is a directory
    bluespirit tmp #

How can I teach my GCC to use ONLY the given specs - and ignore the directory specs (whichs exists in the cdrdao-folder). In my opinion I use the gentoo settings for the gcc - so I'm wondering, why this error is so rarely in the web.

Thanks in advance,
Charly
Portage 2.1.2.2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.5-r0, 
2.6.18-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.18-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 
4400+
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 21 Mar 2007 13:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=k8 -pipe -funroll-all-loops -fpeel-loops -ftracer 
-funswitch-loops -fweb -fomit-frame-pointer -specs 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/specs"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config 
/usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config 
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf 
/etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ 
/etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ 
/etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo 
/etc/texmf/web2c"
CXXFLAGS="-O3 -march=k8 -pipe -funroll-all-loops -fpeel-loops -ftracer 
-funswitch-loops -fweb -fomit-frame-pointer -specs 
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/specs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo";
LINGUAS="en en_GB de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress 
--force --whole-file --delete --delete-after --stats --timeout=180 
--exclude=/distfiles --exclude=/local --exclude=/packages 
--filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X X11 acpi aiglx alsa amd64 apache2 apm berkdb bitmap-fonts bzip2 
cdparanoia cdr cdrm cli cracklib crypt cups divx divx4linux doc dri dvd dvdr 
eds emboss encode esd firefox foomaticdb fortran gcj gif glitz gmedia gnome 
gnustep gpm gstreamer gtk gtk2 iconv imlib ipv6 isdnlog java jikes jpeg 
linuxthreads-tls lzw lzw-tiff midi mp3 mpeg ncurses nls nptl nptlonly nsplugin 
nvidia oav objc object-gc ogg opengl pam pcre perl png pppd pthread python qt3 
qt4 quicktime readline realmedia reflection samba sdl session spell spl ssl svg 
tcpd tiff tls truetype truetype-fonts type1-fonts unicode usb userlocales 
vorbis wmp xine xorg xpm xv 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 mulaw multi null plug rate 
route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" 
KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 
mtxorb ncurses text" LINGUAS="en en_GB de" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, 
PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, 
PORTDIR_OVERLAY

Reading specs from /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/specs
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/configure 
--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include 
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man 
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info 
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/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 --disable-libmudflap --disable-libssp --enable-java-awt=gtk 
--enable-languages=c,c++,java,objc,fortran --enable-shared 
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 4.1.1 (Gentoo 4.1.1-r3)

Reply via email to