On Sun, Jun 18, 2017 at 06:05:45PM -0400, Isaac D. Cohen wrote: > Hi, > > I am now up to section 5.7.1 where glibc2-.25 is installed. > I ran the configure command and got this error: > > configure: error: > *** The GNU C library is currently unavailable for this platform. > *** If you are interested in seeing glibc on this platform visit > *** the "How to submit a new port" in the wiki: > *** https://sourceware.org/glibc/wiki/#Development > *** and join the community! > > I wrote i686-elf for the LFS_TGT. Does this mean > that glibc does work on that platform? I tried > x86_64 (even though throughout the build I have > been using i686-elf) just to see if it will work. > But it sill didn't. I found here > https://stackoverflow.com/questions/39828966/glibc-cross-compile-configure-error > that glibc cannot be built for bear metal. But surely > on LFS it must be. So what can I do about that error? > > Thank you very much, > Isaac D. Cohen >
Please go back to section 4.4, "Setting Up the Environment" : LFS_TGT=$(uname -m)-lfs-linux-gnu I don't run i686 any more, but I guess that should give you soemthing like i686-lfs-linux-gnu. The conventional target is something like i686-pc-linux-gnu, we change the pc part to lfs to be able to persuade the toolchain that we are cross-compiling. But i686-elf is not a known target. You will need to start again. ĸen -- I live in a city. I know sparrows from starlings. After that everything is a duck as far as I'm concerned. -- Monstrous Regiment -- 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
