LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   GCC woes on Slack 11.0 (https://www.linuxquestions.org/questions/slackware-14/gcc-woes-on-slack-11-0-a-499953/)

Saith 11-09-2006 12:26 AM

GCC woes on Slack 11.0
 
I installed Slackware 11.0 with the base packages + development toolkit, but now I'm having problems compiling anything. I figured I should just recompile gcc, but when I try I get the following:

[snip]
checking whether the C compiler (gcc ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables
[/snip]

:confused:

I only burned the first install disc. Is gcc et. al. on one of the other discs or something? All I want to do is have the inherent ability to compile from source, yet it seems there's no way to do that without either using the RPM utilities or doing a full install. Anyway, I hope someone can help.

PDock 11-09-2006 05:52 AM

From the l directory you need the glibc package.

Alien Bob 11-09-2006 06:33 AM

Do you have a global CFLAGS variable set? This kind of error often is related to (part of) the contents of CFLAGS which the compiler chokes on. What does "echo $CFLAGS" tell? And "echo $CXXFLAGS"?

Eric

Saith 11-09-2006 12:03 PM

Yeah. I can't install libc because it gives me the following error during configuration:

[snip]
checking how to run the C preprocessor... /lib/cpp
configure: error: C preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details
[/snip]

When I echo $CFLAGS and $CXXFLAGS it returns blank.

rkelsen 11-09-2006 03:42 PM

Quote:

Originally Posted by Saith
Yeah. I can't install libc because it gives me the following error during configuration:

What's wrong with Slackware's glibc package?

Eternal_Newbie 11-09-2006 07:53 PM

remove and reinstall _all_ the slackware gcc and glibc packages including glibc-zoneinfo. In fact it might be a good idea to mount the cds, change to the slackware/a directory and do upgradepkg --install-new *.tgz and the same in the slackware/d and slackware/l directories just in case you missed any packages on your install

rworkman 11-09-2006 07:58 PM

Quote:

Originally Posted by Eternal_Newbie
remove and reinstall _all_ the slackware gcc and glibc packages including glibc-zoneinfo. In fact it might be a good idea to mount the cds, change to the slackware/a directory and do upgradepkg --install-new *.tgz and the same in the slackware/d and slackware/l directories just in case you missed any packages on your install

Um, you will find that *removing* glibc packages is a learning experience you will regret having...
Instead, do this: upgradepkg --reinstall --install-new {a,d,l}/*.tgz

RW

Eternal_Newbie 11-10-2006 08:39 AM

Oops, sorry about that - typing before I thunk :(

masonm 11-10-2006 11:55 AM

It sounds like something was borked during the install as I haven't had this problem at all. I'd try a reinstall and if the problem remains you may have to consider the possibility that you have either a bad iso download or bad burn.

Saith 11-12-2006 04:01 PM

Problem fixed -- I reinstalled from the DVD and this time did A, AP, D, AND L. Before I had installed only from the first CD and left out the L package. Now I can get into make menuconfig. Thanks for the help.

ygloo 11-25-2006 04:07 PM

hello, i had the same eror messages and did what robw810 said:
upgradepkg --reinstall --install-new {a,d,l}/*.tgz

and now gcc is working...
tux happy!


All times are GMT -5. The time now is 04:28 AM.