Cheburka / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

OSX10.8.xctoolchain directory does not exist #298

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When trying to compile on OSX 10.8.3, and XCode 4.6.1. I received the following 
output.

=====
-> make
/usr/sbin/apxs -c 
-I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -DNDEBUG  
-Wc,'-arch x86_64' mod_wsgi.c -Wl,-F/Library/Frameworks -framework Python -u 
_PyMac_Error   -arch x86_64 -ldl  -framework CoreFoundation  
/usr/share/apr-1/build-1/libtool --silent --mode=compile 
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bi
n/cc    -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -I/usr/local/include 
-I/usr/include/apache2  -I/usr/include/apr-1   -I/usr/include/apr-1  -arch 
x86_64 -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 
-DNDEBUG  -c -o mod_wsgi.lo mod_wsgi.c && touch mod_wsgi.slo
env: 
/Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bi
n/cc: No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [mod_wsgi.la] Error 1
===============

As the message suggests, I did not have the OSX10.8.xctoolchain directory. 
Unsure how to change this in the config, I copied the contents of 
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain 
into the respectively named directory. This seemed to allow it to compile, but 
as I am a novice with wsgi, I don't know how to tell if it compiled correctly 
or that it works...yet. 

Thanks.

Original issue reported on code.google.com by joshua.t...@gmail.com on 9 Apr 2013 at 8:50

GoogleCodeExporter commented 8 years ago
It wasn't necessary to copy the whole directory, just create a symlink. The 
steps you should have taken were:

cd /Applications/Xcode.app/Contents/Developer/Toolchains/
sudo ln -s XcodeDefault.xctoolchain OSX10.8.xctoolchain

This problem is caused by an incorrect Apache build configuration that Apple 
has shipped. This issue has supposedly been reported to Apple, but they haven't 
done anything about it.

Original comment by Graham.Dumpleton@gmail.com on 10 Apr 2013 at 3:47