Edgar Alwers wrote:
Am 11.06.2016 um 18:46 schrieb Bruce Dubbs:
Make sure you have the virtual file systems mounted.
I think the virtual file system is mounted. I can access every virtual
file e.g. cdrom and floppy in /media
> Inside chroot can you do:
< echo 'int main(){}' > dummy.c
> gcc dummy.c
Yes, the result is "bash: /tools/bin/gcc: no such file or directory"
But gcc is in /tools/bin/
It looks like a path-problem.
Not entirely. The "no such file or directory" message is given if the
system cannot find all the libraries that it needs. You should be able to
run:
$ /tools/bin/gcc --version
gcc (GCC) 6.1.0
$ ldd /tools/bin/gcc
linux-vdso.so.1 (0x00007ffd517ea000)
libm.so.6 => /tools/lib/libm.so.6 (0x00007f210b0ba000)
libc.so.6 => /tools/lib/libc.so.6 (0x00007f210ad19000)
/tools/lib64/ld-linux-x86-64.so.2 (0x00007f210b3be000)
From inside or outside chroot.
Check if those libraries exist.
-- Bruce
--
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