From owner-freebsd-questions Tue Jan 11 6:51:20 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mx2.x-treme.gr (mx2.x-treme.gr [212.120.192.15]) by hub.freebsd.org (Postfix) with ESMTP id A435A154CB for ; Tue, 11 Jan 2000 06:51:09 -0800 (PST) (envelope-from keramida@diogenis.ceid.upatras.gr) Received: from localhost.hell.gr (pat57.x-treme.gr [212.120.197.249]) by mx2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with SMTP id QAA09444 for ; Tue, 11 Jan 2000 16:50:59 +0200 Received: (qmail 60288 invoked by uid 1001); 11 Jan 2000 12:46:14 -0000 Date: Tue, 11 Jan 2000 14:46:14 +0200 From: Giorgos Keramidas To: nic@connexions.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: compiling problem ... crti.o Message-ID: <20000111144614.B59158@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <200001061255.MAA27321@aristotle.cnxs.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <200001061255.MAA27321@aristotle.cnxs.co.uk> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Jan 06, 2000 at 12:57:45PM -0000, Nic Drew wrote: > Hi > > The last couple of ports that I have tried to install and the last > couple of manual installations have thrown up the following error: > > /usr/libexec/elf/ld: cannot open crti.o: No such file or directory > *** Error code 1 > > Could someone let me know the meaning of the above and a possible > solution. Looking at the last command line of gcc, when I compile the now traditional `hello world' program with % cat > hello.c #include int main (void) { printf("hello world\n"); } ^D % cc -v hello.c ... /usr/libexec/elf/ld -m elf_i386 -dynamic-linker \ /usr/libexec/ld-elf.so.1 /usr/lib/crt1.o /usr/lib/crti.o \ /usr/lib/crtbegin.o -L/usr/libdata/gcc /var/tmp/ccu601491.o \ /usr/lib/libgcc.a -lc /usr/lib/libgcc.a /usr/lib/crtend.o \ /usr/lib/crtn.o There, you have it. Your crti.o should be in the /usr/lib directory. If it's not there, then your compiler installation is probably broken. Try to reinstall the compiler and see if this gets fixed. Ciao. -- Giorgos Keramidas, < keramida @ ceid . upatras . gr > "What we have to learn to do, we learn by doing." [Aristotle] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message