C compiler cannot create executables

Otto Roberson Bertsch otto.roberson at gmail.com
Fri Sep 26 01:24:26 PDT 2008


It seems likely that I have been hit by "the lazy installer" when I
installed XCode.

I downloaded macports via subversion and tried ./configure, here a snip from
config.log:

configure:2502: $? = 0
configure:2509: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5488~2/src/configure --disable-checking
-enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin9 --with-arch=apple --with-tune=generic
--host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5488)
configure:2512: $? = 0
configure:2519: gcc -V >&5
gcc-4.0: argument to `-V' is missing
configure:2522: $? = 1
configure:2545: checking for C compiler default output file name
configure:2572: gcc    conftest.c  >&5
cc1: error: /usr/local/include: Not a directory
configure:2575: $? = 1
configure:2613: result:
configure: failed program was:
| /* confdefs.h.  */

So gcc --v (and cc -v) both say:
Using built-in specs.
Target: i686-apple-darwin9
Configured with: /var/tmp/gcc/gcc-5488~2/src/configure --disable-checking
-enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=i686-apple-darwin9 --with-arch=apple --with-tune=generic
--host=i686-apple-darwin9 --target=i686-apple-darwin9
Thread model: posix
gcc version 4.0.1 (Apple Inc. build 5488)

XCode is now 3.1.1, it tells me gcc 3.3 (1823) gcc 4.0.1 (5488) and gcc
(4.2.1) are available.
gcc_select is not in Leopard, I thought about trying gcc 4.2.1...

Can someone please tell me how I can fix this problem?
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080926/4931a80c/attachment.html 


More information about the macports-users mailing list