LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Error when I ./configure GRUB (Slackware Linux) (http://www.linuxquestions.org/questions/linux-software-2/error-when-i-configure-grub-slackware-linux-567467/)

Dark Jirachi 07-07-2007 05:18 PM

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?

MS3FGX 07-07-2007 06:45 PM

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.

pixellany 07-07-2007 07:18 PM

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.

reddazz 07-08-2007 05:36 AM

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.

Dark Jirachi 07-08-2007 11:32 AM

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.


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