LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 09-02-2014, 10:13 PM   #1
CalebW
LQ Newbie
 
Registered: Aug 2012
Posts: 18

Rep: Reputation: Disabled
/lib/cpp: No such file or directory?


I'm using CLFS Git and am trying to build GCC 4.8.3 for the final system. I recieved a
Code:
configure: error: C preprocessor "/lib/cpp" fails sanity check
while compiling so I checked out the logs and discoved I had no /lib/cpp file. What would cause this?

Last edited by CalebW; 09-02-2014 at 10:29 PM.
 
Old 09-03-2014, 08:13 AM   #2
CalebW
LQ Newbie
 
Registered: Aug 2012
Posts: 18

Original Poster
Rep: Reputation: Disabled
Apparently it's just a symlink to gcc. Excecuting
Code:
ln -sv "$(which gcc)" /lib/cpp
will fix it.
 
Old 09-03-2014, 08:20 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,041

Rep: Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348Reputation: 7348
Code:
pan@host:/lib$ ls -l /lib/cpp
lrwxrwxrwx 1 root root 21 Jun 12 14:43 /lib/cpp -> /etc/alternatives/cpp
pan@host:/lib$ ls -l /etc/alternatives/cpp
lrwxrwxrwx 1 root root 12 Jun 12 14:43 /etc/alternatives/cpp -> /usr/bin/cpp
pan@host:/lib$ ls -l /usr/bin/cpp
lrwxrwxrwx 1 root root 7 Mar 13  2012 /usr/bin/cpp -> cpp-4.6
pan@host:/lib$ ls -l /usr/bin/cpp-4.6
-rwxr-xr-x 1 root root 357312 Apr 16  2012 /usr/bin/cpp-4.6
pan@host:/lib$
I would rather try to install cpp (or gcc?)
 
  


Reply



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
C++ preprocessor "/lib/cpp" fails sanity check C++ preprocessor "/lib/cpp" fails san mutetikasikali Linux - Software 3 01-25-2014 06:57 AM
/lib/cpp not found kiyoura Slackware 6 12-15-2008 11:44 PM
/lib/module/2.6.26.6-49.fc8/build: No such file or directory white_mist Linux - Newbie 10 12-14-2008 07:52 PM
/lib/cpp windslip Linux - Software 3 01-18-2006 05:44 PM
grep: /usr/lib/libglib-2.0.la: No such file or directory FirstTimeUser Linux - Software 9 10-15-2003 09:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 06:56 PM.

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