Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fixed. could not run/locate i586-pc-linux-gnu-g++
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Yak
Tux's lil' helper
Tux's lil' helper


Joined: 01 Sep 2002
Posts: 107

PostPosted: Tue May 20, 2003 5:48 pm    Post subject: fixed. could not run/locate i586-pc-linux-gnu-g++ Reply with quote

I was emergeing gnome but it got stuck on avifile 0.7.32.20030219. Here's the relevant part of config log (i think)
Code:
configure:1886: checking for working makeinfo
configure:1893: result: found
configure:1931: checking for i586-pc-linux-gnu-g++
configure:1947: found /usr/lib/ccache/bin/i586-pc-linux-gnu-g++
configure:1957: result: i586-pc-linux-gnu-g++
configure:2015: checking for C++ compiler version
configure:2018: i586-pc-linux-gnu-g++ --version </dev/null >&5
Could not run/locate "i586-pc-linux-gnu-g++"
configure:2021: $? = 1
configure:2023: i586-pc-linux-gnu-g++ -v </dev/null >&5
Could not run/locate "i586-pc-linux-gnu-g++"
configure:2026: $? = 1
configure:2028: i586-pc-linux-gnu-g++ -V </dev/null >&5
Could not run/locate "i586-pc-linux-gnu-g++"
configure:2031: $? = 1
configure:2055: checking for C++ compiler default output
configure:2058: i586-pc-linux-gnu-g++    conftest.cc  >&5
Could not run/locate "i586-pc-linux-gnu-g++"
configure:2061: $? = 1
configure: failed program was:
| #line 2034 "configure"
| /* confdefs.h.  */


Okay, so I looked in /usr/lib/ccache/bin, and all those files in there are symlinks to /usr/bin/ccache, but:
Code:
yak@artemis yak $ /usr/lib/ccache/bin/i586-pc-linux-gnu-g++ --version
Could not run/locate "i586-pc-linux-gnu-g++"
yak@artemis yak $ /usr/lib/ccache/bin/g++ --version
g++ (GCC) 3.2.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 

g++ works but i586-pc-linux-gnu-g++ doesn't! HUH?
I don't understand it.. maybe someone would be kind enough to explain what is going on?

edit: Well I guess this had nothing to do with ccache. After trying several things, I finally managed to fix this by doing
Code:
gcc-config i586-pc-linux-gnu-3.2.2

It's just strange because I have a very similar gentoo system and I never had to mess with gcc-config, and I checked all the symlinks in /usr/lib/ccache/bin on that other system and they worked fine. I still don't know what files gcc-config messed with to make it work, maybe i'll try rereading gcc-config a few times and it will make sense later.
Back to top
View user's profile Send private message
brycec
n00b
n00b


Joined: 30 Sep 2002
Posts: 10
Location: Arizona

PostPosted: Wed May 21, 2003 11:28 pm    Post subject: Same here. Reply with quote

I have the same problem. It compiles fine on one box but not the other. I have tried the gcc-config thing using the only profile available and it still didn't work. The difference is that when i run the bin itself, it works.

/usr/bin/i686-pc-linux-gnu-gcc --version
i686-pc-linux-gnu-gcc (GCC) 3.2.2
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Below is the last part of the output.

/bin/sh ../../libtool --mode=compile i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -DHAVE_AV_CONFIG_H -I./../libavcodec -I./.. -Wall -Wno-unused -I../../include -g -O2 -mcpu=i686 -march=i686 -ffast-math -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -pipe -c aviobuf.c
Could not run/locate i686-pc-linux-gnu-gcc!
make[2]: *** [allformats.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../include -DHAVE_AV_CONFIG_H -I./../libavcodec -I./.. -Wall -Wno-unused -I../../include -g -O2 -mcpu=i686 -march=i686 -ffast-math -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D_GNU_SOURCE -pipe -c aviobuf.c -fPIC -DPIC -o aviobuf.lo
Could not run/locate i686-pc-linux-gnu-gcc!
make[2]: *** [avidec.lo] Error 1
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/avifile-0.7.32.20030219/work/avifile0.7-0.7.32/ffmpeg'
make: *** [all-recursive] Error 1

!!! ERROR: media-video/avifile-0.7.32.20030219 failed.
!!! Function src_compile, Line 138, Exitcode 2
!!! (no error message)

BTW, I get the same error when I try to emerge the latest build too.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum