SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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:
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]
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..
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]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.