Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 136748 - eselect-compiler: native CTARGET not set
Summary: eselect-compiler: native CTARGET not set
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-14 01:22 UTC by Alexander Rusa
Modified: 2006-06-20 23:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
config.log (config.log,7.75 KB, text/plain)
2006-06-14 02:44 UTC, Alexander Rusa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Rusa 2006-06-14 01:22:18 UTC
I get an error when I try to "emerge -u gmp".

...
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking GMPABI=32
checking compiler gcc -O2 -pipe -fomit-frame-pointer ... no
checking compiler icc -O2 -pipe -fomit-frame-pointer ... no
configure: error: could not find a working compiler, see config.log for details

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/gmp-4.2/work/gmp-4.2/config.log

!!! ERROR: dev-libs/gmp-4.2 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  gmp-4.2.ebuild, line 40:   Called econf '--localstatedir=/var/state/gmp' '--disable-mpfr' '--disable-mpbsd' '--enable-cxx'
  ebuild.sh, line 541:   Called die

!!! econf failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

--- config.log ---
...
configure:1658: checking build system type
configure:1676: result: i686-pc-linux-gnu
configure:1684: checking host system type
configure:1698: result: i686-pc-linux-gnu
configure:1721: checking for a BSD-compatible install
configure:1776: result: /bin/install -c
configure:1787: checking whether build environment is sane
configure:1830: result: yes
configure:1887: checking for gawk
configure:1903: found /bin/gawk
configure:1913: result: gawk
configure:1923: checking whether make sets $(MAKE)
configure:1943: result: yes
configure:2109: checking whether to enable maintainer-specific portions of Makefiles
configure:2118: result: no
User:
GMPABI=
CC=
CFLAGS=-O2 -pipe -fomit-frame-pointer
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=32
cclist=gcc icc
configure:3773: gcc 2>&1 | grep xlc >/dev/null
configure:3776: $? = 1
configure:3830: checking compiler gcc -O2 -pipe -fomit-frame-pointer
Test compile:
configure:3844: gcc -O2 -pipe -fomit-frame-pointer  conftest.c >&5
^[[1;31m!!! Error: ^[[00mInvalid CTARGET: (null)
gcc-config error: Could not run/locate "gcc"
configure:3847: $? = 1
failed program was:

int main () { return 0; }

...

--- emerge --info ---

Portage 2.1 (default-linux/x86/2006.0, gcc-3.3.4, glibc-2.3.6-r3, 2.6.13-gentoo-r4 i686)
=================================================================
System uname: 2.6.13-gentoo-r4 i686 AMD Athlon(TM) MP 1600+
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.1.3-r1, 2.2.3-r5, 2.3.5, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.14.90.0.8-r1, 2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /opt/glftpd/etc /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/www/localhost/htdocs//mythweb/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.kems.net http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext 3ds X acl acpi alsa apache2 apm arts avi bash-completion berkdb bitmap-fonts blender-game bluetooth browserplugin bzip2 calendar cdparanoia cgi cli crypt cups dba dga dnd dri dts dvd dvdr dvdread eds emboss encode esd ethereal evo ffmpeg foomaticdb fortran ftp gd gdbm geoip gif gimp glade glgd glut gnome gpm gstreamer gtk gtk2 iconv icq imagemagick imap imlib inifile innodb insecure-drivers ipv6 irmc isdnlog javascript jpeg kde lcms libg++ libwww lm_sensors logitech-mouse mad mikmod mime mmx motif mozilla mp3 mpeg mplayer mppe-mppc mysql mythtv ncurses net nls nntp nocardbus nptl nvidia objc ogg opengl oss pam pcre pdf pdflib pear perl pic png postgres pppd profile python qt quicktime readline reflection sdk sdl session spell spl sse ssl tcpd transcode truetype truetype-fonts type1-fonts udev usb videos vorbis xml xml2 xmlreader xmlwriter xmms xorg xosd xv zip zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Daniel Black (RETIRED) gentoo-dev 2006-06-14 02:05:18 UTC
Try:

eselect compiler update
source /etc/profile

and remerge. If that fails...:
!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/gmp-4.2/work/gmp-4.2/config.log
Comment 2 Alexander Rusa 2006-06-14 02:44:17 UTC
Created attachment 89119 [details]
config.log
Comment 3 Alexander Rusa 2006-06-14 02:55:08 UTC
It still doesn't work...
Comment 4 Jeremy Huddleston (RETIRED) gentoo-dev 2006-06-20 01:40:19 UTC
What happens when you do:
eselect compiler list

Do you see a '*' showing one as default?

Do:
eselect compiler set -n <profile>

This will setup a the default CTARGET to that profile
Comment 5 Jeremy Huddleston (RETIRED) gentoo-dev 2006-06-20 20:32:14 UTC
or even just 'eselect compiler set <profile>'.  The logic in eselect.compiler will force --native if there is no default currently set...
Comment 6 Alexander Rusa 2006-06-20 23:15:33 UTC
Thank you!

Now it works!