"C compiler cannot create executables" a repeated question!

Bijan Hoomand hoomand at gmail.com
Thu Nov 1 07:37:04 PDT 2007


Hello all

ok ok ok, I know this question was asked many times, I did search through
your mailing list! But all the answers I got didn't work for me, I added
"CC='gcc -s'" to my ~/.bashrc, I tried finding glibc-devel, which I failed,
no package with such name in my Ubuntu 6.10 and I couldn't find any other
solution in my Linux From Scratch Book version 6.3; I also looked at the
config.log file, this is sort of what I get after many tries:

#################################
lfs at bijan-desktop>  CC="gcc -B/usr/bin/" ../binutils-2.17/configure
--prefix=/tools --disable-nls --disable-werror
loading cache ./config.cache
checking host system type... i686-pc-linux-gnulibc1
checking target system type... i686-pc-linux-gnulibc1
checking build system type... i686-pc-linux-gnulibc1
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... gcc -B/usr/bin/
checking whether the C compiler (gcc -B/usr/bin/  ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
lfs at bijan-desktop> cat ~/.bashrc
set +h
umask 022
LFS=/media/lfs
LC_ALL=POSIX
CC='gcc -s'
PATH=/tools/bin:/bin:/usr/bin
export LFS LC_ALL PATH CC

lfs at bijan-desktop> cat config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:611: checking host system type
configure:632: checking target system type
configure:650: checking build system type
configure:705: checking for a BSD compatible install
configure:758: checking whether ln works
configure:782: checking whether ln -s works
configure:1867: checking for gcc
configure:1980: checking whether the C compiler (gcc -B/usr/bin/  ) works
configure:1996: gcc -B/usr/bin/ -o conftest    conftest.c  1>&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:

#line 1991 "configure"
#include "confdefs.h"

main(){return(0);}
#############################################

As you can see with the highlighted text, it say there's no /usr/bin/ld
directory, what's that directory and should I just create it?! I guess not!
Sorry that I seems so lost to you pros, it's because I'm lost! What should I
do? I really wana do this lfs thing, but I'm getting errors from the 1st
package! Any chance for me?!

cheers,
bijan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20071101/e29cd430/attachment.html>


More information about the lfs-support mailing list