Skip to content

fails to build on Apple M due to 'cmath' file not found #34

@quarterturn

Description

@quarterturn
      clang++ -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/derp/miniconda3/envs/xtts2/include -arch arm64 -fPIC -O2 -isystem /Users/derp/miniconda3/envs/xtts2/include -arch arm64 -Icrfsuite/include/ -Icrfsuite/lib/cqdb/include -Iliblbfgs/include -Ipycrfsuite -I/Users/derp/miniconda3/envs/xtts2/include/python3.10 -c crfsuite/swig/crfsuite.cpp -o build/temp.macosx-11.1-arm64-cpython-310/crfsuite/swig/crfsuite.o
      In file included from crfsuite/swig/crfsuite.cpp:1:
      crfsuite/include/crfsuite.hpp:34:10: fatal error: 'cmath' file not found
         34 | #include <cmath>
            |          ^~~~~~~
      1 error generated.
      error: command '/usr/bin/clang++' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for python-crfsuite
  Running setup.py clean for python-crfsuite
Failed to build spacy python-crfsuite
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (spacy, python-crfsuite)

MacOS 14.6.1 (23G93)
M2 CPU
miniconda env using python=3.10

git show
commit db1ade0e6eb2edfcd32499ebcd4b7ecdaf9de309 (HEAD -> main, origin/main, origin/HEAD)
Merge: 13620d9 7f53cc5
Author: Shlomo Kashani <[email protected]>
Date:   Thu Jan 25 18:05:06 2024 +0200

    Merge pull request #18 from Anmol2059/main
    
    Update requirements.txt

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