configure result "checking whether the C compiler works... no"

Bradley Giesbrecht pixilla at macports.org
Thu Aug 18 15:15:17 PDT 2011


I'm trying to install MacPorts an a machine just upgraded from Snow Leopard to Lion. xCode is still at v3.x.

I add /Developer/usr/bin to my path:

base brad$ which gcc
/Developer/usr/bin/gcc

base brad$ file /Developer/usr/bin/gcc
/Developer/usr/bin/gcc: Mach-O universal binary with 3 architectures
/Developer/usr/bin/gcc (for architecture i386):	Mach-O executable i386
/Developer/usr/bin/gcc (for architecture ppc7400):	Mach-O executable ppc
/Developer/usr/bin/gcc (for architecture x86_64):	Mach-O 64-bit executable x86_64

$ ./configure --enable-readline
checking build system type... x86_64-apple-darwin11.1.0
checking host system type... x86_64-apple-darwin11.1.0
checking target system type... x86_64-apple-darwin11.1.0
checking MacPorts version... 2.0.99
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... no
checking Mac OS X version... 10.7.1
checking Xcode version... 4.0.1
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/svn.macports.org/trunk/base':
configure: error: C compiler cannot create executables
See `config.log' for more details


Is the resolution documented anywhere?


Regards,
Bradley Giesbrecht (pixilla)






More information about the macports-dev mailing list