On Fri, Nov 04, 2011 at 01:44:19PM -0400, Danny Vukobratovich wrote:
> I have work exclusively from this book and have been doing fine up to this 
> point. I have searched the archives and not found an answer to this question. 
> When I go to build the configure, I am using this command from the book: 
> 
> CC="$LFS_TGT-gcc -B/tools/lib/" \ 
> AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \ 
> ../binutils-2.21.1/configure --prefix=/tools \ 
> --disable-nls --with-lib-path=/tools/lib 
> 
> I am getting this error: 
> 
> configure: error: cannot run C compiled programs. 
> If you mean to cross configure, use '--host'. 
> 
> Does any one have any insight into how I can fix this? I am working on a 
> 64-bit system. Thank you, 

pedantic mode: on

 No, but I have insight into how you can get a more useful error
message ;-)

pedantic mode: off

 In binutils (and other large packages such as gcc, perhaps glibc)
there are configure scripts in several subdirectories.  Each one,
when it is run, produces a file 'config.log'  I think these are
probably in the build tree (binutils-build), not the source tree.

 So, find the newest config.log and then look at it. Search for the
error message 'cannot run C compiled programs'.  Somewhere a little
above that you should be able to see a program fragment, which
configure has then attempted to compile.  There will be an error
message from gcc or ld.  When you find that error text, google for
it (much quicker than waiting for list replies!) - hopefully you may
find a similar error in the archives of lfs-support.  If not, please
post the error message here.

ĸ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

Reply via email to