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

build error on mac Mojave #7

Open
39Er opened this issue Jul 13, 2019 · 3 comments
Open

build error on mac Mojave #7

39Er opened this issue Jul 13, 2019 · 3 comments

Comments

@39Er
Copy link

39Er commented Jul 13, 2019

Building wheels for collected packages: NoAho
Building wheel for NoAho (setup.py) ... error
Complete output from command /Users/weimin/miniconda2/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/h4/6csg5py54dg_1h4zkrsbmj1w0000gn/T/pip-install-ulpcVH/NoAho/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" bdist_wheel -d /private/var/folders/h4/6csg5py54dg_1h4zkrsbmj1w0000gn/T/pip-wheel-ry2H4H --python-tag cp27:
running bdist_wheel
running build
running build_ext
building 'noaho' extension
creating build
creating build/temp.macosx-10.6-x86_64-2.7
creating build/temp.macosx-10.6-x86_64-2.7/src
gcc -fno-strict-aliasing -I/Users/weimin/miniconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/weimin/miniconda2/include/python2.7 -c src/noaho.cpp -o build/temp.macosx-10.6-x86_64-2.7/src/noaho.o
warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
In file included from src/noaho.cpp:247:
In file included from src/array-aho.h:31:
In file included from src/HashMap.h:42:
src/LinearHashTable.h:44:10: fatal error: 'functional' file not found
#include
^~~~~~~~~~~~
1 warning and 1 error generated.
error: command 'gcc' failed with exit status 1

@crazy-sam
Copy link

crazy-sam commented Jul 14, 2019

Do you have the compiler installed? 'functional' is a standard C++ header - even in C++98. Maybe you need the -dev package - I don't know what system the Mac uses, but Linuxes use -dev versions of packages, for the headers (though really, you can't compile without headers so I wouldn't expect that you'd need them. But obviously something is wrong).

Also, I've not set this up to be built as a wheel. I need to, but it's waaay on my back-burner.

@anfibil
Copy link

anfibil commented Jul 30, 2019

I am running into the same issue on a new Mojave machine I'm trying to install this package to.

I can confirm that I do have the compiler installed (I installed xcode and command line tools) and yet I'm running into that exact same issue. I'll keep poking around but any hints would be greatly appreciated here.

Edit: The suggestion on this comment here worked for me.

MACOSX_DEPLOYMENT_TARGET=10.13 pip install noaho

@Spikhalskiy
Copy link

If NoAho installed using conda, conda respects MACOSX_DEPLOYMENT_TARGET system environment variable, so you can do:

export MACOSX_DEPLOYMENT_TARGET=10.13
conda env create -f conda-env.yml

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

4 participants