Skip to content

doesnt build on OSX #46

Description

@soumith

Log:

soumith-> pip install alephzero
Collecting alephzero
  Downloading alephzero-0.3.12.tar.gz (416 kB)
     |████████████████████████████████| 416 kB 2.9 MB/s
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting jsonpointer>=2.1
  Downloading jsonpointer-2.2-py2.py3-none-any.whl (7.5 kB)
Requirement already satisfied: websocket-client>=1.2.1 in /Users/soumith/miniconda3/envs/droidlet/lib/python3.7/site-packages (from alephzero) (1.2.3)
Building wheels for collected packages: alephzero
  Building wheel for alephzero (pyproject.toml) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/soumith/miniconda3/envs/droidlet/bin/python3.7 /Users/soumith/miniconda3/envs/droidlet/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/_n/7n03tmzx7f33tph2xqjbqbd40000gn/T/tmp43o8h9_0
       cwd: /private/var/folders/_n/7n03tmzx7f33tph2xqjbqbd40000gn/T/pip-install-04cvsrgk/alephzero_394ab21e8154422ca3f9a9611116c217
  Complete output (36 lines):
  make: Nothing to be done for `lib/libalephzero.a'.
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.9-x86_64-3.7
  copying a0.py -> build/lib.macosx-10.9-x86_64-3.7
  running build_ext
  creating build/temp.macosx-10.9-x86_64-3.7
  gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/soumith/miniconda3/envs/droidlet/include -arch x86_64 -I/Users/soumith/miniconda3/envs/droidlet/include -arch x86_64 -I/usr/local/opt/ruby/include -DA0_EXT_YYJSON=1 -I./alephzero/include/ -I./alephzero/third_party/yyjson/src/ -I/private/var/folders/_n/7n03tmzx7f33tph2xqjbqbd40000gn/T/pip-build-env-rwre0fx7/overlay/lib/python3.7/site-packages/pybind11/include -I/Users/soumith/miniconda3/envs/droidlet/include/python3.7m -c module.cc -o build/temp.macosx-10.9-x86_64-3.7/module.o -fvisibility=hidden -g0 -stdlib=libc++ -flto -O2
  In file included from module.cc:2:
  In file included from ./alephzero/include/a0.h:4:
  In file included from ./alephzero/include/a0/alloc.h:5:
  ./alephzero/include/a0/err.h:25:8: error: unknown type name 'thread_local'
  extern A0_THREAD_LOCAL int a0_err_syscode;
         ^
  ./alephzero/include/a0/thread_local.h:5:25: note: expanded from macro 'A0_THREAD_LOCAL'
  #define A0_THREAD_LOCAL thread_local
                          ^
  In file included from module.cc:2:
  In file included from ./alephzero/include/a0.h:4:
  In file included from ./alephzero/include/a0/alloc.h:5:
  ./alephzero/include/a0/err.h:26:8: error: unknown type name 'thread_local'
  extern A0_THREAD_LOCAL char a0_err_msg[1024];
         ^
  ./alephzero/include/a0/thread_local.h:5:25: note: expanded from macro 'A0_THREAD_LOCAL'
  #define A0_THREAD_LOCAL thread_local
                          ^
  In file included from module.cc:2:
  In file included from ./alephzero/include/a0.h:8:
  In file included from ./alephzero/include/a0/cfg.h:5:
  ./alephzero/include/a0/file.h:42:10: fatal error: 'linux/limits.h' file not found
  #include <linux/limits.h>
           ^~~~~~~~~~~~~~~~
  3 errors generated.
  error: command '/usr/bin/gcc' failed with exit code 1
  ----------------------------------------
  ERROR: Failed building wheel for alephzero
Failed to build alephzero
ERROR: Could not build wheels for alephzero, which is required to install pyproject.toml-based projects

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