Gcc: error: unrecognized command-line option '-stdlib=libc++' Gcc: error: unrecognized command-line option '-iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/amework/Versions/3.8/Headers' Gcc: error: unrecognized command-line option '-iwithsysroot/System/Library/Frameworks/amework/PrivateHeaders' Gcc: error: this compiler does not support arm64 opt/local/bin/gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/amework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/amework/Versions/3.8/Headers -arch arm64 -arch x86_64 -I/usr/local/opt/libomp/include -Xpreprocessor -fopenmp -dynamiclib -D_jcc_lib -DJCC_VER="3.8" -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/include/darwin -I_jcc3 -Ijcc3/sources -I/Users/cwang/3.7/include -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/amework/Versions/3.8/include/python3.8 -c jcc3/sources/jcc.cpp -o build/temp.macosx-10.14.6-x86_64-3.8/jcc3/sources/jcc.o -DPYTHON -fno-strict-aliasing -Wno-write-strings -mmacosx-version-min=10.9 -std=c++11 -stdlib=libc++ With Python 3.8.2 when I build, I get an error msg: python setup.py build OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.282-b08, mixed mode) OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_282-b08) Macbook Pro, Intel Core i7 (so it's bad that arm64 is passed to the compiler somehow).I have tried to search through the source code but I can't find where arm64 is actually used. I've encountered this problem while trying to do a build of another project, so I don't think it's pylucene's problem per se. Otherwise, sorry for the longish post that follows. I suspect it's a problem that involved Python and the Mac and some other thing.įirst, is it possible to download this as a binary? That would eliminate my problem (I hope) JCC requires JDK and C++ compiler.įirst download the source file, and build it using python setuptools. JCC is a C++ code generator that produces a C++ object interface wrapping a Java library. Set the JAVA environment variables sudo apt install oracle-java8-set-default Install the JAVA installer script sudo apt install oracle-java8-installerĬheck if JAVA 1.8 is installed correctly javac -version $ python3 -c "import lucene lucene.initVM()"įirst, add the PPA, and update the package index sudo add-apt-repository ppa:webupd8team/java JCC=$(PYTHON) -m jcc -shared -arch x86_64Ĭheck if it runs without a problem. I modified the settings as below: PREFIX_PYTHON=/usr/local
0 Comments
Leave a Reply. |