View previous topic :: View next topic |
Author |
Message |
sven_sol Tux's lil' helper
Joined: 27 Apr 2005 Posts: 120 Location: Royston, Herts. UK
|
Posted: Tue Aug 02, 2005 2:12 pm Post subject: gcc-config problem |
|
|
I've been having a problem with gcc. running gcc-config -l returns:
Code: |
env: envvar: Invalid argument
* /usr/bin/gcc-config: Could not get portage CHOST!
* /usr/bin/gcc-config: No gcc profile is active; please select one!
[1] i686-pc-linux-gnu-3.3.5-20050130
[2] i686-pc-linux-gnu-3.3.5-20050130-hardened
[3] i686-pc-linux-gnu-3.3.5-20050130-hardenednopie
[4] i686-pc-linux-gnu-3.3.5-20050130-hardenednossp
[5] i686-pc-linux-gnu-3.4.4
[6] i686-pc-linux-gnu-3.4.4-hardened
[7] i686-pc-linux-gnu-3.4.4-hardenednopie
[8] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[9] i686-pc-linux-gnu-3.4.4-hardenednossp
|
switching to gcc-config 5
Code: |
root@sven ~ # gcc-config 5
* Switching to i686-pc-linux-gnu-3.4.4 compiler ... [ ok ]
|
but then running genkernel
Code: |
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
|
But a fair few times...
anyone seen this?
Cheers,
Sven. _________________ Tua mater tam antiqua ut linguam latinam loquatur
Linux User: #405647 |
|
Back to top |
|
|
ph03n1x l33t
Joined: 06 Feb 2003 Posts: 756
|
Posted: Tue Aug 02, 2005 2:38 pm Post subject: |
|
|
when u look at your output you see that there's an error:
Code: | * /usr/bin/gcc-config: Could not get portage CHOST! |
It's just a guess but I think your make.conf is missing something like:
Code: | CHOST="i686-pc-linux-gnu" |
|
|
Back to top |
|
|
sven_sol Tux's lil' helper
Joined: 27 Apr 2005 Posts: 120 Location: Royston, Herts. UK
|
Posted: Tue Aug 02, 2005 2:44 pm Post subject: |
|
|
nope, checked that...
Code: |
CFLAGS="-O3 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
ACCEPT_KEYWORDS="~x86"
USE="X x86 nptl nptlonly 3dnow 3dnowext acpi -apm alsa cdr dvd dvdr dvdread truetype gnome gtk gtk2 hal mmx mmxext pam png jpeg nls sse theora usb"
|
tried to manually change it to CHOST="i686-pc-linux-gnu-gcc-3.4.4" and a few other variants, but still no joy. _________________ Tua mater tam antiqua ut linguam latinam loquatur
Linux User: #405647 |
|
Back to top |
|
|
ribwund n00b
Joined: 15 Aug 2004 Posts: 3
|
Posted: Tue Aug 02, 2005 2:51 pm Post subject: |
|
|
Maybe you should try to source /etc/profile |
|
Back to top |
|
|
jhunholz Apprentice
Joined: 29 Apr 2004 Posts: 154 Location: Raleigh, NC
|
Posted: Wed Aug 03, 2005 1:04 am Post subject: |
|
|
I am getting something very similar. I am trying to install Gentoo (don't worry, I've done this a bazillion times before), and while emerge -e system, it hits the package python-fchksum-1.7.1 and throws this error:
gcc-config error: could not run/locate "i386-pc-linux-gnu-gcc"
It seems to me that it is looking for an old compiler. It successfully emerged 20 packages before hitting this one and those were compiled fine. Anyone else seen this? _________________ Member of the Gentoo Right Wing Conspiracy |
|
Back to top |
|
|
EricNeon n00b
Joined: 09 Jun 2005 Posts: 17 Location: Shanghai-China
|
Posted: Wed Aug 03, 2005 8:59 am Post subject: |
|
|
you must do as so then change gcc vertion
# gcc-config -l #--- this is list the current gcc version ---#
#gcc-config 5(a num of gcc version list) #--- this is exchange to a new gccc version ---#
#source /etc/profile #--- this is update your envolument, must do it ! ---#
#gcc -v #-- this is sure the version --# _________________ AMD Athlon-mp 2200+ 512M
If you can dream it , you can do it ! |
|
Back to top |
|
|
sven_sol Tux's lil' helper
Joined: 27 Apr 2005 Posts: 120 Location: Royston, Herts. UK
|
Posted: Sat Aug 06, 2005 9:54 am Post subject: |
|
|
I've done all those steps before. A friend has been helping me out and we've got quite a bit of head way, but I'm still getting this:
Code: |
sven ~ # gcc-config -l
env: envvar: Invalid argument
* /usr/bin/gcc-config: Could not get portage CHOST!
* /usr/bin/gcc-config: No gcc profile is active; please select one!
[1] i686-pc-linux-gnu-3.4.4
[2] i686-pc-linux-gnu-3.4.4-hardened
[3] i686-pc-linux-gnu-3.4.4-hardenednopie
[4] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.4-hardenednossp
sven ~ # gcc-config 1
* Switching to i686-pc-linux-gnu-3.4.4 compiler ... [ ok ]
sven ~ # source /etc/profile
sven ~ # gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.4/specs
Configured with: /var/tmp/portage/gcc-3.4.4/work/gcc-3.4.4/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4.4 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4.4/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.4/include/g++-v3 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++,f77 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 (Gentoo 3.4.4, ssp-3.4.4-1.0, pie-8.7.8)
sven ~ # gcc-config -l
env: envvar: Invalid argument
* /usr/bin/gcc-config: Could not get portage CHOST!
* /usr/bin/gcc-config: No gcc profile is active; please select one!
[1] i686-pc-linux-gnu-3.4.4
[2] i686-pc-linux-gnu-3.4.4-hardened
[3] i686-pc-linux-gnu-3.4.4-hardenednopie
[4] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.4-hardenednossp
sven ~ #
|
and a genkernel gives me:
Code: |
sven linux # genkernel --menuconfig all
* Gentoo Linux Genkernel; Version 3.3.5
* Running with options: --menuconfig all
* Linux Kernel 2.6.11-gentoo-r6 for x86...
* kernel: >> Running mrproper...
* config: Using config from /etc/kernels/kernel-config-x86-2.6.11-gentoo-r6
* Previous config backed up to .config.bak
* >> Running oldconfig...
* ERROR: Failed to compile the "oldconfig" target...
* -- Grepping log... --
* Linux Kernel 2.6.11-gentoo-r6 for x86...
* kernel: >> Running mrproper...
COMMAND: make -j2 CC="gcc" LD="ld" AS="as" mrproper
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
awk: cmd. line:1: fatal: cannot open file `/usr/src/linux-2.6.11-gentoo-r6/include/linux/version.h' for reading (No such file or directory)
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
gcc-config error: Could not run/locate "gcc"
env: envvar: Invalid argument
|
.....and lots more of the same.....
my head hurts... _________________ Tua mater tam antiqua ut linguam latinam loquatur
Linux User: #405647 |
|
Back to top |
|
|
dwblas Guru
Joined: 14 Jul 2003 Posts: 525 Location: Southern California (No jokes please)
|
Posted: Sat Aug 06, 2005 8:42 pm Post subject: |
|
|
I'm no expert, but have never seen "x86" as a USE flag. CHOST and CFLAGS should take care of everything like that. Since there aren't any other good option, try deleting it. It __may__ be that upon finding an illegal USE, the process stops and never gets to CHOST in make.conf. Hence the CHOST error. If that doesn't work, I'd try real basic and simple USE params. Your guess is as good as mine. |
|
Back to top |
|
|
metty Tux's lil' helper
Joined: 25 Oct 2004 Posts: 118
|
Posted: Sat Aug 06, 2005 10:10 pm Post subject: |
|
|
USE flag x86 does exist (in the global list most likely).
search /usr/portage/profiles/use.desc for a description.
For the person with the error:
Do any other programs give errors after gcc-config ?
I'm also wondering if any of the other gcc-config options would help ? (try 'gcc-config' by itself for the list).
Just some thoughts anyway. |
|
Back to top |
|
|
hielvc Advocate
Joined: 19 Apr 2002 Posts: 2805 Location: Oceanside, Ca
|
|
Back to top |
|
|
wobo n00b
Joined: 11 Aug 2005 Posts: 3
|
Posted: Thu Aug 11, 2005 2:40 pm Post subject: |
|
|
jholz7 wrote: | while emerge -e system, it hits the package python-fchksum-1.7.1 and throws this error:
gcc-config error: could not run/locate "i386-pc-linux-gnu-gcc" |
Ok, I ran into this very same error at the same stage of installation and the same file. All other packages before compiled fine without errors. /etc/make.conf has the correct values and profile is sourced - as I said, all packages before compiled without error.
This is my first installation of Gentoo. I know my way around Linux after 8+ years and I have the very fine documentation here before me (online on a second computer) but at the moment I'm lost. I read the HowTo which is linked above but it does not help. The system is in the middle of installation, so how can I fix the problem and continue - or do I have to start from scratch and forget the last 5 hours of downloading and compiling? And if so, how can I avoid running into the same trap?
ATM the system sits right there and I don't know how to go on. If you feel like saying "Go back to Mandriva or SuSE if you can't help yourself!", ok, I will do that and I'll live happily ever after. If you feel like helping me to go on, I will do that, too. But one of those 2 would be nice because I hate computers which sit right there doing nothing.
wobo |
|
Back to top |
|
|
Languid_Heap n00b
Joined: 20 Apr 2003 Posts: 14
|
Posted: Thu Aug 11, 2005 11:14 pm Post subject: |
|
|
I'm getting the same error on a new installation of 2005.1 progressing from stage 2 to stage 3 during emerge --emptytree system. Like you I compiled 20+ packages without error then hit this package and encountered the same error. |
|
Back to top |
|
|
wobo n00b
Joined: 11 Aug 2005 Posts: 3
|
Posted: Thu Aug 11, 2005 11:29 pm Post subject: |
|
|
Languid_Heap wrote: | I'm getting the same error on a new installation of 2005.1 progressing from stage 2 to stage 3 during emerge --emptytree system. |
Yes, that's it. I guess, if stumbling onto that problem during an update of a running system would leave some options I could deal with - like the HowTo mentioned above. But it's a party killer during an installation! And it looks as if we are not the only people with this problem. So a solution should be possible. Even if that involves starting all over again.
wobo |
|
Back to top |
|
|
wobo n00b
Joined: 11 Aug 2005 Posts: 3
|
Posted: Fri Aug 12, 2005 4:21 pm Post subject: |
|
|
Update:
In absence of any other idea or hint from the forum crowd I tried the [HOWTO 'Could not run/locate "i386-pc-linux-gnu-gcc"] although I hate doing something without really knowing what I'm doing. But I can't let this machine stay idle for days without knowing whether or not the problem will be solved. So I followed the HowTo to the letter and hoped for the best.
But, no change in result, same error as before.
wobo |
|
Back to top |
|
|
sthost n00b
Joined: 14 Aug 2005 Posts: 1
|
|
Back to top |
|
|
rhill Retired Dev
Joined: 22 Oct 2004 Posts: 1629 Location: sk.ca
|
Posted: Sun Aug 14, 2005 6:11 pm Post subject: |
|
|
there's two completely unrelated problems reported in this thread, so i'm addressing the original poster's. gcc-config error: could not run/locate "i386-pc-linux-gnu-gcc" has nothing to do with this so please start a new thread or search the forum.
sven_sol: i think your current config got screwed up somehow. check if you have a /etc/env.d/gcc/config on your system, and that it contains one line:
Code: | CURRENT=i686-pc-linux-gnu-3.4.4 |
the problem is the error "env: envvar: Invalid argument". i'm not sure why you're getting that. the line that's generating that error in gcc-config is:
Code: | export REAL_CHOST=$(${ENV} -i ${PORTAGEQ} envvar CHOST 2>/dev/null) |
which should work.
Code: | dirtyepic ~ $ portageq envvar CHOST
i686-pc-linux-gnu |
_________________ by design, by neglect
for a fact or just for effect |
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
Posted: Tue Aug 30, 2005 2:19 pm Post subject: |
|
|
i've had this problem show up on three systems in the last 24 hours. the common denominator is that they were all loaded with the portage-20050827 snapshot and had the toolkit rebuilt with emerge -e system && emerge -e system.
here's what emerge --info looks like:
Code: | deena / # emerge --info
!!! Relying on the shell to locate gcc, this may break
!!! DISTCC, installing gcc-config and setting your current gcc
!!! profile will fix this
Portage 2.0.51.22-r2 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 AMD Athlon(tm) XP 2000+
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
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -mtune=athlon-xp -pipe -O3 -fweb -frename-registers -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -mtune=pentium3 -pipe -O3 -fweb -frename-registers -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -ftracer -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.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.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts crypt cups eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl ogg oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl tcpd truetype truetype-fonts type1-fonts vorbis xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
|
look what happens when i recompile gcc-config and then try to use it:
Code: | deena / # emerge gcc-config
Calculating dependencies ...done!
>>> emerge (1 of 1) sys-devel/gcc-config-1.4.0 to /
>>> Unpacking source...
>>> Source unpacked.
>>> Test phase [not enabled]: sys-devel/gcc-config-1.4.0
>>> Install gcc-config-1.4.0 into /var/tmp/portage/gcc-config-1.4.0/image/ category sys-devel
man:
prepallstrip:
strip: i686-pc-linux-gnu-strip --strip-unneeded
strip: i686-pc-linux-gnu-strip --strip-unneeded
usr/lib/misc/gcc-config-wrapper
>>> Completed installing gcc-config-1.4.0 into /var/tmp/portage/gcc-config-1.4.0/image/
>>> Merging sys-devel/gcc-config-1.4.0 to /
--- /usr/
--- /usr/bin/
>>> /usr/bin/gcc-config
--- /usr/lib/
--- /usr/lib/misc/
>>> /usr/lib/misc/gcc-config-wrapper
>>> Safely unmerging already-installed instance...
--- !mtime obj /usr/lib/misc/gcc-config-wrapper
--- !mtime obj /usr/bin/gcc-config
--- !empty dir /usr/lib/misc
--- !empty dir /usr/lib
--- !empty dir /usr/bin
--- !empty dir /usr
>>> original instance of package unmerged safely.
>>> Regenerating /etc/ld.so.cache...
>>> sys-devel/gcc-config-1.4.0 merged.
>>> clean: No packages selected for removal.
>>> Auto-cleaning packages ...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
deena / # gcc-config -l
env: envvar: No such file or directory
* /usr/bin/gcc-config: Could not get portage CHOST!
* /usr/bin/gcc-config: No gcc profile is active; please select one!
[1] i686-pc-linux-gnu-3.4.4
[2] i686-pc-linux-gnu-3.4.4-hardened
[3] i686-pc-linux-gnu-3.4.4-hardenednopie
[4] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.4-hardenednossp
deena / # gcc-config 1
* Switching to i686-pc-linux-gnu-3.4.4 compiler ... [ ok ]
deena / # gcc-config -l
env: envvar: No such file or directory
* /usr/bin/gcc-config: Could not get portage CHOST!
* /usr/bin/gcc-config: No gcc profile is active; please select one!
[1] i686-pc-linux-gnu-3.4.4
[2] i686-pc-linux-gnu-3.4.4-hardened
[3] i686-pc-linux-gnu-3.4.4-hardenednopie
[4] i686-pc-linux-gnu-3.4.4-hardenednopiessp
[5] i686-pc-linux-gnu-3.4.4-hardenednossp
|
just for reference, there is an appropriate CHOST entry in make.conf: Code: | CHOST="i686-pc-linux-gnu"
|
and look at this:
Code: | deena / # portageq envvar CHOST
i686-pc-linux-gnu
deena / #
|
hmmm. problems with gcc-config?
_________________ .
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks |
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
|
Back to top |
|
|
Bob P Advocate
Joined: 20 Oct 2004 Posts: 3355 Location: Jackass! Development Labs
|
Posted: Wed Aug 31, 2005 4:48 am Post subject: vapier false statistics |
|
|
Now here is a fine example of how a Gentoo Developer should NOT fix his bugs:
I documented with great clarity the problem with gcc-config-1.4.0 in the portage tree this morning. I documented that it remains in the portage snapshot dated portage-20050827.tar.bz2. i filed a bug report that clearly identified the problem.
Vapier's solution? delete gcc-config-1.4.0 from the portage tree and mark the bug as RESOLVED INVALID, claiming that gcc-config-1.4.0 does not exist, and blame me for filing an invalid bug report.
this is fucking ridiculous.
its one thing to admit you've made a mistake and fix the bug. its something entirely different to remove the buggy file from the portage tree, claim that the bug never existed, and then blame the user for filing an invalid bug report.
Vapier, this is not the first time that you've done this. i think that its really sad that Gentoo Develpers would use methods like these to try to falsify their statistics. _________________ .
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks |
|
Back to top |
|
|
|