From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13793 invoked by alias); 23 Jul 2003 17:59:47 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 13781 invoked from network); 23 Jul 2003 17:59:47 -0000 Received: from unknown (HELO anchor-post-35.mail.demon.net) (194.217.242.85) by sources.redhat.com with SMTP; 23 Jul 2003 17:59:47 -0000 Received: from test.softwire.co.uk ([62.49.203.139] helo=grizzlybear) by anchor-post-35.mail.demon.net with esmtp (Exim 3.36 #2) id 19fNty-0005gr-0Z; Wed, 23 Jul 2003 18:59:46 +0100 From: "Rupert Wood" To: "'Navtej Buttar'" Cc: Subject: RE: gcc error: /usr/bin/ld: cannot open crt1.o: No such file or directory Date: Wed, 23 Jul 2003 18:08:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Message-Id: X-SW-Source: 2003-07/txt/msg00330.txt.bz2 Navtej Buttar wrote:=20 > the problem i am facing is when ever i want to compile a program I > get an error message > > #gcc a.c > /usr/bin/ld: cannot open crt1.o: No such file or directory > collect2: ld returned 1 exit status >=20 > i am unable to degbug it. You debug this by adding '-v' to the gcc command line. This will show you the commands that the GCC front-end is passing to ld, including the path where it expects to find crt1.o. Chances are that crt1.o is in another RPM that you haven't installed. But I've never tried to administer a Red Hat machine - I always install the dev stuff at the start - and I don't have one handy to look at. See if there's a glibc-dev RPM or similar and try installing that. On the other hand I'd have expected that'd be a prerequisite for the GCC RPM. Good luck, Rup.