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 05-06-2008, 06:56 PM   #1
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Rep: Reputation: 15
Unhappy C compiler gcc


hello every one
i'v just installed slackware12 with the development even though i didnt select any packages i did a FULL installation

and i get this when ever i want to install somthing :

configure: error: installation or configuration problem: C compiler cannot create executables.

if i got a binary file for gcc4.X and configured it would that solve the problem ???

thanks in advance
 
Old 05-06-2008, 07:52 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
When you get that error look at the config.log that is created by the configure script to see what the actual problem is.
 
Old 05-06-2008, 07:57 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
I think you're going to have to provide more information than that. First of all, don't attempt to find a gcc binary to get it working. If you want to reinstall gcc your best bet would be to download all of the gcc packages from a mirror (or use your install CD/DVD) and try `upgradepkg --reinstall` to reinstall the apps in case something went wrong. However, I don't know that that'll help, since it's hard to determine your error. What are you trying to compile? What commands are you typing? You said you're using Slackware 12 -- is it 12.0 or 12.1 (I'm assuming 12.0)? Can you post more of the output generated (ie a little before and after the error)?

gcc should work out-of-the-box with a full, fresh Slackware 12.0 (or 12.1) install. If there's a problem I would suspect an error in your installation. Did you verify the md5sum of the CDs/DVD when you burned them? (A lot of tricky installation problems can arise when a CD is corrupt.) It is also possible that the specific app you're trying to compile is having issues with gcc4.x, in which case you'll have to do some tinkering -- but you'll need to provide way more info for a good diagnosis.
 
Old 05-06-2008, 08:37 PM   #4
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
root@home:/usr/local/gcc-4.1.2# cat /usr/local/gcc-4.1.2/config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

configure:600: checking host system type
configure:621: checking target system type
configure:639: checking build system type
configure:694: checking for a BSD compatible install
configure:747: checking whether ln works
configure:771: checking whether ln -s works
configure:1825: checking for gcc
configure:1938: checking whether the C compiler (gcc ) works
configure:1954: gcc -o conftest conftest.c 1>&5
/usr/lib/gcc/i486-slackware-linux/4.1.2/../../../../i486-slackware-linux/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure: failed program was:

#line 1949 "configure"
#include "confdefs.h"

main(){return(0);}
 
Old 05-06-2008, 08:43 PM   #5
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
how can i check if its 12 or 12.1 ?
 
Old 05-06-2008, 09:05 PM   #6
saulgoode
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 288

Rep: Reputation: 155Reputation: 155
Quote:
Originally Posted by hemi_426 View Post
how can i check if its 12 or 12.1 ?
cat /etc/slackware-version
 
Old 05-06-2008, 09:05 PM   #7
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
thanks ,,,, 12.0.0
 
Old 05-06-2008, 09:09 PM   #8
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
That missing file comes from glibc

Read the docu's on how to safely upgrade/reinstall glibc... That's what I would do anyway.

Last edited by jong357; 05-06-2008 at 09:11 PM.
 
Old 05-06-2008, 09:11 PM   #9
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
so!!!

thanks u guys for reply , but its strange ?
 
Old 05-06-2008, 09:12 PM   #10
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
If you've got gcc 4.1.2 you're running Slackware 12.0 (for future reference you could type `cat /etc/slackware-version` to see the Slackware version you're running). What are you trying to compile? What is the output of `echo $PATH`? The error reports a missing crt1.o file. This file should exist at /usr/lib/crt1.o with "-rw-r--r-- 1 root root" permissions. Check if that exists. I don't know enough to help you beyond that without additional information (please answer all of the above questions). Sorry I couldn't be more helpful -- maybe someone more knowledgeable will stop by.

[edit]jong357 is correct, of course -- see here for a glibc recovery howto: http://rlworkman.net/howtos/glibc-recovery Ignore the fact that you didn't upgrade anything (my assumption) -- something was clearly screwed up along the way. Try a glibc recovery and see if that fixes your problem. If you don't understand how to fix it from that howto, then your best bet is to attempt reinstallation from scratch.[/edit]

Last edited by T3slider; 05-06-2008 at 09:16 PM.
 
Old 05-06-2008, 09:17 PM   #11
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
No... Looks like he's trying to compile 4.1.2....

If indeed you are missing crt1.o, I'd re-install glibc... Do a "man upgradepkg" for more info.

And read T3slider's link above.

Last edited by jong357; 05-06-2008 at 09:19 PM.
 
Old 05-06-2008, 09:31 PM   #12
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
im building linux from scratch using slackware as a host

im building Binutils inside /mnt/hardcore/tools with user: lfs wich owns this directory

lfs@home:/mnt/hardcore/tools/binutils-build$ echo $PATH
/tools/bin:/bin:/usr/bin

and that file doesnt exist

thanks for ur replies
 
Old 05-06-2008, 10:23 PM   #13
jong357
Senior Member
 
Registered: May 2003
Location: Columbus, OH
Distribution: DIYSlackware
Posts: 1,914

Rep: Reputation: 52
Well, crt1.o won't be in your $PATH but in your $LD_LIBRARY_PATH. Even tho that variable won't output /usr/lib, it's still there. /usr/lib is a 'given' anyway.

Have fun! I usually save projects like that for cold weather but whateva'... You might not get cold weather judging from your sig..

Last edited by jong357; 05-06-2008 at 10:24 PM.
 
Old 05-07-2008, 03:18 AM   #14
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
jong357

i searched for crt1.o inside /usr/lib/ ans its not there...

and about the other variable , i got no output ,and sorry for being late i had a long sleep

lfs@home:/mnt/hardcore/tools/binutils-2.17$ $LD_LIBRARY_PATH
lfs@home:/mnt/hardcore/tools/binutils-2.17$

anyway , whats the solution , or where can i get help ??

or i shall reinstall my system ??

thanks a lot
 
Old 05-07-2008, 03:37 AM   #15
hemi_426
Member
 
Registered: Apr 2008
Location: KSA-jeddah
Distribution: CentOS, gentoo, slackware
Posts: 80

Original Poster
Rep: Reputation: 15
0ooh sorry , yes its bad to post when u r sleepy cause u will drop reading some lines ;P

[edit]jong357 is correct, of course -- see here for a glibc recovery howto: http://rlworkman.net/howtos/glibc-recovery Ignore the fact that you didn't upgrade anything (my assumption) -- something was clearly screwed up along the way. Try a glibc recovery and see if that fixes your problem. If you don't understand how to fix it from that howto, then your best bet is to attempt reinstallation from scratch.[/edit]

i will try this , thank u all guys
 
  


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
GCC compiler help!! LinuxNewbie999 Linux - Newbie 12 11-03-2006 12:03 AM
no gcc, no cc no c compiler pyrether DamnSmallLinux 5 09-09-2006 01:14 AM
gcc compiler canyon289 Linux - Software 3 10-23-2004 10:22 PM
GCC Compiler HELP Otaking Linux - Newbie 5 04-08-2004 06:17 PM
GCC compiler...? ph0tik Linux - Newbie 4 04-22-2003 03:22 PM

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

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