Hi, must be something wrong with your build chain setup - I also use MacOS 10.8 and Python 2.7
Are you using the Apple "builtin" Python or did you install your one? Do you have Xcode installed and did you choose to enable the "command line tools" (Xcode/Preferences/Downloads/Components)? Note: my Python is 2.7 and lives is in /System/Library/Frameworks/Python.framework/Versions/2.7/ my Java is 1.6 (version "1.6.0_51") and lives in /System/Library/Frameworks/JavaVM.framework/Versions/1.6 accordingly JCC's "setup.py build" tells -- found JAVAFRAMEWORKS = /System/Library/Frameworks/JavaVM.framework ... (first compiler call:) clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -mno-fused-madd -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -dynamiclib -D_jcc_lib -DJCC_VER="2.17" -I/System/Library/Frameworks/JavaVM.framework/Headers -I_jcc -Ijcc/sources -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c jcc/sources/jcc.cpp -o build/temp.macosx-10.8-intel-2.7/jcc/sources/jcc.o -DPYTHON -fno-strict-aliasing -Wno-write-strings clang: warning: argument unused during compilation: '-mno-fused-madd' clang: warning: argument unused during compilation: '-dynamiclib' jcc/sources/jcc.cpp:397:9: warning: 'JNI_GetDefaultJavaVMInitArgs' is deprecated [-Wdeprecated-declarations] JNI_GetDefaultJavaVMInitArgs(&vm_args); ^ Try to compare the output with yours … Also check you compiler version: $ clang -v Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn) Target: x86_64-apple-darwin12.4.0 Thread model: posix My build chain doesn't need/call "xcrun" - haven't seen this before… seems to belong to Xcode though: https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcrun.1.html > Did you change the Makefile and setup.py (for JCC)? > setup.py is unchanged - Makefile: I only added # Mac OS X 10.8.4 (64-bit *only* Python 2.7.2 together, Java 1.6) PREFIX_PYTHON=/usr ANT=ant PYTHON=$(PREFIX_PYTHON)/bin/python JCC=$(PYTHON) -m jcc --shared --arch x86_64 NUM_FILES=8 Hope this helps… regards Thomas -- Am 18.08.2013 um 21:48 schrieb Taka Epsilon <taka.epsi...@gmail.com>: > I'm new to PyLucene and trying to build JCC 2.17 on Mac OS X 10.8.4 with > Python 2.7 and Java 1.6. But the 'python setup.py build' command is failing > with the following error with the default setup.py. Any idea? > > > xcrun clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include > -I/usr/local/opt/sqlite/include -isysroot > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk > -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers > -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -dynamiclib -D_jcc_lib > -DJCC_VER="2.17" > -I/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/include > -I/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/include/darwin > -I_jcc -Ijcc/sources > -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7 > -c jcc/sources/JCCEnv.cpp -o > build/temp.macosx-10.8-x86_64-2.7/jcc/sources/JCCEnv.o -DPYTHON > -fno-strict-aliasing -Wno-write-strings > clang: warning: argument unused during compilation: '-dynamiclib' > xcrun -Wl,-x -dynamiclib -undefined dynamic_lookup > build/temp.macosx-10.8-x86_64-2.7/jcc/sources/jcc.o > build/temp.macosx-10.8-x86_64-2.7/jcc/sources/JCCEnv.o -o > build/lib.macosx-10.8-x86_64-2.7/libjcc.dylib > -L/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/jre/lib > -ljava > -L/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/jre/lib/server > -ljvm -Wl,-rpath > -Wl,/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/jre/lib > -Wl,-rpath > -Wl,/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/jre/lib/server > -Wl,-S -install_name @rpath/libjcc.dylib -current_version 2.17 > -compatibility_version 2.17 > xcrun: error: unrecognized option: -Wl,-x