Re: [lfs-support] Problem during Make of GCC-6.3.0
On 08/08/2017 11:48, Mark Gregory wrote: > Thank you Hazel and others for the replies. The problem with me is that > I don't know enough about Linux to know what to do next. Since Knoppix > is listed as a choice for a host system in the FAQ, I assume there is a > way to build LFS using Knoppix as a host. What I don't know is how to > add the missing package(s) so they will work with Knoppix to build the > LFS packages I need. I am using Knoppix as a live disk, not as an > installed operating system, and it escapes me how to add a package. > > Any hints on how to do it? > I think you'd better install knoppix on hard disk, so that your changes to the distribution remain across reboots. Then use the tools to install packages. Something like: - sudo apt-get update sudo apt-get install build-essential - should lead you close to a working environment. Run version-check.sh and look for missing packages. Then "apt-get install" them. Pierre -- 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
Re: [lfs-support] Problem during Make of GCC-6.3.0
On 08/08/2017 01:44 AM, Hazel Russman wrote: > On Sun, 6 Aug 2017 15:23:15 -0400 > Mark Gregory <7605mgreg...@gmail.com> wrote: > >> To me, it appears the problem is it can't find a C++ preprocessor. I am >> installing GCC-6.3.0 and I thought it was supposed to provide the >> package it is looking for. It seems like a circular reasoning loop to >> me: 'I need the C++ preprocessor to build the C++ preprocessor.' I am >> not that sharp in Linux, as I have only been doing Linux for a couple >> years, and mostly with self-installing distributions (Cinnamon Mint, >> Slackware). I started try to install LFS to learn more about Linux, but >> so far, I am getting an 'F'. Any help would be appreciated. >> >> -- >> Mark Gregory >> Email 7605mgreg...@gmail.com >> -- > The rather complicated procedure for building your primary compilation tools > as described in Chapter 5 is designed to deal with precisely this circularity. > > In the first pass build of gcc, you use mainly the tools provided by your > host; only the binutils are new. This produces a statically linked skeletal > gcc configured to work independently of the host system. You then use this to > build glibc and libstdc++. Finally you rebuild binutils and gcc as programs > linked dynamically to these new libraries. > Thank you Hazel and others for the replies. The problem with me is that I don't know enough about Linux to know what to do next. Since Knoppix is listed as a choice for a host system in the FAQ, I assume there is a way to build LFS using Knoppix as a host. What I don't know is how to add the missing package(s) so they will work with Knoppix to build the LFS packages I need. I am using Knoppix as a live disk, not as an installed operating system, and it escapes me how to add a package. Any hints on how to do it? -- *Mark Gregory /7605mgreg...@gmail.com/ -- 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
Re: [lfs-support] Problem during Make of GCC-6.3.0
On Sun, 6 Aug 2017 15:23:15 -0400 Mark Gregory <7605mgreg...@gmail.com> wrote: > To me, it appears the problem is it can't find a C++ preprocessor. I am > installing GCC-6.3.0 and I thought it was supposed to provide the > package it is looking for. It seems like a circular reasoning loop to > me: 'I need the C++ preprocessor to build the C++ preprocessor.' I am > not that sharp in Linux, as I have only been doing Linux for a couple > years, and mostly with self-installing distributions (Cinnamon Mint, > Slackware). I started try to install LFS to learn more about Linux, but > so far, I am getting an 'F'. Any help would be appreciated. > > -- > Mark Gregory > Email 7605mgreg...@gmail.com > -- The rather complicated procedure for building your primary compilation tools as described in Chapter 5 is designed to deal with precisely this circularity. In the first pass build of gcc, you use mainly the tools provided by your host; only the binutils are new. This produces a statically linked skeletal gcc configured to work independently of the host system. You then use this to build glibc and libstdc++. Finally you rebuild binutils and gcc as programs linked dynamically to these new libraries. -- H Russman -- 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
Re: [lfs-support] Problem during Make of GCC-6.3.0
On 05.08.2017 21:25, Mark Gregory wrote: > I am trying to build LFS on an older Dell Desktop and keep running into the > same problem during the Make stage of GCC-6.3.0. Note that while the CPU on > the build computer is pretty fast (2GHz or more), it only has 256 MB RAM, if > that might be causing the problem. I do have a 2 GB swap file set up on that > computer. I am installing LFS from a Knoppix 7.2 LiveCD, so the original OS > on the Computer is gone. > > Below is the Make output just before it quits. > Tail of Make output before failure: > > checking how to run the C++ preprocessor. . . /lib/cpp > configure: error: in '/mnt/lfs/sources/gcc-6.3.0/build/gcc': > configure: error: C++ preprocessor "/lib/cpp" fails sanity check > See 'config.log' for more details. > make[1]: *** [configure-gcc] Error 1 > make[1]: Leaving directory '/mnt/lfs/sources/gcc-6.3.0/build' > make: *** [all] Error 2 > > (end of output -mg) > > I have attached a copy of the config.log also, in case that will give you > something helpful. > > > What do I need to do to install gcc and continue with the LFS install? > > Thank you for your help! > > -- > Mark Gregory > Email 7605mgreg...@gmail.com > > > > config.log > > > configure:4947: checking for C++ compiler version > configure:4956: g++ --version >&5 > ../configure: line 4958: g++: command not found If you looked at config.log closely, you could've noticed this. Long story short, you are missing some host system requirements (at least g++) -- 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
Re: [lfs-support] Problem during Make of GCC-6.3.0
On 08/05/2017 05:24 PM, Ken Moffat wrote: On Sat, Aug 05, 2017 at 03:25:33PM -0400, Mark Gregory wrote: I am trying to build LFS on an older Dell Desktop and keep running into the same problem during the Make stage of GCC-6.3.0. Note that while the CPU on the build computer is pretty fast (2GHz or more), it only has 256 MB RAM, if that might be causing the problem. I do have a 2 GB swap file set up on that computer. I am installing LFS from a Knoppix 7.2 LiveCD, so the original OS on the Computer is gone. I don't know how to break this to you, but 2GHz is not considered fast. Also, building with only 256 MB of RAM sounds very painful (I haven't built LFS on less than 1GB RAM for several years), so I imagine that the build process will take a long time. Below is the Make output just before it quits. Tail of Make output before failure: checking how to run the C++ preprocessor. . . /lib/cpp configure: error: in '/mnt/lfs/sources/gcc-6.3.0/build/gcc': configure: error: C++ preprocessor "/lib/cpp" fails sanity check See 'config.log' for more details. Unfortunately, in gcc and binutils (and probably a few other packages) there are config.log files in several subdirectories. What you need is the one that has the text 'fails sanity check' in it. Should be the newest config.log file, and you can search it (or all of them, if the timestamps are the same) using 'view' or 'less' e.g. /\/lib\/cpp ('/' searches in less and vim, I expect you probably know that). Unfortunately, I was not able to read any config.log files other than the one attached to the first post. When you find the error message, the details are in the lines above that, probably no more than 40 or 50 lines. You should see configure putting out the message that it is checking how to run the C++ processor, creating something to do that, and then reporting a detailed error, followed by the message that it fails sanity check. It is the detailed error message(s) from trying to run whatever configure generated which will provide the details. ĸen To me, it appears the problem is it can't find a C++ preprocessor. I am installing GCC-6.3.0 and I thought it was supposed to provide the package it is looking for. It seems like a circular reasoning loop to me: 'I need the C++ preprocessor to build the C++ preprocessor.' I am not that sharp in Linux, as I have only been doing Linux for a couple years, and mostly with self-installing distributions (Cinnamon Mint, Slackware). I started try to install LFS to learn more about Linux, but so far, I am getting an 'F'. Any help would be appreciated. -- Mark Gregory Email 7605mgreg...@gmail.com -- 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