Closed jorgeboucas closed 7 years ago
Interesting. I am also running El Capitan, and I have not had this issue.
It might be related to using -std=c++11
vs -std=c++0x
in compiler options in setup.py
, but I will have to investigate this more – if this is the reason, I understand why it doesn't work for you, but I don't understand why it works for me...
I did
export MACOSX_DEPLOYMENT_TARGET=10.10
but now I am receiving the following error message:
Rajivs-MacBook-Pro:MOODS-python-1.9.2 Rajiv$ python setup.py install running install running build running build_py running build_ext building 'MOODS._scan' extension /usr/bin/clang -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Icore/ -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c core/scan_wrap.cxx -o build/temp.macosx-10.6-intel-2.7/core/scan_wrap.o -march=native -O3 -fPIC --std=c++0x fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't create temporary output file: build/temp.macosx-10.6-intel-2.7/core/scan_wrap.o.lipo (Permission denied) clang: error: lipo command failed with exit code 1 (use -v to see invocation) error: command '/usr/bin/clang' failed with exit status 1
Any ideas?
I am on OS 10.11.6 ..
You can try to make sure you've the latest version of
Last login: Fri Jul 22 13:41:21 on ttys003
jboucas-mbpr:~ jboucas$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
jboucas-mbpr:~ jboucas$ clang++ --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
jboucas-mbpr:~ jboucas$ llvm-g++ --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
jboucas-mbpr:~ jboucas$ llvm-gcc --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Sorry for the inactivity on this.
I think rmovva's issue is unrelated to the original problem, lipo
just seems to be picky when writing temporary build files if something exists in the build/
directory already. Doing rm -rf build/
should fix it.
This should now (finally) be fixed in 1.9.3. Install script uses -std=c++11
instead of -std=c++0x
, and this seems to work for me both on macOS 10.11 and 10.12.
Hello,
I just encountered the same error installing MOODs 1.9.3 on a mac OSX Sierra 10.12.5:
core/moods.h:8:10: fatal error: 'cstdint' file not found
The export MACOSX_DEPLOYMENT_TARGET=10.10
workaround worked, but I wouldn't call that a solution.
I'm still not sure what causes this, especially as I have not been able to reproduce this myself.
Could you dump the full log from the install script and also let me know what g++ --version
says? What python are you running, i.e. Apple's built-in one or something else?
Hi, I'd love to, but I have since sanitised both my python and gcc. This all was in the middle of me trying to install something else and having a variety of dependency issues, including gcc and python. I needed to get the stuff installed before a workshop, so preserving forensic evidence was not my priority while frantically trying to get everything to work.
These are my best guesses: GCC: probably the default osx alias to clang (version below). Either that, or the latest gcc on that day, compiled from source. I don't remember if I installed gcc as a result of this error or because it was a dependency for other things I needed. Python: At the time there were probably 4 python installations, two of them kinda broken. Not sure which was used. Probably the osx supplied ones (2.6.6, although there is also a 2.7.3).
I suppose I could try to see if it installs now on the sanitised system... If I can find it and remove it first.
This is my clang:
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Hi,
just in case someone is also having problems installing on a mac El Capitan (10.11.14).
I just took the idea from here: https://github.com/wesm/feather/issues/61
Error:
python setup.py install
Fix:
python setup.py install
@jhkorhonen feel free to close the issue.
Thanks for MOODS!