Michiel
okay... so I took a quick look at my notes and discovered that my recollection was inaccurate... that solution was for a zrelro linker error in the glibc make process... please accept my apology. Now that's out of the way: I DID run into a problem that appears to look like yours too. I determined that I had screwed up the sed command when building GCC Pass 1. I went back to that stage with a clean slate with a fresh untar of the gcc source, followed the process more precisely, and got the result I was looking for. To see if you indeed have the same problem I did you can test this: during the dummy.c test with the line: readelf -l a.out | grep ': /tools' if you get anything other than (considering variation for a 64bit build): [Requesting program interpreter: /tools/lib/ld-linux.so.2] I got something like this: [Requesting program interpreter: /ld-linux.so.2]... so obviously, mine was buggered. I hope THIS response is useful to you. Nicholas McCurdy [email protected] -----Original Message----- From: Michiel van Oosterhout <[email protected]> To: lfs-support <[email protected]> Sent: Wed, Feb 20, 2013 8:31 am Subject: [lfs-support] [LFS 7.2] Error when configuring binutils-2.2.2 on second pass Hello, I am going through LFS 7.2 on Ubuntu 12.04 (in a Parallels desktop virtual machine). All the host system requirements are satisfied. I got through the chapters so far without any errors, including ch. 5.7 where I compiled a dummy C program. But now I am at chapter 5.8 and I can't configure binutils using the previously created cross-compiler. The error is: checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: in `/mnt/lfs/sources/binutils-2.22-build': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. In config.log I have noticed the following error: configure:4038: checking for C compiler default output file name configure:4060: x86_64-lfs-linux-gnu-gcc conftest.c >&5 configure:4064: $? = 0 configure:4101: result: a.out configure:4117: checking whether the C compiler works configure:4126: ./a.out ../binutils-2.22/configure: line 4128: ./a.out: No such file or directory configure:4130: $? = 127 configure:4137: error: in `/mnt/lfs/sources/binutils-2.22-build': configure:4141: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. The strange thing to me is that in the previous test it produces the file ./a.out and then in the next test it cannot find the file ./a.out. How can I troubleshoot this issue? Thank you! -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
