Skip to content

build error on latest Mac environment #7

@makaishi2

Description

@makaishi2

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

(base) MasanoMacBook-Air:TEXT AKAISHI@jp.ibm.com$ 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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions