Failures in libcc1 while building GCC 6.1.0 on Raspberry Pi
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Failures in libcc1 while building GCC 6.1.0 on Raspberry Pi
Hello, so here is the rundown:
I am attempting to build LFS systemd on my Raspberry Pi 3. I wrote my own build scripts which you can look at HERE. Unfortunately, I am running into an issue with build GCC 6.1.0, which is similar to Chapter 6.17 in the systemd book.
So, I have included two config.logs related to the error message I saw when the build failed. I put them in a GitHub Gist HERE. I was just wondering if anyone could decipher these two logs and see what the issue may be? Or just give me some helpful advice. Thanks.
While it is true that GCC 6.1 is in the developement version of Linux from Scratch, I have found it to build just fine on 64-Bit PCs (using the same build scripts as well). After all, ARM processors are not even supported by LFS, so I believe compatability in LFS does not have (much) to do with the issue.
On the other hand, I have made up another Gist of the actual build error, which seems to occur on line 4143, and reads, "configure: error: C preprocessor "/lib/cpp" fails sanity check". Once again, does anyone have any experience with this issue? Are there any more logs I should make a Gist of? I would really appreciate the help.
The stable book is still on gcc-5.3. Must be a reason ...
Code:
checking how to run the C preprocessor... /lib/cpp
configure: error: in `/gcc-6.1.0/build/armv7l-unknown-linux-gnueabihf/libgcc':
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
What does config.log indicate? And how does lib/cpp behave? does it exist? They'll have pulled some basic test and it failed. Dig a bit - you have to get used to that with LFS.
I beleive the stable book only gets released every few months, so that is that.
But, the config.log does inform me that /lib/cpp does not exist about four times, and then fails the sanity check. Here is another gist of the actual log in that directory. I'm just confused on how this occurs. My chapter 5 toolchain builds without error, as do all the packages in Chapter 6 up until GCC. So what does this mean? Is my toolchain actually flawed? Is the host system causing issues?
The stable book gets released when it's ready and not before. Everything has to build cleanly.
In chapter 5, you use the base system, with whatever gcc, glibc, & kernel headers are there. Sometimes that's quite old, (e.g. stable debian installs) or non standard, (think Red Hat & friends). In chapter 6 you should be using the static system in ch. 5 to build the dynamic system in ch. 6.
A poor base system can compile a poorly functional static system in weird and wonderful ways. Have you tried approaching from CLFS instead of LFS?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.