LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-09-2006, 12:26 AM   #1
Saith
LQ Newbie
 
Registered: Jun 2005
Location: Woodbridge, VA, USA
Distribution: Slackware 11.0 on one box, Xandros Deluxe 3.0/Windows XP dual boot on the other
Posts: 21

Rep: Reputation: 15
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]



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.
 
Old 11-09-2006, 05:52 AM   #2
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
From the l directory you need the glibc package.
 
Old 11-09-2006, 06:33 AM   #3
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
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
 
Old 11-09-2006, 12:03 PM   #4
Saith
LQ Newbie
 
Registered: Jun 2005
Location: Woodbridge, VA, USA
Distribution: Slackware 11.0 on one box, Xandros Deluxe 3.0/Windows XP dual boot on the other
Posts: 21

Original Poster
Rep: Reputation: 15
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.
 
Old 11-09-2006, 03:42 PM   #5
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,448
Blog Entries: 7

Rep: Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553Reputation: 2553
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?
 
Old 11-09-2006, 07:53 PM   #6
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware
Posts: 573

Rep: Reputation: 59
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
 
Old 11-09-2006, 07:58 PM   #7
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
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
 
Old 11-10-2006, 08:39 AM   #8
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware
Posts: 573

Rep: Reputation: 59
Oops, sorry about that - typing before I thunk
 
Old 11-10-2006, 11:55 AM   #9
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
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.
 
Old 11-12-2006, 04:01 PM   #10
Saith
LQ Newbie
 
Registered: Jun 2005
Location: Woodbridge, VA, USA
Distribution: Slackware 11.0 on one box, Xandros Deluxe 3.0/Windows XP dual boot on the other
Posts: 21

Original Poster
Rep: Reputation: 15
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.
 
Old 11-25-2006, 04:07 PM   #11
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
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!
 
  


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
HOW-TO: find out kernel gcc versions.... woes :S kevingpo Linux - General 8 07-19-2011 08:14 AM
SuSE 9.1 personal gcc install woes BlenderGuy Linux - Newbie 7 08-06-2004 01:29 AM
Slack 9.2 USB 2.0 Woes olias Slackware 4 10-31-2003 10:26 PM
Slack 8.0 Eth0 woes clar77 Linux - Networking 2 05-27-2002 06:32 AM
Network Card Woes :( 3c905b and Slack 8 Ontrose Linux - General 2 08-01-2001 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:46 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