On Sun, Jul 10, 2011 at 11:36:10PM +0100, Andrew Benton wrote: > On Sun, 10 Jul 2011 17:53:55 -0400 > "Bill Cunningham" <[email protected]> wrote: > > > I successfully build a cross-compiler but when I go to build a new gcc > > for it the error I get with the gcc I'm using is "compiler cannot create > > executables". I am using CC="gcc -B/lfs/bin" to use the new cross compiled > > linker. What am I doing wrong? > > >From the little information you've given us there's no way of knowing > what's gone wrong, but it would seem that you've made a mistake > somewhere. If you want to ask a question that stands a chance of > getting a helpful answer, read this: > http://www.catb.org/~esr/faqs/smart-questions.html > > As far as LFS goes, if you don't know what you're doing you should > follow the book exactly. Copy and paste as many of the commands as you > can to avoid typos. Don't deviate from the book at all until you know > what you're doing. > > Andy
The OP also needs to look at the output (in config.log, if my memory is right - and in both gcc and binutils you might have several config.log files in different subdirectories). Above the 'compiler cannot create executables' error will be the code fragments that were used to run the test, followed by an error message from either gcc or the linker - 'configure' then converts that error to 'cannot create executables'. Sometimes, the error message clearly shows what is wrong (e.g. I remember when my script picked up my ppc CFLAGS on x86_64 - gcc was decidedly unhappy with one of the ppc-only values). If you can't see the problem, try replying with the lines showing what code was used, and what error was initially reported. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
