I'm having a dilemma whilst emerging sandbox.
It keeps giving me the error:

Code:

error: cannot run C compiled programs.

I've used FEATURES=-sandbox emerge sandbox, but to no avail. I've read that some issues
might come from i686-* files which might be found in /usr/bin, but none exist. The following
are the two logs for the setup.

You may need to go to /usr/bin and delete all the files starting with i686. You shouldn't have them but eselect compiler screwed you over._________________My emerge --info
Have you run revdep-rebuild lately? It's in gentoolkit and it's worth a shot if things don't work well.
Celebrating 5 years of Gentoo-ing.

So the hard method worked for me.
I removed all i686-pc-linux-gnu* Files from /usr/bin and the sandbox compiled.

The main Problem was that i can't find the script fix_libtool.sh

I made a backup of these files because i fear that simple deleting them could break something.
So if anyone tells me which package contains fix_libtool.sh then i'll give it a try.

So far so good
Greetings DonMartio

for me it is here...
/sbin/fix_libtool_files.sh

Personal I didn't want to remove the i686 files just for that reason. Though this issue with sandbox is getting somewhat trying and I'd like to move on to more annoying problems I've got with my box.
--
DWW

I had the same problem. It had been fixed in this way.
--host=i686-pc-linux-gnu on AMD64 will cause this problem. i686-pc-linux-gnu couldn't work.
try to move /usr/bin/i686-pc-linux-gnu-* to other path (or delete), so ./configure can not find them, then it use x86_64-pc-linux-gnu .

I had the same problem. It had been fixed in this way.
--host=i686-pc-linux-gnu on AMD64 will cause this problem. i686-pc-linux-gnu couldn't work.
try to move /usr/bin/i686-pc-linux-gnu-* to other path (or delete), so ./configure can not find them, then it use x86_64-pc-linux-gnu .

I solved the problem by re-installing. Not the best solution, but the only one that seem to address my needs as solutions where not coming fast enough.
I appreciate your suggestion, and help.
--
DWW

I had similar problems after updating gcc to 4.1.2 on my newly installed Gentoo (x86_64). NOTHING would compile at all and the errors were different each time..
None of the mentioned solutions worked for me (emerge sandbox, fix_libtool.sh etc).

I was on my way to reinstall but first I tried to boot the 2007.0 minimal CD and chrooted into the installed system.

I re-emerged sandbox and libtool in the chrooted environment and rebooted.. and everything was fine! No more problems at all.