Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 88491 - binutils-config does not actually change the active profile
Summary: binutils-config does not actually change the active profile
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://forums.gentoo.org/viewtopic-t-...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-09 10:23 UTC by Geoff Mishkin
Modified: 2005-05-06 15:11 UTC (History)
1 user (show)

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


Attachments
bash -x output when switching profiles (switch-log,13.47 KB, text/plain)
2005-04-09 18:28 UTC, Geoff Mishkin
Details
bash -x output when getting current profile (get-log,3.01 KB, text/plain)
2005-04-09 18:31 UTC, Geoff Mishkin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geoff Mishkin 2005-04-09 10:23:36 UTC
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
Comment 1 SpanKY gentoo-dev 2005-04-09 18:11:31 UTC
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
Comment 2 Geoff Mishkin 2005-04-09 18:28:55 UTC
Created attachment 55820 [details]
bash -x output when switching profiles
Comment 3 Geoff Mishkin 2005-04-09 18:31:04 UTC
Created attachment 55821 [details]
bash -x output when getting current profile
Comment 4 SpanKY gentoo-dev 2005-04-09 18:32:34 UTC
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>` ?
Comment 5 Geoff Mishkin 2005-04-09 18:41:08 UTC
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.
Comment 6 SpanKY gentoo-dev 2005-04-09 18:57:49 UTC
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
Comment 7 SpanKY gentoo-dev 2005-05-06 15:11:14 UTC
*** Bug 90217 has been marked as a duplicate of this bug. ***