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 latest Mac environment #7

Open
makaishi2 opened this issue Jun 9, 2019 · 1 comment
Open

build error on latest Mac environment #7

makaishi2 opened this issue Jun 9, 2019 · 1 comment

Comments

@makaishi2
Copy link

On latest Mac environment, build error occures.
Error messeages are as folllows:

(base) MasanoMacBook-Air:TEXT [email protected]$ pip install cabocha-master/python/
Processing ./cabocha-master/python
Building wheels for collected packages: cabocha-python
  Building wheel for cabocha-python (setup.py) ... error
  ERROR: Complete output from command /anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/2y/pfklj4fs4vx3580dt87dxxc00000gn/T/pip-req-build-tlfvi4mq/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/2y/pfklj4fs4vx3580dt87dxxc00000gn/T/pip-wheel-w2vcj55m --python-tag cp37:
  ERROR: running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.7-x86_64-3.7
  copying CaboCha.py -> build/lib.macosx-10.7-x86_64-3.7
  running build_ext
  building '_CaboCha' extension
  creating build/temp.macosx-10.7-x86_64-3.7
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -I/usr/local/Cellar/cabocha/0.69/include -I/anaconda3/include/python3.7m -c CaboCha_wrap.cxx -o build/temp.macosx-10.7-x86_64-3.7/CaboCha_wrap.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]
  CaboCha_wrap.cxx:2981:10: fatal error: 'stdexcept' file not found
  #include <stdexcept>
           ^~~~~~~~~~~
  1 warning and 1 error generated.
  error: command 'gcc' failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for cabocha-python
  Running setup.py clean for cabocha-python
Failed to build cabocha-python
Installing collected packages: cabocha-python
  Running setup.py install for cabocha-python ... error
    ERROR: Complete output from command /anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/2y/pfklj4fs4vx3580dt87dxxc00000gn/T/pip-req-build-tlfvi4mq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2y/pfklj4fs4vx3580dt87dxxc00000gn/T/pip-record-521ty7bj/install-record.txt --single-version-externally-managed --compile:
    ERROR: running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.7-x86_64-3.7
    copying CaboCha.py -> build/lib.macosx-10.7-x86_64-3.7
    running build_ext
    building '_CaboCha' extension
    creating build/temp.macosx-10.7-x86_64-3.7
    gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/anaconda3/include -arch x86_64 -I/anaconda3/include -arch x86_64 -I/usr/local/Cellar/cabocha/0.69/include -I/anaconda3/include/python3.7m -c CaboCha_wrap.cxx -o build/temp.macosx-10.7-x86_64-3.7/CaboCha_wrap.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]
    CaboCha_wrap.cxx:2981:10: fatal error: 'stdexcept' file not found
    #include <stdexcept>
             ^~~~~~~~~~~
    1 warning and 1 error generated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command "/anaconda3/bin/python -u -c 'import setuptools, tokenize;__file__='"'"'/private/var/folders/2y/pfklj4fs4vx3580dt87dxxc00000gn/T/pip-req-build-tlfvi4mq/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/2y/pfklj4fs4vx3580dt87dxxc00000gn/T/pip-record-521ty7bj/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/2y/pfklj4fs4vx3580dt87dxxc00000gn/T/pip-req-build-tlfvi4mq/
@ryandesign
Copy link

Looks like the same error as taku910/crfpp#48. Set the deployment target to 10.9 or later.

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

2 participants