On Thu, Sep 18, 2014 at 10:00:08PM +0200, hans kaper wrote: > Whether I try to build LFS 7.5 or a recent SVN, whether I use LFS 7.4 or Mint > 13 as host, whether I use a laptop or a desktop, I always get the same error > in building binutils-pass2: > > checking for C compiler default output file name... a.out > checking whether the C compiler works... configure: error: in > `/mnt/lfs/sources/binutils-build': > configure: error: cannot run C compiled programs. > If you meant to cross compile, use `--host'. > See `config.log' for more details. > > In that config.log I see no relevant details. > > Building the other tools-packages gave no errors, but one thing that struck > me though was the result of the test after building glibc: > [Requesting program interpreter: /tools>-linux.so.2] > > I copy-pasted the commands and inspected them very carefully but did not find > any clues. > > I do something systematically wrong, but what? > > > > Hans.
Binutils, like a few other packages, will run configure scripts in multiple directories, and each will produce its own config.log in that directory - if it gets that far. But your comment on the requesting program interpreter horrifies me. /tools>-linux.so.2 is a very weird filename, '>' should not appear in it (ignoring for the moment that fact that /lib/ld has beeen replaced by that character, and therefore your result is manifestly NOT in the expected form. Trying to continue anyway after an error like that will end in tears. Much better to ask for help before wasting cycles building libstdc++. I think your attempts to run the seds for linux64.h, linux.h, sysv4.h in gcc pass 1 have gone seriously wrong. How are you entering them ? Are you pasting from a PDF ? If so, please use an html version of the book. Also, please note that we copy each of those files to a .orig version, so when you next try gcc (using fresh source and build directories, please) you can run just find gcc/config -name linux64.h -o -name linux.h -o -name sysv4.h before you run the command, and make a note of the files you are going to alter. Some of them will may be for other architectures or operating systems, so concentrate on the x86 (i386?) linux files. After making a list of the files, run the command. Then take one of the files and run 'diff filename.orig filename | less' : you should be able to see what changed, and you should see things like '/tools/lib/ld-linux.so.2'. ĸen -- Nanny Ogg usually went to bed early. After all, she was an old lady. Sometimes she went to bed as early as 6 a.m. -- 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
