LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-07-2007, 05:18 PM   #1
Dark Jirachi
LQ Newbie
 
Registered: Jul 2007
Distribution: OpenSUSE
Posts: 16

Rep: Reputation: 0
Unhappy Error when I ./configure GRUB (Slackware Linux)


I am running Slax 5 (Which is based off of Slackware), and I am trying to compile GRUB, but when I run ./configure I get this:

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for cmp... cmp
checking for bison... bison
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for ruby... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for _LARGE_FILES value needed for large files... no
checking whether byte ordering is bigendian... no
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

So, /lib/cpp is insane? That makes no sense

How can I get this working?
 
Old 07-07-2007, 06:45 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
That error message is a general failure which means your system is not properly configured for compiling software. Unfortunately, there could be a number of reasons for that, which are only compounded by the fact that you are running a live CD rather than an installed and more thouroughly documented/used distribution.

Does SLAX even include a compiler? To see if GCC is even installed, run:

Code:
ls /var/log/packages/gcc*
You could also try looking at config.log, which should be in the directory where you ran ./configure.
 
Old 07-07-2007, 07:18 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
Not sure why you would EVER need to compile GRUB. Don't all distros now come with bootloaders?

In the repositories for my system (Mepis6.5), I find packages for GRUB, GRUB-II, and LILO.
 
Old 07-08-2007, 05:36 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Quote:
Originally Posted by pixellany
Not sure why you would EVER need to compile GRUB. Don't all distros now come with bootloaders?

In the repositories for my system (Mepis6.5), I find packages for GRUB, GRUB-II, and LILO.
The last time I used Slack, they only shipped LILO. I prefer GRUB to LILO to I always compiled GRUB from source.
 
Old 07-08-2007, 11:32 AM   #5
Dark Jirachi
LQ Newbie
 
Registered: Jul 2007
Distribution: OpenSUSE
Posts: 16

Original Poster
Rep: Reputation: 0
GCC is installed, I downloaded a "Development" Slax module from the website and installed it (even though it's a live CD you can save changes) so I have GCC and GDB and all that, I've compiled a simple program I've written before. I'll take a look at config.log, I forgot to do that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Grub error 15 after Slackware install. Brightbrute Linux - Newbie 3 07-05-2011 05:33 AM
I have just installed Slackware with defaults settings, on reboot i get GRUB Error 14 aybe Linux - Software 2 01-05-2006 04:01 AM
Configure GRUB for Windows and Linux rwalkerphl Linux - Newbie 13 11-07-2004 11:15 PM


All times are GMT -5. The time now is 07:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration