RE: [gentoo-user] configure: error: C compiler cannot create executables help!

2005-03-28 Thread Dave Nebinger
  Unpacking patch-2.5.9.tar.gz to /var/tmp/portage/patch-2.5.9/work
  Source unpacked.
 configure: WARNING: If you wanted to set the --build type, don't use --
 host.
 configure: error: C compiler cannot create executables
 make: *** No targets specified and no makefile found.  Stop.

If you go to the directory /var/tmp/portage/patch-2.5.9/work/patch-2.5.9
you'll find a config.log file.  Open the file and you'll see that it is the
output of what configure was doing when the failure occurred, and you can
see the exact output message from gcc that was handed to configure.  Note
that the info will not be at the end of the file but actually embedded
within it (the end of the file is a dump of variable settings configure had
at the time the failure occurred).

Typically you'll find something like an error about a missing library or
header file or something.

If you want to send me the config.log I'll help you figure it out.

Dave


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] configure: error: C compiler cannot create executables help!

2005-03-28 Thread Shaw Vrana
On Sunday 27 March 2005 10:53 pm, Alexander Puchmayr wrote:

 When emerging something, you get a log file
 in /var/tmp/portage/package/work/package/configure.log. Have a look at
 it and look for the compiler's errormessage.

Found it.   

configure:1655: i686-pc-linux-gnu-gcc  -O2 -march=pentium4 -pipe -DLINUX 
-D_XOPEN i686-pc-linux-gnu-gcc: installation problem, cannot exec `as': No 
such file or directory
cc1: Broken pipe: error closing -

Found `as' in the binutls directory, so I linked it over to put in my path.
ln -s /usr/i686-pc-linux-gnu/binutils-bin/2.15.92.0.2/ /usr/bin/binutils

[EMAIL PROTECTED] shaw 33]% which as
/usr/bin/binutils/as

Same config.log, still can't find as. What am I missing here?

Thanks,
Shaw
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] configure: error: C compiler cannot create executables help!

2005-03-28 Thread Shaw Vrana
On Monday 28 March 2005 10:50 am, Shaw Vrana wrote:
 On Sunday 27 March 2005 10:53 pm, Alexander Puchmayr wrote:
  When emerging something, you get a log file
  in /var/tmp/portage/package/work/package/configure.log. Have a look
  at it and look for the compiler's errormessage.

 Found it.

 configure:1655: i686-pc-linux-gnu-gcc  -O2 -march=pentium4 -pipe -DLINUX
 -D_XOPEN i686-pc-linux-gnu-gcc: installation problem, cannot exec `as': No
 such file or directory
 cc1: Broken pipe: error closing -

 Found `as' in the binutls directory, so I linked it over to put in my path.
 ln -s /usr/i686-pc-linux-gnu/binutils-bin/2.15.92.0.2/ /usr/bin/binutils

configure must be using the full path, because after symlinking the contents 
of the binutils-bin directly directly into /usr/bin, configure is able to 
find `as' and friends.

This has left with a not so fresh feeling..should I reemerge binutils to clean 
up?

Shaw
--
gentoo-user@gentoo.org mailing list



RE: [gentoo-user] configure: error: C compiler cannot create executables help!

2005-03-28 Thread Dave Nebinger
 configure:1655: i686-pc-linux-gnu-gcc  -O2 -march=pentium4 -pipe -DLINUX
 -D_XOPEN i686-pc-linux-gnu-gcc: installation problem, cannot exec `as': No
 such file or directory
 cc1: Broken pipe: error closing

Dude, you've got a seriously broken gentoo system :-(

Your toolchain is corrupted probably due to a misguided attempt to alter
your CHOST value after the initial install.

I'd suggest re-emerging your entire toolchain (binutils, gcc, glibc) before
going any further.  Hopefully the end result will be a working toolchain
that will get you by these problems...

Dave



--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] configure: error: C compiler cannot create executables help!

