Date: Tue, 06 Nov 2007 20:57:21 -0500 From: Rod Person <rodperson@verizon.net> To: josh.carroll@gmail.com Cc: "questions @ freebsd. org" <questions@freebsd.org> Subject: Re: C compiler cannot create executables Message-ID: <20071106205721.46641ff6@atomizer.opensourcebeef.net> In-Reply-To: <8cb6106e0711061731u25002f6cq1e216280d24c7bde@mail.gmail.com> References: <20071106193829.531e3067@atomizer.opensourcebeef.net> <8cb6106e0711061731u25002f6cq1e216280d24c7bde@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, 06 Nov 2007 17:31:39 -0800
"Josh Carroll" <josh.carroll@gmail.com> wrote:
> > configure: error: C compiler cannot create executables
> >
> > I googled for awhile and found the suggestion to reinstall libtool,
> > but that also fails with the same error.
>
> Can you paste the config.log from the port's work source directory
> (where configure is located)?
>
> Can you try the following and see if it compiles?
>
> echo '#include <stdio.h>\nint main(void){ printf("hello world!\\n");
> return 0;}\n' > t.c ; gcc t.c -o t; ./t; rm t.c
>
> You should either see:
>
> hello world!
>
> Or some compiler errors/warnings/etc.
I tried this earlier a got this:
> gcc -o test test.c
> ./test.c
>
This returns:
/usr/bin/ld cannot find -lgcc_s
> ldd `which gcc`
returns:
ldd: /usr/bin/gcc: not a dynamic executable
I've attached the config.log from libtool15
- --
Rod
http://roddierod.homeunix.net:8080
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
iD8DBQFHMRuBZe6B7B2ImpsRAtpfAKCUBj1eWLzVbVjHJu3zEJiV0r91MgCfdw7h
Gxd5aMBBOh8n8AzK5LU6CyQ=
=EAT4
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071106205721.46641ff6>
