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. |
From the l directory you need the glibc package.
|
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 |
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. |
Quote:
|
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
|
Quote:
Instead, do this: upgradepkg --reinstall --install-new {a,d,l}/*.tgz RW |
Oops, sorry about that - typing before I thunk :(
|
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.
|
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.
|
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. |