Hi, I am working on LFS-8.0 on Debian 8(x86_64) system. I have followed
instructions in book until Pass 2 of Binutils successfully except for one
situation.

In Glibc-2.25 section, there is a caution part which suggests a sanity
check. I executed three lines of commands and there were no results on the
screen but I changed last line as follows;

readelf -l a.out

I could see

[Requesting program interpreter: tools/lib64/ld-linux-x86-64.so.2]

in the output.

Some portion of the config.log file:

...
configure:4480: result: a.out
configure:4496: checking whether the C compiler works
configure:4505: ./a.out
../configure: line 4507: ./a.out: No such file or directory
configure:4509: $? = 127
configure:4516: error: in `/mnt/lfs/sources/binutils-2.27/build':
configure:4520: error: cannot run C compiled programs.
If you meant to cross compile, use `--host`.
See `config.log' for more details.
...

After that, I created dummy.c file again, compiled it with $LFS_TGT-gcc and
I tried to execute,

./a.out

and output was,

bash: ./a.out: No such file or directory

even there is a.out file. Then I tried to compile dummy.c file with the gcc
that came installed with Debian, and tried to execute ./a.out and it worked
normally without any problem.

Are there any problems with PATH, I checked the previous parts of the book
with the changes I made on system, there seems no problem.

Why I cannot execute binaries that are result of $LFS_TGT-gcc and also why
I didn't get any result with the

readelf -l a.out | grep ':/tools'

even

readelf -l a.out

output has the information?
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to