Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 111022

Summary: gcc-config users env vars before setting them up
Product: Gentoo Linux Reporter: Attila Stehr <as.gentoo>
Component: [OLD] GCC PortingAssignee: Please assign to toolchain <gcc-porting>
Status: VERIFIED FIXED    
Severity: minor CC: f.mayer
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Attila Stehr 2005-10-31 07:23:56 UTC
magic atti # gcc-config 5
//etc/make.conf: line 4: CHOST: command not found
//etc/make.conf: line 5: CFLAGS: command not found
//etc/make.conf: line 7: CXXFLAGS: command not found
//etc/make.conf: line 10: MAKEOPTS: command not found
//etc/make.conf: line 11: FEATURES: command not found
//etc/make.conf: line 41: USE: command not found
 * /usr/bin/gcc-config: Could not get portage CHOST!
 * /usr/bin/gcc-config: You should verify that CHOST is set in one of these places:
 * /usr/bin/gcc-config:  - //etc/make.conf
 * /usr/bin/gcc-config:  - active environment
magic atti # cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built
this stage
# Please consult /etc/make.conf.example for a more detailed example

CHOST           ="x86_64-pc-linux-gnu"
CFLAGS          ="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
#CFLAGS         ="-march=athlon64 -O1 -pipe -fomit-frame-pointer -g -ggdb3"
CXXFLAGS        ="${CFLAGS}"
#LDFLAGS        ="-Wl,-O1"

MAKEOPTS        ="-j2"
FEATURES        ="candy severe sfperms test"
# FEATURES      ="candy severe sfperms"


Reproducible: Always
Steps to Reproduce:



Expected Results:  
switching profile

Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4-vanilla,
glibc-2.3.5-r1, 2.6.12-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /usr/X11R6/bin/startx /etc/env.d"
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox severe sfperms strict test"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/
ftp://ftp.tu-clausthal.de/pub/linux/gentoo/
ftp://ftp.gentoo.mesh-solutions.com/gentoo/
http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa amd64 audiofile avi berkdb bitmap-fonts bzlib cdda cdio
cdr crypt cups curl dbus dga directfb dlloader dmalloc dpms dts dvd dvdr dvdread
eds emacs emboss encode esd exif fam fame fat fbcon ffmpeg firefox flac
foomaticdb freetype gdbm ggi gif gimpprint gnome gpm gs gstreamer gtk gtk2 hal
hardened howl imagemagick imlib ipv6 ithreads javascript jpeg jpeg2k kde lcms
libsamplerate libwww lzo lzw lzw-tiff mad matroska memlimit mikmod mjpeg mmap
mng mozcalendar mozdevelop mozsvg mp3 mpeg mpi ncurses nls nptl nptlonly ntfs
nvidia ogg oggvorbis on-the-fly-crypt openal openexr opengl pam pda pdflib perl
png ppds python qt quicktime readline real reiserfs rle sdl slang sndfile spell
ssl stream svg symlink tcltk tcpd test tetex tga theora threads tidy tiff
toolbar truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd
videos vorbis wmf xine xml xml2 xmms xosd xpm xprint xtermtoolbar xv xvid xvmc
yv12 zlib linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, PORTDIR_OVERLAY
Comment 1 SpanKY gentoo-dev 2005-10-31 07:36:01 UTC

*** This bug has been marked as a duplicate of 105855 ***
Comment 2 Attila Stehr 2005-10-31 08:18:17 UTC
Sorry for posting again, but I didn't find the first bug report since that was
marked RESOLVED although the problem remains!
Comment 3 SpanKY gentoo-dev 2005-10-31 08:49:23 UTC
not a bug in space handling
Comment 4 SpanKY gentoo-dev 2005-10-31 17:30:55 UTC
fixed in gcc-config-1.3.12-r3
Comment 5 Attila Stehr 2005-10-31 22:15:41 UTC
Mike, thank you for fixing the bug this fast! :)

fix verified
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2006-10-06 02:39:33 UTC
*** Bug 103616 has been marked as a duplicate of this bug. ***