MatteoLacki / IsoSpec

Libraries for fine isotopic structure calculator.
Other
35 stars 10 forks source link

Installing python version on Mac #41

Closed corilo closed 3 years ago

corilo commented 3 years ago

the python package does not compile on Mac using python 3.8.2

Apple clang version 12.0.0 (clang-1200.0.32.29) Target: x86_64-apple-darwin19.6.0 Thread model: posix

clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -I/Users/eber373/Development/corems/venv/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c IsoSpec++/unity-build.cpp -o build/temp.macosx-10.14.6-x86_64-3.8/IsoSpec++/unity-build.o -mtune=native -march=native -O3 -std=c++17 -stdlib=libc++ clang: error: the clang compiler does not support '-march=native' error: command 'clang' failed with exit status 1

help, please??

corilo commented 3 years ago

Nevermind,

The solution is to install gcc using brew and create the symbolic link to gcc,