| View previous topic :: View next topic |
| Author |
Message |
p3t3r n00b

Joined: 30 Aug 2004 Posts: 15 Location: Tennessee, USA
|
Posted: Wed Jun 14, 2006 9:19 pm Post subject: eselect compiler won't select gcc-4.1.1 |
|
|
Hi,
I've upgraded gcc-config to 2.0.0-rc1. It tells me to use eselect:
| Code: | # gcc-config
Usage: gcc-config [<options>]
WARNING: gcc-config is deprecated and is just a frontend to the compiler
eselect module. In the future, gcc-config will be removed
from portage. Please see 'eselect compiler help'
|
So I did:
| Code: | # eselect compiler list
Available compilers for CTARGET i686-pc-linux-gnu
[1] i686-pc-linux-gnu-4.1.1/vanilla
Activated profiles:
i686-pc-linux-gnu i686-pc-linux-gnu-4.1.1/vanilla
# eselect compiler set 1
Successfully set compiler for i686-pc-linux-gnu to i686-pc-linux-gnu-4.1.1/vanilla.
# eselect compiler list
Available compilers for CTARGET i686-pc-linux-gnu
[1] i686-pc-linux-gnu-4.1.1/vanilla
Activated profiles:
i686-pc-linux-gnu i686-pc-linux-gnu-4.1.1/vanilla
# eselect compiler show
(none)
|
'gcc' doesn't work but 'i686-pc-linux-gcc' does:
| Code: | $gcc
gcc-config error: gcc wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile.
|
Because of this 'emerge' fails. In my case, 'kdebase-3.5.3' cannot be installed.
Anybody has ideas what gives?
PS. 'emerge --info':
| Code: | Portage 2.1 (default-linux/x86/2005.1, gcc-4.1.1, glibc-2.4-r3, 2.6.15-gentoo-r8 i686)
=================================================================
System uname: 2.6.15-gentoo-r8 i686 Intel(R) Pentium(R) M processor 2.13GHz
Gentoo Base System version 1.12.1
dev-lang/python: 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache: [Not Present]
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.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 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://open-systems.ufl.edu/mirrors/gentoo ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
MAKEOPTS="-j2"
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 X Xaw3d a52 aac acpi acpi4linux alsa apm arts avi bash-completion berkdb bindist bitmap-fonts bzip2 cairo canvas cdr cli crypt cups dbus dri dvd dvdread dynagraph emacs emboss encode ffmpeg firefox foomaticdb fortran gcj gdbm gif gmp gnuplot gpm graphviz gtk gtk2 gzip hal ibm imap imlib isdnlog java javascript jpeg justify kde kdeenablefinal libg++ libwww mad mikmod mmx mmxext motif mozcalendar mozdevelop moznocompose moznoirc moznomail mozsvg mp3 mpeg ncurses nls noantlr nobcel nobeanutils nobsf nobsh nocommonslogging nocommonsnet nojdepend nojsch nolog4j nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin numeric ogg oggvorbis opengl oss pam pcre pdf pdflib perl png pppd python qt quicktime rdesktop readline reflection ruby sdl session silverxp spell spl sse sse2 ssl subversion svg tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts vcd vidix vorbis wifi win32codecs wmf xml2 xorg xv zeroconf zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati video_cards_fbdev video_cards_radeon video_cards_r128 video_cards_vesa video_cards_vga"
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
|
|
|
| Back to top |
|
 |
thestick Guru


Joined: 07 Apr 2006 Posts: 531 Location: /dev/urandom
|
Posted: Thu Jun 15, 2006 7:46 pm Post subject: |
|
|
try running
gcc-4.1.1
and see if you have it installed. |
|
| Back to top |
|
 |
p3t3r n00b

Joined: 30 Aug 2004 Posts: 15 Location: Tennessee, USA
|
Posted: Thu Jun 15, 2006 8:45 pm Post subject: |
|
|
Yes, 'gcc-4.1.1' works: it produces working executables. It seems to be the same as 'i686-pc-linux-gnu-gcc'.
I emerged old gcc-config:
| Code: | # emerge =gcc-config-1.3.13-r2
|
It removed the old one (gcc-config-2.0.0_rc1) and now 'gcc' (version 4.1.1) works again like a charm
So I think the problem was with the new gcc-config.
Unfortunately, 'gfortran' doesn't work. But 'gfortran-4.1.1' does work. Too bad there is no 'gfortran-config'
| Code: | $gfortran
gcc-config error: gfortran wrapper: Could not determine which compiler to use. Invalid CTARGET or CTARGET has no selected profile.
|
|
|
| Back to top |
|
 |
Maedhros Bodhisattva


Joined: 14 Apr 2004 Posts: 5511 Location: Durham, UK
|
Posted: Thu Jun 15, 2006 9:11 pm Post subject: |
|
|
There have been a few problems with the new gcc-config and eselect-compiler. I'd suggest masking them for now and filing a bug about it (as long as you can't find a similar one - I couldn't, at least). _________________ No-one's more important than the earthworm. |
|
| Back to top |
|
 |
eradicator Retired Dev

Joined: 01 Apr 2003 Posts: 144 Location: Berkeley, CA
|
Posted: Tue Jun 20, 2006 9:04 am Post subject: |
|
|
I'm curious why you don't have a default CTARGET set. Do:
eselect compiler set -n 1 _________________ Gentoo Developer: amd64, sparc, sound, toolchain, accessibility |
|
| Back to top |
|
 |
p3t3r n00b

Joined: 30 Aug 2004 Posts: 15 Location: Tennessee, USA
|
Posted: Tue Jun 20, 2006 12:08 pm Post subject: |
|
|
CTARGET disappeared when I emerged sys-devel/gcc-config-2.0.0_rc1
Trying 'eselect compiler set' multiple times with various options didn't help:
after each invocation CTARGET was undefined.
I had to mask sys-devel/gcc-config-2.0.0_rc1 and go back to sys-devel/gcc-config-1.3.13-r2.
Everything is OK since then: the compilers work without complaints (unlike before).
I'm using gcc-3.4.6 as a default gcc but gcc-4.1.1 also works when called by name. |
|
| Back to top |
|
 |
eradicator Retired Dev

Joined: 01 Apr 2003 Posts: 144 Location: Berkeley, CA
|
Posted: Thu Jun 22, 2006 8:33 am Post subject: |
|
|
set assumes --native if you don't have a native set. Please try passing '-n' to force it, but before doing that, please tell me the output of:
/usr/libexec/eselect/compiler/profile-manager get-profiles | grep COMPILER_CONFIG_DEFAULT_CTARGET _________________ Gentoo Developer: amd64, sparc, sound, toolchain, accessibility |
|
| Back to top |
|
 |
p3t3r n00b

Joined: 30 Aug 2004 Posts: 15 Location: Tennessee, USA
|
Posted: Sun Jun 25, 2006 2:13 pm Post subject: |
|
|
Here it is:
| Code: | $/usr/libexec/eselect/compiler/profile-manager get-profiles | grep COMPILER_CONFIG_DEFAULT_CTARGET
COMPILER_CONFIG_DEFAULT_CTARGET="i486-pc-linux-gnu"
|
|
|
| Back to top |
|
 |
asheron n00b

Joined: 04 Jun 2006 Posts: 40
|
Posted: Mon Jun 26, 2006 8:08 am Post subject: |
|
|
why didnt u just do this?
| Quote: | Code Listing 3.4: Upgrading GCC
# emerge -uav gcc
(Please substitute "i686-pc-linux-gnu-3.4.5" with the GCC
version and CHOST settings you've upgraded to:)
# gcc-config i686-pc-linux-gnu-3.4.5
# source /etc/profile |
worked fine for me, didnt use no autoselcter _________________ Karma, It's Real!
"No penguins were harmed during the writing, just a bunch of broken windows to let them escape..."-xtacocorex |
|
| Back to top |
|
 |
eradicator Retired Dev

Joined: 01 Apr 2003 Posts: 144 Location: Berkeley, CA
|
Posted: Tue Jun 27, 2006 12:05 am Post subject: |
|
|
| p3t3r wrote: | Here it is:
| Code: | $/usr/libexec/eselect/compiler/profile-manager get-profiles | grep COMPILER_CONFIG_DEFAULT_CTARGET
COMPILER_CONFIG_DEFAULT_CTARGET="i486-pc-linux-gnu"
|
|
Ok, and what do you have for:
eselect compiler show --ctarget="i486-pc-linux-gnu"
If it shows "(none)", then you don't have a compiler for that ctarget selected. Please do:
eselect compiler list
then select one of the i486 compilers. If you don't have any, then select one of them and use 'eselect compiler set -n <profile>'
to choose that one as default _________________ Gentoo Developer: amd64, sparc, sound, toolchain, accessibility |
|
| Back to top |
|
 |
p3t3r n00b

Joined: 30 Aug 2004 Posts: 15 Location: Tennessee, USA
|
Posted: Tue Jun 27, 2006 3:49 am Post subject: |
|
|
Indeed
eselect compiler show --ctarget="i486-pc-linux-gnu"
responded with "(none)".
So I did:
eselect compiler list
and got:
[1] i686-pc-linux-gnu-3.4.6/hardened
[2] i686-pc-linux-gnu-3.4.6/hardenednopie
[3] i686-pc-linux-gnu-3.4.6/hardenednopiessp
[4] i686-pc-linux-gnu-3.4.6/hardenednossp
[5] i686-pc-linux-gnu-3.4.6/vanilla
[6] i686-pc-linux-gnu-4.1.1/vanilla
So I did:
eselect compiler set -n 5
Now:
eselect compiler show
gives:
i686-pc-linux-gnu-3.4.6/vanilla
So everything seems fine. But:
eselect compiler show --ctarget="i686-pc-linux-gnu"
gives:
(none)
In any case, both gcc-3.4.6 and gcc-4.1.1 work. gcc -v says it's gcc-3.4.6
so I'm happy. But I have a vague feeling something doesn't quite
connect somewhere...
Thank you eradicator for your help. |
|
| Back to top |
|
 |
eradicator Retired Dev

Joined: 01 Apr 2003 Posts: 144 Location: Berkeley, CA
|
Posted: Tue Jun 27, 2006 9:11 am Post subject: |
|
|
I'm still confused why you have none for ctarget=i686-*. Could you please tell me the full output of:
/usr/libexec/eselect/compiler/profile-manager get-profiles _________________ Gentoo Developer: amd64, sparc, sound, toolchain, accessibility |
|
| Back to top |
|
 |
p3t3r n00b

Joined: 30 Aug 2004 Posts: 15 Location: Tennessee, USA
|
Posted: Tue Jun 27, 2006 3:11 pm Post subject: |
|
|
Here it is:
| Code: | /usr/libexec/eselect/compiler/profile-manager get-profiles
COMPILER_CONFIG_DEFAULT_CTARGET="i686-pc-linux-gnu"
COMPILER_CONFIG_ALL_CTARGETS="i686-pc-linux-gnu"
COMPILER_CONFIG_SET_CTARGETS="i686-pc-linux-gnu"
COMPILER_CONFIG_PROFILES_i686_pc_linux_gnu="i686-pc-linux-gnu-3.4.6/hardened i686-pc-linux-gnu-3.4.6/hardenednopie i686-pc-linux-gnu-3.4.6/hardenednopiessp i686-pc-linux-gnu-3.4.6/hardenednossp i686-pc-linux-gnu-3.4.6/vanilla i686-pc-linux-gnu-4.1.1/vanilla"
COMPILER_CONFIG_SET_i686_pc_linux_gnu="i686-pc-linux-gnu-3.4.6/vanilla"
|
|
|
| Back to top |
|
 |
eradicator Retired Dev

Joined: 01 Apr 2003 Posts: 144 Location: Berkeley, CA
|
Posted: Wed Jun 28, 2006 1:25 pm Post subject: |
|
|
| p3t3r wrote: | Here it is:
| Code: | /usr/libexec/eselect/compiler/profile-manager get-profiles
COMPILER_CONFIG_DEFAULT_CTARGET="i686-pc-linux-gnu"
COMPILER_CONFIG_ALL_CTARGETS="i686-pc-linux-gnu"
COMPILER_CONFIG_SET_CTARGETS="i686-pc-linux-gnu"
COMPILER_CONFIG_PROFILES_i686_pc_linux_gnu="i686-pc-linux-gnu-3.4.6/hardened i686-pc-linux-gnu-3.4.6/hardenednopie i686-pc-linux-gnu-3.4.6/hardenednopiessp i686-pc-linux-gnu-3.4.6/hardenednossp i686-pc-linux-gnu-3.4.6/vanilla i686-pc-linux-gnu-4.1.1/vanilla"
COMPILER_CONFIG_SET_i686_pc_linux_gnu="i686-pc-linux-gnu-3.4.6/vanilla"
|
|
Ah ok... it appears there is a bug with eselect compiler show --ctarget="<blah>"
Thanks _________________ Gentoo Developer: amd64, sparc, sound, toolchain, accessibility |
|
| Back to top |
|
 |
longshot Tux's lil' helper

Joined: 04 Sep 2003 Posts: 90
|
Posted: Thu Jun 29, 2006 6:06 pm Post subject: |
|
|
I get the same problem with gcc-config-2.0.0_rc1/eselect-1.0.2
| Code: |
eselect compiler show
x86_64-pc-linux-gnu-4.1.1/amd64-vanilla
|
| Code: |
eselect compiler show --ctarget="x86_64-pc-linux-gnu"
(none)
|
|
|
| Back to top |
|
 |
BodyART n00b

Joined: 11 Aug 2006 Posts: 3
|
Posted: Tue Aug 15, 2006 9:26 pm Post subject: |
|
|
I started my first ever gentoo build this past thursday. So it's day 6 in my journey into the headaches of upgrading.
I have to be honest, installing Gentoo went quick by the guide in the doc's section. I wanted to upgrade to GCC 4.1.1, and started running into an entire series of challenges. P3t3r's problem was my most recent one. I finished emerge -e world, and now that I'm ready to put on PHP, I get the can't compile error.
The fix p3t3r mentioned took care of my problem entirely. Thanks.
kind of silly I have to downgrade from eselect back to gcc-config though.  _________________ Full Time Dabbler. I get things done by beating it repeatedly with a big club, which normally only takes a few seconds. The problem is getting the motivation to pick up that club.  |
|
| Back to top |
|
 |
|