LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 05-29-2016, 08:17 AM   #1
tmose1106
LQ Newbie
 
Registered: Apr 2016
Distribution: Arch Linux
Posts: 4

Rep: Reputation: Disabled
Thumbs down 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.
 
Old 05-30-2016, 03:58 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,358

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
Someone else ran into this recently. Does LFS support GCC-6.1 yet? Or are they still on 5.3?
 
Old 05-30-2016, 06:01 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,608
Blog Entries: 19

Rep: Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458Reputation: 4458
Quote:
Originally Posted by business_kid View Post
Someone else ran into this recently. Does LFS support GCC-6.1 yet? Or are they still on 5.3?
It's in the development version but not in stable.
 
Old 05-30-2016, 07:38 AM   #4
tmose1106
LQ Newbie
 
Registered: Apr 2016
Distribution: Arch Linux
Posts: 4

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-30-2016, 08:38 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,358

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
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.
 
Old 05-30-2016, 09:00 AM   #6
tmose1106
LQ Newbie
 
Registered: Apr 2016
Distribution: Arch Linux
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
Old 05-30-2016, 09:42 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,358

Rep: Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332Reputation: 2332
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?
 
  


Reply

Tags
gcc, lfs error, raspberrry pi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Gcc error building tools on 7.4.rc1 chapter 5.10. GCC-4.8.1 - Pass 2 Keith Hedger Linux From Scratch 3 08-29-2013 11:30 AM
Issues compiling GCC v4.7.1 while building LFS for ARM (Raspberry Pi) jvilla1983 Linux From Scratch 7 12-25-2012 02:03 PM
gcc-3.4.4 make check unexpected failures jonman364 Linux - Software 0 07-28-2005 03:11 AM
Countless Errors and Failures building LFS 6.0 TGWDNGHN Linux From Scratch 2 06-29-2005 09:16 AM
compiling gcc-3.1.1 : libjava testsuite failures cdlen LinuxQuestions.org Member Success Stories 2 10-10-2003 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration