built for archive which is not the architecture being linked
Closed this issue · 1 comments
Deleted user commented
Error while building python:
This seems to happen with (at least) 2.5, 2.6, 2.7 and 3.3
gcc -framework CoreFoundation -o python.exe Modules/python.o libpython3.3m.a -lintl -ldl -framework CoreFoundation
ld: warning: ignoring file libpython3.3m.a, file was built for archive which is not the architecture being linked (x86
_64): libpython3.3m.a
Undefined symbols for architecture x86_64:
"_PyMem_Free", referenced from:
_main in python.o
"_PyMem_Malloc", referenced from:
_main in python.o
"_Py_Main", referenced from:
_main in python.o
"__Py_char2wchar", referenced from:
_main in python.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [python.exe] Error 1
python-3.3-build: cmmi failed: /var/folders/_t/nndvxzhj2l7_b_vv5nf3j24h0000gn/T/tmpRYzPvybuildout-python-3.3-build
While:
Installing python-3.3-build.
system info:
Darwin didrix.local 15.0.0 Darwin Kernel Version 15.0.0: Sat Sep 19 15:53:46 PDT 2015; root:xnu-3247.10.11~1/RELEASE_X86_64 x86_64
(OSX 10.11)
Apple LLVM version 7.0.0 (clang-700.1.76)
Target: x86_64-apple-darwin15.0.0
Thread model: posix
solution:
add --enable-shared option
mjpieters commented
This is almost certainly not an issue anymore.