Last active
September 1, 2023 19:02
-
-
Save samuela/ec22566e0526679d4e4aed427ed9ffd6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { lib | |
| , stdenv | |
| , buildPythonPackage | |
| , cmake | |
| , fetchFromGitHub | |
| , gtest | |
| , nbval | |
| , numpy | |
| , parameterized | |
| , protobuf | |
| , pybind11 | |
| , pytestCheckHook | |
| , pythonOlder | |
| , tabulate | |
| , typing-extensions | |
| }: | |
| let | |
| gtestStatic = gtest.override { static = true; }; | |
| in buildPythonPackage rec { | |
| pname = "onnx"; | |
| version = "1.14.0"; | |
| format = "setuptools"; | |
| disabled = pythonOlder "3.8"; | |
| src = fetchFromGitHub { | |
| owner = pname; | |
| repo = pname; | |
| rev = "refs/tags/v${version}"; | |
| hash = "sha256-f+s25Y/jGosaSdoZY6PE3j6pENkfDcD+IQndrbtuzWg="; | |
| }; | |
| nativeBuildInputs = [ | |
| cmake | |
| pybind11 | |
| ]; | |
| propagatedBuildInputs = [ | |
| protobuf | |
| numpy | |
| typing-extensions | |
| ]; | |
| nativeCheckInputs = [ | |
| nbval | |
| parameterized | |
| pytestCheckHook | |
| tabulate | |
| ]; | |
| postPatch = '' | |
| chmod +x tools/protoc-gen-mypy.sh.in | |
| patchShebangs tools/protoc-gen-mypy.sh.in | |
| substituteInPlace setup.py \ | |
| --replace 'setup_requires.append("pytest-runner")' "" | |
| # prevent from fetching & building own gtest | |
| substituteInPlace CMakeLists.txt \ | |
| --replace 'include(googletest)' "" | |
| substituteInPlace cmake/unittest.cmake \ | |
| --replace 'googletest)' ')' | |
| ''; | |
| # Set CMAKE_INSTALL_LIBDIR to lib explicitly, because otherwise it gets set to | |
| # lib64 and cmake incorrectly looks for the protobuf library in lib64 | |
| preConfigure = '' | |
| export CMAKE_ARGS="-DCMAKE_INSTALL_LIBDIR=lib" | |
| export CMAKE_ARGS+=" -DONNX_USE_PROTOBUF_SHARED_LIBS=ON" | |
| export CMAKE_ARGS+=" -Dgoogletest_STATIC_LIBRARIES=${gtestStatic}/lib/libgtest.a" | |
| export CMAKE_ARGS+=" -Dgoogletest_INCLUDE_DIRS=${lib.getDev gtestStatic}/include" | |
| export CMAKE_ARGS+=" -DCMAKE_CXX_STANDARD=17" | |
| export ONNX_BUILD_TESTS=1 | |
| ''; | |
| preBuild = '' | |
| export MAX_JOBS=$NIX_BUILD_CORES | |
| ''; | |
| # The executables are just utility scripts that aren't too important | |
| postInstall = '' | |
| rm -r $out/bin | |
| ''; | |
| # The setup.py does all the configuration | |
| dontUseCmakeConfigure = true; | |
| preCheck = '' | |
| export HOME=$(mktemp -d) | |
| # detecting source dir as a python package confuses pytest | |
| mv onnx/__init__.py onnx/__init__.py.hidden | |
| ''; | |
| pytestFlagsArray = [ | |
| "onnx/test" | |
| "onnx/examples" | |
| ]; | |
| disabledTests = [ | |
| # attempts to fetch data from web | |
| "test_bvlc_alexnet_cpu" | |
| "test_densenet121_cpu" | |
| "test_inception_v1_cpu" | |
| "test_inception_v2_cpu" | |
| "test_resnet50_cpu" | |
| "test_shufflenet_cpu" | |
| "test_squeezenet_cpu" | |
| "test_vgg19_cpu" | |
| "test_zfnet512_cpu" | |
| ] ++ lib.optionals stdenv.isAarch64 [ | |
| # AssertionError: Output 0 of test 0 in folder | |
| "test__pytorch_converted_Conv2d_depthwise_padded" | |
| "test__pytorch_converted_Conv2d_dilated" | |
| "test_dft" | |
| "test_dft_axis" | |
| # AssertionError: Mismatch in test 'test_Conv2d_depthwise_padded' | |
| "test_xor_bcast4v4d" | |
| # AssertionError: assert 1 == 0 | |
| "test_ops_tested" | |
| ]; | |
| disabledTestPaths = [ | |
| # Unexpected output fields from running code: {'stderr'} | |
| "onnx/examples/np_array_tensorproto.ipynb" | |
| ]; | |
| __darwinAllowLocalNetworking = true; | |
| postCheck = '' | |
| # run "cpp" tests | |
| .setuptools-cmake-build/onnx_gtests | |
| ''; | |
| pythonImportsCheck = [ | |
| "onnx" | |
| ]; | |
| meta = with lib; { | |
| description = "Open Neural Network Exchange"; | |
| homepage = "https://onnx.ai"; | |
| license = licenses.asl20; | |
| maintainers = with maintainers; [ acairncross ]; | |
| }; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ❯ nix-build -A python3Packages.onnx | |
| this derivation will be built: | |
| /nix/store/g7wh1zq63h086svlz9gcahhpyraxhg6w-python3.10-onnx-1.14.0.drv | |
| building '/nix/store/g7wh1zq63h086svlz9gcahhpyraxhg6w-python3.10-onnx-1.14.0.drv'... | |
| Sourcing python-remove-tests-dir-hook | |
| Sourcing python-catch-conflicts-hook.sh | |
| Sourcing python-remove-bin-bytecode-hook.sh | |
| Sourcing setuptools-build-hook | |
| Using setuptoolsBuildPhase | |
| Using setuptoolsShellHook | |
| Sourcing pypa-install-hook | |
| Using pypaInstallPhase | |
| Sourcing python-imports-check-hook.sh | |
| Using pythonImportsCheckPhase | |
| Sourcing python-namespaces-hook | |
| Sourcing python-catch-conflicts-hook.sh | |
| Sourcing setuptools-check-hook | |
| Using setuptoolsCheckPhase | |
| Sourcing pytest-check-hook | |
| Using pytestCheckPhase | |
| Removing setuptoolsCheckPhase | |
| unpacking sources | |
| unpacking source archive /nix/store/d2cq034wcvp59clzf7mrvqq1jwc072d5-source | |
| source root is source | |
| setting SOURCE_DATE_EPOCH to timestamp 315619200 of file source/workflow_scripts/test_model_zoo.py | |
| patching sources | |
| patching script interpreter paths in tools/protoc-gen-mypy.sh.in | |
| tools/protoc-gen-mypy.sh.in: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/9l9763p8b3wvadg7rk4akqm64fmhd2a5-bash-5.2-p15/bin/bash" | |
| updateAutotoolsGnuConfigScriptsPhase | |
| configuring | |
| no configure script, doing nothing | |
| building | |
| Executing setuptoolsBuildPhase | |
| running bdist_wheel | |
| running build | |
| running build_py | |
| running create_version | |
| running cmake_build | |
| Extra cmake args: ['-DCMAKE_INSTALL_LIBDIR=lib', '-DONNX_USE_PROTOBUF_SHARED_LIBS=ON', '-Dgoogletest_STATIC_LIBRARIES=/nix/store/cs87r4scfnxfrz89ybqx05pxhiy6gmlp-gtest-1.12.1/lib/libgtest.a', '-Dgoogletest_INCLUDE_DIRS=/nix/store/597m675fgxp1ysgfjqz3a4yvdskrhqz8-gtest-1.12.1-dev/include', '-DCMAKE_CXX_STANDARD=17'] | |
| Using cmake args: ['/nix/store/q17s5r4s5zbfsvqnh0dhd5vkd0ka83fl-python3.10-cmake-3.26.4/bin/cmake', '-DPYTHON_INCLUDE_DIR=/nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/include/python3.10', '-DPYTHON_EXECUTABLE=/nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/bin/python3.10', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cpython-310-darwin.so', '-DCMAKE_BUILD_TYPE=Release', '-DONNX_ML=1', '-DONNX_BUILD_TESTS=ON', '-DCMAKE_INSTALL_LIBDIR=lib', '-DONNX_USE_PROTOBUF_SHARED_LIBS=ON', '-Dgoogletest_STATIC_LIBRARIES=/nix/store/cs87r4scfnxfrz89ybqx05pxhiy6gmlp-gtest-1.12.1/lib/libgtest.a', '-Dgoogletest_INCLUDE_DIRS=/nix/store/597m675fgxp1ysgfjqz3a4yvdskrhqz8-gtest-1.12.1-dev/include', '-DCMAKE_CXX_STANDARD=17', '/private/tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source'] | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| -- The C compiler identification is Clang 11.1.0 | |
| -- The CXX compiler identification is Clang 11.1.0 | |
| -- Detecting C compiler ABI info | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| -- Detecting C compiler ABI info - done | |
| -- Check for working C compiler: /nix/store/l3lkdfm7sg1wwc850451cikqds766h15-clang-wrapper-11.1.0/bin/clang - skipped | |
| -- Detecting C compile features | |
| -- Detecting C compile features - done | |
| -- Detecting CXX compiler ABI info | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| -- Detecting CXX compiler ABI info - done | |
| -- Check for working CXX compiler: /nix/store/l3lkdfm7sg1wwc850451cikqds766h15-clang-wrapper-11.1.0/bin/clang++ - skipped | |
| -- Detecting CXX compile features | |
| -- Detecting CXX compile features - done | |
| -- Found PythonInterp: /nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/bin/python3.10 (found version "3.10.12") | |
| -- Found PythonLibs: /nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/lib/libpython3.10.dylib (found version "3.10.12") | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| CMake Warning at /nix/store/ly37ab5pmwwzr55gjkflpqq7w8igxac7-cmake-3.26.4/share/cmake-3.26/Modules/FindProtobuf.cmake:524 (message): | |
| Protobuf compiler version 23.4 doesn't match library version 4.23.4 | |
| Call Stack (most recent call first): | |
| CMakeLists.txt:179 (find_package) | |
| -- Found Protobuf: /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/lib/libprotobuf.dylib (found version "4.23.4") | |
| Generated: /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-ml.proto | |
| Generated: /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-operators-ml.proto | |
| Generated: /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-data.proto | |
| -- Found PythonInterp: /nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/bin/python3.10 (found suitable version "3.10.12", minimum required is "3.6") | |
| -- Found PythonLibs: /nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/lib/libpython3.10.dylib | |
| -- Performing Test HAS_FLTO | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| -- Performing Test HAS_FLTO - Failed | |
| -- Performing Test HAS_FLTO_THIN | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| sh: ps: command not found | |
| -- Performing Test HAS_FLTO_THIN - Failed | |
| -- Found pybind11: /nix/store/bx69yapsgjx42srnzn0fdbpabvxbv35q-python3.10-pybind11-2.11.1/include (found version "2.11.1") | |
| -- Found Threads: TRUE | |
| -- | |
| -- ******** Summary ******** | |
| -- CMake version : 3.26.4 | |
| -- CMake command : /nix/store/ly37ab5pmwwzr55gjkflpqq7w8igxac7-cmake-3.26.4/bin/cmake | |
| -- System : Darwin | |
| -- C++ compiler : /nix/store/l3lkdfm7sg1wwc850451cikqds766h15-clang-wrapper-11.1.0/bin/clang++ | |
| -- C++ compiler version : 11.1.0 | |
| -- CXX flags : -Wnon-virtual-dtor | |
| -- Build type : Release | |
| -- Compile definitions : __STDC_FORMAT_MACROS | |
| -- CMAKE_PREFIX_PATH : | |
| -- CMAKE_INSTALL_PREFIX : /var/empty/local | |
| -- CMAKE_MODULE_PATH : /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/cmake/external | |
| -- | |
| -- ONNX version : 1.14.0 | |
| -- ONNX NAMESPACE : onnx | |
| -- ONNX_USE_LITE_PROTO : OFF | |
| -- USE_PROTOBUF_SHARED_LIBS : ON | |
| -- Protobuf_USE_STATIC_LIBS : OFF | |
| -- ONNX_DISABLE_EXCEPTIONS : OFF | |
| -- ONNX_WERROR : OFF | |
| -- ONNX_BUILD_TESTS : ON | |
| -- ONNX_BUILD_BENCHMARKS : OFF | |
| -- | |
| -- Protobuf compiler : /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/bin/protoc | |
| -- Protobuf includes : /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include | |
| -- Protobuf libraries : /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/lib/libprotobuf.dylib | |
| -- BUILD_ONNX_PYTHON : ON | |
| -- Python version : | |
| -- Python executable : /nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/bin/python3.10 | |
| -- Python includes : /nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/include/python3.10 | |
| -- Configuring done (2.7s) | |
| -- Generating done (0.0s) | |
| -- Build files have been written to: /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build | |
| [ 1%] Running gen_proto.py on onnx/onnx.in.proto | |
| Processing /private/tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/onnx/onnx.in.proto | |
| Writing /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-ml.proto | |
| Writing /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-ml.proto3 | |
| generating /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx_pb.py | |
| [ 2%] Running C++ protocol buffer compiler on /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-ml.proto | |
| Writing mypy to onnx/onnx_ml_pb2.pyi | |
| [ 2%] Built target gen_onnx_proto | |
| [ 3%] Running gen_proto.py on onnx/onnx-data.in.proto | |
| [ 5%] Running gen_proto.py on onnx/onnx-operators.in.proto | |
| Processing /private/tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/onnx/onnx-data.in.proto | |
| Writing /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-data.proto | |
| Writing /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-data.proto3 | |
| generating /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx_data_pb.py | |
| Processing /private/tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/onnx/onnx-operators.in.proto | |
| Writing /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-operators-ml.proto | |
| Writing /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-operators-ml.proto3 | |
| generating /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx_operators_pb.py | |
| [ 6%] Running C++ protocol buffer compiler on /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-data.proto | |
| [ 7%] Running C++ protocol buffer compiler on /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-operators-ml.proto | |
| Writing mypy to onnx/onnx_operators_ml_pb2.pyi | |
| Writing mypy to onnx/onnx_data_pb2.pyi | |
| [ 7%] Built target gen_onnx_operators_proto | |
| [ 7%] Built target gen_onnx_data_proto | |
| [ 8%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-ml.pb.cc.o | |
| [ 10%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-operators-ml.pb.cc.o | |
| [ 11%] Building CXX object CMakeFiles/onnx_proto.dir/onnx/onnx-data.pb.cc.o | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4: | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:11: | |
| /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/port_def.inc:205:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer." | |
| static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer."); | |
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4: | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-ml.pb.h:11: | |
| /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/port_def.inc:205:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer." | |
| static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer."); | |
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4: | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-data.pb.h:11: | |
| /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/port_def.inc:205:1: error: static_assert failed due to requirement '201103L >= 201402L' "Protobuf only supports C++14 and newer." | |
| static_assert(PROTOBUF_CPLUSPLUS_MIN(201402L), "Protobuf only supports C++14 and newer."); | |
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.cc:4: | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-operators-ml.pb.h:24: | |
| In file included from /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/io/coded_stream.h:130: | |
| /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/stubs/common.h:44:10: fatal error: 'absl/strings/string_view.h' file not found | |
| #include "absl/strings/string_view.h" | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-ml.pb.cc:4: | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-ml.pb.h:24: | |
| In file included from /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/io/coded_stream.h:130: | |
| /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/stubs/common.h:44:10: fatal error: 'absl/strings/string_view.h' file not found | |
| #include "absl/strings/string_view.h" | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-data.pb.cc:4: | |
| In file included from /tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/.setuptools-cmake-build/onnx/onnx-data.pb.h:24: | |
| In file included from /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/io/coded_stream.h:130: | |
| /nix/store/0p8xnxq6h6jc7g7kj7dlxy3f6fgb92ag-protobuf-3.23.4/include/google/protobuf/stubs/common.h:44:10: fatal error: 'absl/strings/string_view.h' file not found | |
| #include "absl/strings/string_view.h" | |
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| 2 errors generated. | |
| 2 errors generated. | |
| make[2]: *** [CMakeFiles/onnx_proto.dir/build.make:123: CMakeFiles/onnx_proto.dir/onnx/onnx-operators-ml.pb.cc.o] Error 1 | |
| make[2]: *** Waiting for unfinished jobs.... | |
| 2 errors generated. | |
| make[2]: *** [CMakeFiles/onnx_proto.dir/build.make:137: CMakeFiles/onnx_proto.dir/onnx/onnx-data.pb.cc.o] Error 1 | |
| make[2]: *** [CMakeFiles/onnx_proto.dir/build.make:109: CMakeFiles/onnx_proto.dir/onnx/onnx-ml.pb.cc.o] Error 1 | |
| make[1]: *** [CMakeFiles/Makefile2:172: CMakeFiles/onnx_proto.dir/all] Error 2 | |
| make: *** [Makefile:136: all] Error 2 | |
| Traceback (most recent call last): | |
| File "/private/tmp/nix-build-python3.10-onnx-1.14.0.drv-0/source/nix_run_setup", line 8, in <module> | |
| exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec')) | |
| File "setup.py", line 342, in <module> | |
| setuptools.setup( | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/__init__.py", line 107, in setup | |
| return distutils.core.setup(**attrs) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup | |
| return run_commands(dist) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands | |
| dist.run_commands() | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands | |
| self.run_command(cmd) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command | |
| super().run_command(command) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command | |
| cmd_obj.run() | |
| File "/nix/store/rdn664wjvlf61zp4addm0ydy6hcwc0gk-python3.10-wheel-0.41.1/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 349, in run | |
| self.run_command("build") | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command | |
| self.distribution.run_command(command) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command | |
| super().run_command(command) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command | |
| cmd_obj.run() | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 131, in run | |
| self.run_command(cmd_name) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command | |
| self.distribution.run_command(command) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command | |
| super().run_command(command) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command | |
| cmd_obj.run() | |
| File "setup.py", line 236, in run | |
| self.run_command("cmake_build") | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command | |
| self.distribution.run_command(command) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command | |
| super().run_command(command) | |
| File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command | |
| cmd_obj.run() | |
| File "setup.py", line 230, in run | |
| subprocess.check_call(build_args) | |
| File "/nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/lib/python3.10/subprocess.py", line 369, in check_call | |
| raise CalledProcessError(retcode, cmd) | |
| subprocess.CalledProcessError: Command '['/nix/store/q17s5r4s5zbfsvqnh0dhd5vkd0ka83fl-python3.10-cmake-3.26.4/bin/cmake', '--build', '.', '--', '-j', '10']' returned non-zero exit status 2. | |
| /nix/store/d8rs8xci1ny6b21hbv2pgsa6alwab8yf-stdenv-darwin/setup: line 1605: pop_var_context: head of shell_variables not a function context | |
| error: builder for '/nix/store/g7wh1zq63h086svlz9gcahhpyraxhg6w-python3.10-onnx-1.14.0.drv' failed with exit code 1; | |
| last 10 log lines: | |
| > File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/dist.py", line 1234, in run_command | |
| > super().run_command(command) | |
| > File "/nix/store/sjw46iijzfabh7fac26703h742wg86wi-python3.10-setuptools-68.0.0/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command | |
| > cmd_obj.run() | |
| > File "setup.py", line 230, in run | |
| > subprocess.check_call(build_args) | |
| > File "/nix/store/gkyskjvlgp8s14hkxmd73hqrlhka9mqd-python3-3.10.12/lib/python3.10/subprocess.py", line 369, in check_call | |
| > raise CalledProcessError(retcode, cmd) | |
| > subprocess.CalledProcessError: Command '['/nix/store/q17s5r4s5zbfsvqnh0dhd5vkd0ka83fl-python3.10-cmake-3.26.4/bin/cmake', '--build', '.', '--', '-j', '10']' returned non-zero exit status 2. | |
| > /nix/store/d8rs8xci1ny6b21hbv2pgsa6alwab8yf-stdenv-darwin/setup: line 1605: pop_var_context: head of shell_variables not a function context | |
| For full logs, run 'nix log /nix/store/g7wh1zq63h086svlz9gcahhpyraxhg6w-python3.10-onnx-1.14.0.drv'. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment