When I run binutils-config to change the profile, not only do the symlinks to the new profile not get created, but the profile reported by binutils-config -c does not change either. The initial switch to the new profile is shown as successfull but is not. No combinations of env-update and source /etc/profile seem to help Reproducible: Always Steps to Reproduce: 1. binutils-config <Another profile number> 2. binutils -c 3. Note that the profile has not changed Actual Results: Basically nothing Expected Results: Profile should've been changed Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20041102-r1, 2.6.11.6 i686) ================================================================= System uname: 2.6.11.6 i686 Intel(R) Pentium(R) M processor 1.70GHz Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 7 2005, 09:06:24)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.5, 1.6.3, 1.7.9-r1, 1.4_p6, 1.9.4, 1.8.5-r3 sys-devel/binutils: 2.15.92.0.2-r7 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2, 2.6.8.1-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -msse2 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms" GENTOO_MIRRORS="http://amsa.dnsalias.org ftp://ftp.heanet.ie/pub/gentoo/ http://ftp.roedu.net/pub/mirrors/gentoo.org/ ftp://ftp.gentoo-pt.org/pub/gentoo/ http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 X aalib alsa apm arts avi berkdb bitmap-fonts cdr crypt cups curl directfb emboss encode esd fam flac foomaticdb fortran gdbm gif gnome gpm gtk gtk2 imagemagick imlib ipv6 java jpeg junit kde ldap libg++ libwww mad mikmod motif mp3 mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcpd tiff truetype truetype-fonts type1-fonts xinerama xml2 xmms xv zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
change the top of binutils-config to read: #!/bin/bash -x and then run `binutils-config 1 >& switch-log` and then `binutils-config -c >& get-log` and post the log files as attachments
Created attachment 55820 [details] bash -x output when switching profiles
Created attachment 55821 [details] bash -x output when getting current profile
i dont understand ... what does `binutils-config -l` show ? you have two profiles ... one for i686 and one for mips ? then you're trying to do `binutils-config <mips profile>` ?
Yes, I have i686 and mips versions of binutils. I'm trying to set up a mips cross-compilation environment. However, the mips gcc won't emerge (errors when invoking as) because (I assume) it needs the mips binutils, which I can't switch to.
you're expecting behavior which is different from how it works you can have 1 profile active per target ... so in this case, you have 1 active target for mips and 1 active target for i686 when you run `binutils-config -c`, it prints out the active profile for the specified target ... if you dont specify a target, it'll print the native target by default which is i686 when you run `binutils-config -l`, all the profiles with a '*' at the end of them are active ... if you want to use -c, then try: binutils-config -c mips-unknown-linux-gnu
*** Bug 90217 has been marked as a duplicate of this bug. ***