"Cannot run C compiled programs", falling at first hurdle.

Michael Tsang miklcct at gmail.com
Sun Oct 25 20:08:31 PDT 2009


On Monday 26 October 2009 04:02:42 Christian Gardner wrote:
> Hi all, I have an LFS 6.3 host system and I'm trying to build an LFS 6.4
>  system on a separate partition. I can't even get the configure script in
>  the first pass of binutils to go alright! I get the above error message,
>  followed by something about what to do if I'm cross-compiling. Which I'm
>  not, right?
> 
> On further investigation, I do
> 
> echo 'main(){}' > dummy.c
> cc dummy.c
> ./a.out
> 
> and it says a.out command not found! Even though an ls reveals it's there,
>  all permissions okay! What's going on?
> 
> Send instant messages to your online friends http://uk.messenger.yahoo.com
> 

Try
ldd a.out
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20091026/1de31633/attachment.sig>


More information about the lfs-support mailing list