Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install plyvel on macOS #85

Closed
guhur opened this issue Aug 31, 2018 · 10 comments
Closed

Can't install plyvel on macOS #85

guhur opened this issue Aug 31, 2018 · 10 comments

Comments

@guhur
Copy link

guhur commented Aug 31, 2018

From PyPI or direct repo, I get the same issue when installing:

cython --version
Cython version 0.28.5
cython --cplus --fast-fail --annotate plyvel/_plyvel.pyx
python setup.py build_ext --inplace --force
running build_ext
building 'plyvel._plyvel' extension
creating build
creating build/temp.macosx-10.13-x86_64-3.6
creating build/temp.macosx-10.13-x86_64-3.6/plyvel
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/pierre-louis/.pyenv/versions/3.6.5/include/python3.6m -c plyvel/_plyvel.cpp -o build/temp.macosx-10.13-x86_64-3.6/plyvel/_plyvel.o -Wall -g -mmacosx-version-min=10.7 -stdlib=libc++
plyvel/_plyvel.cpp:584:10: fatal error: 'ios' file not found
#include "ios"
^
1 error generated.
error: command 'clang' failed with exit status 1
make: *** [ext] Error 1

leveldb and xcode are already installed.

Thanks for your help :)

@wbolster
Copy link
Owner

wbolster commented Sep 6, 2018

somehow cython thinks you're on ios but you don't have its development headers... 😞

@geyang
Copy link

geyang commented May 3, 2019

same issue here.

@milkyklim
Copy link

Since the issue is closed, can anyone comment on the solution? 😅

@muerl
Copy link

muerl commented Aug 19, 2019

As far as I can tell the solution is CFLAGS='-stdlib=libc++' (Worked for me with 1.1.0 and OSx 10.14.6. I cribbed it from here: #66 (comment) The other two options in the list are addressed in #97.
The PR seems to have removed that flag but adds a different one from the issue thread.

Maybe @importjake could comment?

@schmty
Copy link
Contributor

schmty commented Sep 8, 2019

@episodeyang @muerl @milkyklim sorry for not reaching out sooner, I'll try to help as best I can. I think it would be helpful to open a new issue with a more specific breakdown of your problems trying to install so I can try to better help (as I currently cannot reproduce this issue). Just FYI I'll be fairly slow to respond for the next week or so as I'll be away on a trip but I'm hoping to help whenever I have the time 😄

@milkyklim
Copy link

Solution for me was running the installation with CC=clang CXX=clang++ flags.

@schmty
Copy link
Contributor

schmty commented Sep 9, 2019

@milkyklim that's great, but I need help and more info about how you got this error relating to ios headers. Your solution may very well be the correct solution but I want to be able to understand how to reproduce this bug myself so I can be certain that adding these other flags would help.

What version of OSX and python and plyvel were you trying to install and did you get the same error as the OP above (where somehow cython looks for ios headers)?

@milkyklim
Copy link

I was not trying to install plyvel directly but it was among the dependencies.

The issue is old enough that I don't really remember where it occurred. 🙈 But the error message looked the same as OP.

@schmty
Copy link
Contributor

schmty commented Sep 9, 2019

Fair enough, I'll just say then that for the short term adding those extra flags is probably the best bet, and if I see a new issue filed with someone experiencing this issue or one similar then either I or anyone else motivated could open a PR adding those flags

@muerl
Copy link

muerl commented Sep 10, 2019

@importjake I am switch laptops this week, so if I run into the issue again I will log a new issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants