-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build recent version on Mac #2
Comments
We only tested this on 64bit-macs yet, seems to be a problem there. I'll look into that. |
I use a Macbook Pro with an Intel Core i5 at 2.4 GHz. Should be 64bit... |
Can you try
? If that doesn't work, can you post the output of
? Thanks. Reason behind this is, I can reproduce your error like this:
|
This is what I get: [jens@mandu: Downloading/unpacking geocommit running build running build_py running build_ext building 'geocommit.provider.corelocation.geocommit' extension gcc-4.2 build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommit.o build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommitdelegate.o -o build/lib.macosx-10.6-i386-2.5/geocommit/provider/corelocation/geocommit -framework Foundation -framework CoreLocation ld: warning: in build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommit.o, missing required architecture x86_64 in file ld: warning: in build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommitdelegate.o, missing required architecture x86_64 in file Undefined symbols: "_main", referenced from:
ld: symbol(s) not found collect2: ld returned 1 exit status error: command 'gcc-4.2' failed with exit status 1 Command /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python -c "import setuptools; file='/Users/jens/build/geocommit/setup.py'; execfile('/Users/jens/build/geocommit/setup.py')" install --single-version-externally-managed --record /tmp/pip-CuWGX9-record/install-record.txt --install-headers /Users/jens/lib/include failed with error code 1 And running env|grep -i flag gives me: Nothing. |
@wooster made significant improvements towards mac os x / xcode 4 support, they are in geocommit 0.9.3beta1. Can you upgrade with |
|
The interesting part here is the processor family, I think. @bjoerns Mac is a Core2Duo and boots in 32bit mode by default. However, our buildscript tries to compile in 64bit. |
I don't think I have the option to boot into 64bit mode - holding 6+4 during boot did not work. Also, I am still on Snow Leopard. |
So, i just tried to reproduce this by booting into 32-bit-mode by holding [3][2] during boot, but I probably don't trigger this bug because LLVM (part of xcode 4) works just fine. Can you try to
before installing geocommit ? |
Tried that and it seems to have compiled. However, I just tried a geo commit and got the following error:
|
Ui, nice. As a workaround you can edit
, but i will prepare a version that is compatible with python 2.5 (and includes the fix for ARCHFLAGS=). |
Still no luck, unfortunately (I tried editing line 51). I am on Python 2.5 because that is what App Engine uses. maggie:witty-wizards bjoern$ git commit -m "removing unused code" |
OK, sudo easy_install simplejson fixed that lassed issue. Guess it is a missing dependency in the geocommit descriptor? |
Yes, it's a dependency only for Python <= 2.5 (whereas 2.6 includes a json module). Will fix that as well, thanks for reporting. |
This is what I do:
pip install http://pypi.python.org/packages/source/g/geocommit/geocommit-0.9.2.tar.gz#md5=ca7afac17c75de0fb513f40c9b84ea8b
This is what I get:
Downloading/unpacking http://pypi.python.org/packages/source/g/geocommit/geocommit-0.9.2.tar.gz#md5=ca7afac17c75de0fb513f40c9b84ea8b
Downloading geocommit-0.9.2.tar.gz
Running setup.py egg_info for package from http://pypi.python.org/packages/source/g/geocommit/geocommit-0.9.2.tar.gz#md5=ca7afac17c75de0fb513f40c9b84ea8b
Installing collected packages: geocommit
Running setup.py install for geocommit
building 'geocommit.provider.corelocation.geocommit' extension
gcc-4.2 -fno-strict-aliasing -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/geocommit/provider/corelocation/geocommit.m -o build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommit.o
gcc-4.2 -fno-strict-aliasing -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/geocommit/provider/corelocation/geocommitdelegate.m -o build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommitdelegate.o
src/geocommit/provider/corelocation/geocommitdelegate.m: In function ‘-[GeoCommitDelegate locationManager:didUpdateToLocation:fromLocation:]’:
src/geocommit/provider/corelocation/geocommitdelegate.m:11: warning: format not a string literal and no format arguments
src/geocommit/provider/corelocation/geocommitdelegate.m: In function ‘-[GeoCommitDelegate locationManager:didUpdateToLocation:fromLocation:]’:
src/geocommit/provider/corelocation/geocommitdelegate.m:11: warning: format not a string literal and no format arguments
gcc-4.2 build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommit.o build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommitdelegate.o -o build/lib.macosx-10.6-i386-2.5/geocommit/provider/corelocation/geocommit -framework Foundation -framework CoreLocation
ld: warning: in build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommit.o, missing required architecture x86_64 in file
ld: warning: in build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommitdelegate.o, missing required architecture x86_64 in file
Undefined symbols:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
error: command 'gcc-4.2' failed with exit status 1
Complete output from command /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python -c "import setuptools; file='/tmp/pip-Q7dvbk-build/setup.py'; execfile('/tmp/pip-Q7dvbk-build/setup.py')" install --single-version-externally-managed --record /tmp/pip-ouRz2b-record/install-record.txt --install-headers /lib/include:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.6-i386-2.5
creating build/lib.macosx-10.6-i386-2.5/geocommit
copying src/geocommit/init.py -> build/lib.macosx-10.6-i386-2.5/geocommit
copying src/geocommit/location.py -> build/lib.macosx-10.6-i386-2.5/geocommit
copying src/geocommit/locationprovider.py -> build/lib.macosx-10.6-i386-2.5/geocommit
copying src/geocommit/networkmanager.py -> build/lib.macosx-10.6-i386-2.5/geocommit
copying src/geocommit/tests.py -> build/lib.macosx-10.6-i386-2.5/geocommit
copying src/geocommit/util.py -> build/lib.macosx-10.6-i386-2.5/geocommit
copying src/geocommit/wifilocationprovider.py -> build/lib.macosx-10.6-i386-2.5/geocommit
creating build/lib.macosx-10.6-i386-2.5/geocommit/provider
copying src/geocommit/provider/init.py -> build/lib.macosx-10.6-i386-2.5/geocommit/provider
creating build/lib.macosx-10.6-i386-2.5/geocommit/provider/corelocation
copying src/geocommit/provider/corelocation/init.py -> build/lib.macosx-10.6-i386-2.5/geocommit/provider/corelocation
running build_ext
building 'geocommit.provider.corelocation.geocommit' extension
creating build/temp.macosx-10.6-i386-2.5
creating build/temp.macosx-10.6-i386-2.5/src
creating build/temp.macosx-10.6-i386-2.5/src/geocommit
creating build/temp.macosx-10.6-i386-2.5/src/geocommit/provider
creating build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation
gcc-4.2 -fno-strict-aliasing -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/geocommit/provider/corelocation/geocommit.m -o build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommit.o
gcc-4.2 -fno-strict-aliasing -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/geocommit/provider/corelocation/geocommitdelegate.m -o build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommitdelegate.o
src/geocommit/provider/corelocation/geocommitdelegate.m: In function ‘-[GeoCommitDelegate locationManager:didUpdateToLocation:fromLocation:]’:
src/geocommit/provider/corelocation/geocommitdelegate.m:11: warning: format not a string literal and no format arguments
src/geocommit/provider/corelocation/geocommitdelegate.m: In function ‘-[GeoCommitDelegate locationManager:didUpdateToLocation:fromLocation:]’:
src/geocommit/provider/corelocation/geocommitdelegate.m:11: warning: format not a string literal and no format arguments
gcc-4.2 build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommit.o build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommitdelegate.o -o build/lib.macosx-10.6-i386-2.5/geocommit/provider/corelocation/geocommit -framework Foundation -framework CoreLocation
ld: warning: in build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommit.o, missing required architecture x86_64 in file
ld: warning: in build/temp.macosx-10.6-i386-2.5/src/geocommit/provider/corelocation/geocommitdelegate.o, missing required architecture x86_64 in file
Undefined symbols:
"_main", referenced from:
ld: symbol(s) not found
collect2: ld returned 1 exit status
error: command 'gcc-4.2' failed with exit status 1
Command /System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python -c "import setuptools; file='/tmp/pip-Q7dvbk-build/setup.py'; execfile('/tmp/pip-Q7dvbk-build/setup.py')" install --single-version-externally-managed --record /tmp/pip-ouRz2b-record/install-record.txt --install-headers /lib/include failed with error code 1
Storing complete log in ./pip-log.txt
The text was updated successfully, but these errors were encountered: