C compiler cannot create executables

Ryan Schmidt ryandesign at macports.org
Fri Sep 26 01:34:12 PDT 2008


On Sep 26, 2008, at 03:24, Otto Roberson Bertsch wrote:

> 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


It sounds like you may have a directory in /usr/local whose name  
begins with "include" and then a space, e.g. "include 1". It may be  
similar to this FAQ entry:

http://trac.macports.org/wiki/ 
ProblemHotlist#Aportfailedtobuildwithamessagereferringto1lib:Nosuchfileo 
rdirectory

You should remove any such directory.

Also note it's not supported to have things in /usr/local/ 
{bin,include,lib,...} while using MacPorts.



More information about the macports-users mailing list