2005-03-27 Thread Alexander Puchmayr
Can you compile a simple Helloworld.cxx?

When I look at the output of gcc-config, I see you have both version 3.3.5 
and 3.4.3 installed. Are you sure these don't interact in some unexpected 
way?

When emerging something, you get a log file 
in /var/tmp/portage/package/work/package/configure.log. Have a look at 
it and look for the compiler's errormessage.

Greetings
Alex

Am Montag, 28. März 2005 02:07 schrieb Shaw Vrana:
 I've been reading up on this problem at
 http://forums.gentoo.org/viewtopic-t-27486-postdays-0-postorder-asc-start
-0.html and bugs.gentoo.org, but I've not yet been successful fixing my
 gcc woes. I believe this began after a portage update.

 perhaps useful, maybe not
 [EMAIL PROTECTED] ~ 47]% gcc-config -l
 [1] i686-pc-linux-gnu-3.3.5 *
 [2] i686-pc-linux-gnu-3.3.5-hardened
 [3] i686-pc-linux-gnu-3.3.5-hardenednopie
 [4] i686-pc-linux-gnu-3.3.5-hardenednossp
 [5] i686-pc-linux-gnu-3.4.3
 [6] i686-pc-linux-gnu-3.4.3-hardened
 [7] i686-pc-linux-gnu-3.4.3-hardenednopie
 [8] i686-pc-linux-gnu-3.4.3-hardenednossp
 [EMAIL PROTECTED] ~ 48]% grep CFLAGS /etc/make.conf
 CFLAGS=-O2 -march=pentium4 -pipe -fomit-frame-pointer
 CXXFLAGS=${CFLAGS}

 I ran fix_libtool_files.sh on 3.4.3, but I still get the error.
 Any ideas?

 Thanks,
 Shaw

 Calculating world dependencies ...done!

  emerge (1 of 9) sys-devel/patch-2.5.9 to /
  md5 src_uri ;-) patch-2.5.9.tar.gz
  Unpacking

 source...http://forums.gentoo.org/viewtopic-t-27486-postdays-0-postorder-
asc-start-0.html

  Unpacking patch-2.5.9.tar.gz to /var/tmp/portage/patch-2.5.9/work
  Source unpacked.

 configure: WARNING: If you wanted to set the --build type, don't use
 --host. configure: error: C compiler cannot create executables
 make: *** No targets specified and no makefile found.  Stop.

 !!! ERROR: sys-devel/patch-2.5.9 failed.
 !!! Function src_compile, Line 38, Exitcode 2
 !!! emake failed
 --
 gentoo-user@gentoo.org mailing list


 !DSPAM:424751ae853712398315240!

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] configure: error: C compiler cannot create executables help!

2005-03-27 Thread John Myers
On Sunday 27 March 2005 16:07, Shaw Vrana wrote:
 I ran fix_libtool_files.sh on 3.4.3, but I still get the error.
 Any ideas?

Just for fun, try fix_libtool_files.sh 3.3.4 (rather than 3.4.3) This seems to 
be the most common version giving problems. 

Also,
 perhaps useful, maybe not
 [EMAIL PROTECTED] ~ 47]% gcc-config -l
 [1] i686-pc-linux-gnu-3.3.5 *
 [2] i686-pc-linux-gnu-3.3.5-hardened
 [3] i686-pc-linux-gnu-3.3.5-hardenednopie
 [4] i686-pc-linux-gnu-3.3.5-hardenednossp
 [5] i686-pc-linux-gnu-3.4.3
 [6] i686-pc-linux-gnu-3.4.3-hardened
 [7] i686-pc-linux-gnu-3.4.3-hardenednopie
 [8] i686-pc-linux-gnu-3.4.3-hardenednossp

It seems odd to me that you have 3.4.3 emerged, but 3.3.5 is selected. Anyone 
else know what might be going on here?


pgpOV5sCGOOPB.pgp
Description: PGP signature