Date: Tue, 11 Jan 2000 14:46:14 +0200 From: Giorgos Keramidas <charon@hades.hell.gr> To: nic@connexions.co.uk Cc: freebsd-questions@freebsd.org Subject: Re: compiling problem ... crti.o Message-ID: <20000111144614.B59158@hades.hell.gr> In-Reply-To: <200001061255.MAA27321@aristotle.cnxs.co.uk> References: <200001061255.MAA27321@aristotle.cnxs.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000111144614.B59158>
