[Mlir-commits] [mlir] [mlir][Python] create MLIRPythonSupport (PR #171775)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Dec 12 22:15:05 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 7228 tests passed
* 597 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### MLIR
<details>
<summary>MLIR.Examples/standalone/test.toy</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
"/usr/bin/cmake" "/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone" -G "Ninja"  -DCMAKE_BUILD_TYPE=Release  -DCMAKE_CXX_COMPILER=/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/llvm/bin/clang  -DLLVM_ENABLE_LIBCXX=OFF -DMLIR_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/cmake/mlir  -DLLVM_USE_LINKER=lld  -DMLIR_PYTHON_PACKAGE_PREFIX=mlir_standalone  -DPython3_EXECUTABLE="/usr/bin/python3"  -DPython_EXECUTABLE="/usr/bin/python3"
# executed command: /usr/bin/cmake /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=/opt/llvm/bin/clang++ -DCMAKE_C_COMPILER=/opt/llvm/bin/clang -DLLVM_ENABLE_LIBCXX=OFF -DMLIR_DIR=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/cmake/mlir -DLLVM_USE_LINKER=lld -DMLIR_PYTHON_PACKAGE_PREFIX=mlir_standalone -DPython3_EXECUTABLE=/usr/bin/python3 -DPython_EXECUTABLE=/usr/bin/python3
# .---command stdout------------
# | -- The CXX compiler identification is Clang 21.1.3
# | -- The C compiler identification is Clang 21.1.3
# | -- Detecting CXX compiler ABI info
# | -- Detecting CXX compiler ABI info - done
# | -- Check for working CXX compiler: /opt/llvm/bin/clang++ - skipped
# | -- Detecting CXX compile features
# | -- Detecting CXX compile features - done
# | -- Detecting C compiler ABI info
# | -- Detecting C compiler ABI info - done
# | -- Check for working C compiler: /opt/llvm/bin/clang - skipped
# | -- Detecting C compile features
# | -- Detecting C compile features - done
# | -- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")  
# | -- Using MLIRConfig.cmake in: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/cmake/mlir
# | -- Using LLVMConfig.cmake in: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/cmake/llvm
# | -- Linker detection: LLD
# | -- Performing Test LLVM_LIBSTDCXX_MIN
# | -- Performing Test LLVM_LIBSTDCXX_MIN - Success
# | -- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR
# | -- Performing Test LLVM_LIBSTDCXX_SOFT_ERROR - Success
# | -- Performing Test LLVM_USES_LIBSTDCXX
# | -- Performing Test LLVM_USES_LIBSTDCXX - Success
# | -- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI
# | -- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI - Success
# | -- Performing Test CXX_SUPPORTS_CUSTOM_LINKER
# | -- Performing Test CXX_SUPPORTS_CUSTOM_LINKER - Success
# | -- Performing Test C_SUPPORTS_FPIC
# | -- Performing Test C_SUPPORTS_FPIC - Success
# | -- Performing Test CXX_SUPPORTS_FPIC
# | -- Performing Test CXX_SUPPORTS_FPIC - Success
# | -- Building with -fPIC
# | -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
# | -- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
# | -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
# | -- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
# | -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
# | -- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
# | -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG
# | -- Performing Test CXX_SUPPORTS_SUGGEST_OVERRIDE_FLAG - Success
# | -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL
# | -- Performing Test CXX_WSUGGEST_OVERRIDE_ALLOWS_ONLY_FINAL - Success
# | -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP
# | -- Performing Test C_WCOMMENT_ALLOWS_LINE_WRAP - Success
# | -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG
# | -- Performing Test C_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
# | -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG
# | -- Performing Test CXX_SUPPORTS_MISLEADING_INDENTATION_FLAG - Success
# | -- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
# | -- Performing Test C_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
# | -- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG
# | -- Performing Test CXX_SUPPORTS_CTAD_MAYBE_UNSPPORTED_FLAG - Success
# | -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
# | -- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Success
# | -- Looking for os_signpost_interval_begin
# | -- Looking for os_signpost_interval_begin - not found
# | -- Looking for flock
# | -- Looking for flock - found
# | -- Found Python3: /usr/bin/python3 (found version "3.12.3") found components: Interpreter Development.Module 
# | -- Found Python: /usr/bin/python3 (found version "3.12.3") found components: Interpreter Development.Module 
# | -- Found python include dirs: /usr/include/python3.12
# | -- Found python libraries: 
# | -- Found numpy v: 
# | -- Checking for pybind11 in python path...
# | -- found (/home/gha/.local/lib/python3.12/site-packages/pybind11/share/cmake/pybind11)
# | -- Performing Test HAS_FLTO_THIN
# | -- Performing Test HAS_FLTO_THIN - Success
# | -- Found pybind11: /home/gha/.local/lib/python3.12/site-packages/pybind11/include (found version "2.13.6")
# | -- Found pybind11 v2.13.6: /home/gha/.local/lib/python3.12/site-packages/pybind11/include
# | -- Python prefix = '', suffix = '', extension = '.cpython-312-x86_64-linux-gnu.so
# | -- Checking for nanobind in python path...
# | -- found (/home/gha/.local/lib/python3.12/site-packages/nanobind/cmake)
# | -- Found nanobind v2.9.2: /home/gha/.local/lib/python3.12/site-packages/nanobind/include
# | -- Python prefix = '', suffix = '', extension = '.cpython-312-x86_64-linux-gnu.so
# | -- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS
# | -- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS - Success
# | -- Enabling Python API
# | -- Found python include dirs: /usr/include/python3.12
# | -- Found python libraries: 
# | -- Found numpy v: 
# | -- Using explicit pybind11 cmake directory: /home/gha/.local/lib/python3.12/site-packages/pybind11/share/cmake/pybind11 (-Dpybind11_DIR to change)
# | -- Found pybind11 v2.13.6: /home/gha/.local/lib/python3.12/site-packages/pybind11/include
# | -- Python prefix = '', suffix = '', extension = '.cpython-312-x86_64-linux-gnu.so
# | -- Using explicit nanobind cmake directory: /home/gha/.local/lib/python3.12/site-packages/nanobind/cmake (-Dnanobind_DIR to change)
# | -- Found nanobind v2.9.2: /home/gha/.local/lib/python3.12/site-packages/nanobind/include
# | -- Python prefix = '', suffix = '', extension = '.cpython-312-x86_64-linux-gnu.so
# | -- Configuring done (5.9s)
# | -- Generating done (0.0s)
# | -- Build files have been written to: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone
# `-----------------------------
# RUN: at line 9
"/usr/bin/cmake" --build . --target check-standalone | tee /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/Output/test.toy.tmp
# executed command: /usr/bin/cmake --build . --target check-standalone
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: tee /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/Output/test.toy.tmp
# .---command stdout------------
# | [1/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone/python/mlir_standalone/_mlir_libs/_standaloneDialectsNanobind/py.typed -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/_mlir_libs/_standaloneDialectsNanobind/py.typed
# | [2/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone/python/mlir_standalone/dialects/standalone_pybind11.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/standalone_pybind11.py
# | [3/65] Building StandalonePasses.h.inc...
# | [4/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/_mlir_libs/__init__.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/_mlir_libs/__init__.py
# | [5/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/examples/standalone/python/mlir_standalone/dialects/standalone_nanobind.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/standalone_nanobind.py
# | [6/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/_mlir_libs/_mlir/py.typed -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/_mlir_libs/_mlir/py.typed
# | [7/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/extras/meta.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/extras/meta.py
# | [8/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/dialects/_ods_common.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/_ods_common.py
# | [9/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/ir.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/ir.py
# | [10/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/passmanager.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/passmanager.py
# | [11/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/rewrite.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/rewrite.py
# | [12/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/dialects/builtin.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/builtin.py
# | [13/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/python/dialects/_builtin_ops_gen.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/_builtin_ops_gen.py
# | [14/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/python/mlir/extras/types.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/extras/types.py
# | [15/65] Building StandaloneOpsTypes.cpp.inc...
# | [16/65] Building StandaloneOpsDialect.h.inc...
# | [17/65] Building StandaloneOps.h.inc...
# | [18/65] Building StandaloneOpsDialect.cpp.inc...
# | [19/65] Building StandaloneOps.cpp.inc...
# | [20/65] Building dialects/_standalone_ops_gen.py...
# | [21/65] Building StandaloneOpsTypes.h.inc...
# | [22/65] Copying python source /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python/dialects/_standalone_ops_gen.py -> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/test/Examples/standalone/python_packages/standalone/mlir_standalone/dialects/_standalone_ops_gen.py
# | [23/65] Building C object test/CAPI/CMakeFiles/standalone-capi-test.dir/standalone-capi-test.c.o
# | [24/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_ft.cpp.o
# | [25/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/implicit.cpp.o
# | [26/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_static_property.cpp.o
# | [27/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/trampoline.cpp.o
# | [28/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/error.cpp.o
# | [29/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_ndarray.cpp.o
# | [30/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_internals.cpp.o
# | [31/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._standaloneDialectsNanobind.dso.dir/StandaloneExtensionNanobind.cpp.o
# | [32/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_func.cpp.o
# | [33/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/common.cpp.o
# | [34/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_enum.cpp.o
# | [35/65] Building CXX object python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_type.cpp.o
# | [36/65] Linking CXX shared library python/libnanobind.so
# | FAILED: python/libnanobind.so 
# | : && /opt/llvm/bin/clang++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -flto=thin  -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,-s -shared -Wl,-soname,libnanobind.so -o python/libnanobind.so python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_internals.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_func.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_type.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_enum.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_ndarray.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_static_property.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/nb_ft.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/common.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/error.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/trampoline.cpp.o python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/implicit.cpp.o -L/home/gha/actions-runner/_work/llvm-project/llvm-project/build/./lib  && :
# | ld.lld: error: undefined symbol: PyLong_Type
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::nb_func_traverse(_object*, int (*)(_object*, void*), void*))
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::nb_func_clear(_object*))
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::nb_func_dealloc(_object*))
# | >>> referenced 38 more times
# | 
# | ld.lld: error: undefined symbol: PyBool_Type
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::nb_func_traverse(_object*, int (*)(_object*, void*), void*))
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::nb_func_clear(_object*))
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::nb_func_dealloc(_object*))
# | >>> referenced 13 more times
# | 
# | ld.lld: error: undefined symbol: _PyObject_New
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_new_int(_typeobject*, _object*, _object*))
# | >>> referenced by nb_ndarray.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_ndarray.cpp.o:(nanobind::detail::ndarray_export(nanobind::detail::ndarray_handle*, int, nanobind::rv_policy, nanobind::detail::cleanup_list*))
# | 
# | ld.lld: error: undefined symbol: PyType_GenericAlloc
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_new_int(_typeobject*, _object*, _object*))
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_new_ext(_typeobject*, void*))
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::nb_func_new(void const*))
# | 
# | ld.lld: error: undefined symbol: PyExc_MemoryError
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::default_exception_translator(std::__exception_ptr::exception_ptr const&, void*))
# | 
# | ld.lld: error: undefined symbol: PyErr_SetString
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::default_exception_translator(std::__exception_ptr::exception_ptr const&, void*))
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::default_exception_translator(std::__exception_ptr::exception_ptr const&, void*))
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::default_exception_translator(std::__exception_ptr::exception_ptr const&, void*))
# | >>> referenced 13 more times
# | 
# | ld.lld: error: undefined symbol: PyUnicode_FromString
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::init(char const*))
# | >>> referenced 26 more times
# | 
# | ld.lld: error: undefined symbol: PyGILState_Check
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced 202 more times
# | 
# | ld.lld: error: undefined symbol: PyObject_Malloc
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_new_ext(_typeobject*, void*))
# | 
# | ld.lld: error: undefined symbol: PyObject_Init
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_new_ext(_typeobject*, void*))
# | 
# | ld.lld: error: undefined symbol: PyObject_Realloc
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_new_ext(_typeobject*, void*))
# | 
# | ld.lld: error: undefined symbol: PyObject_Free
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_new_ext(_typeobject*, void*))
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_dealloc(_object*))
# | >>> referenced by nb_ndarray.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_ndarray.cpp.o:(nanobind::detail::nb_ndarray_dealloc(_object*))
# | 
# | ld.lld: error: undefined symbol: PyErr_NoMemory
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::inst_new_ext(_typeobject*, void*))
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::nb_bound_method_vectorcall(_object*, _object* const*, unsigned long, _object*))
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::nb_type_vectorcall(_object*, _object* const*, unsigned long, _object*))
# | 
# | ld.lld: error: undefined symbol: PyMem_Malloc
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::nb_type_c2p(nanobind::detail::nb_internals*, std::type_info const*))
# | >>> referenced by common.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.common.cpp.o:(nanobind::detail::create_exception(nanobind::exception_type, char const*, __va_list_tag*) (.llvm.17661296935938576707))
# | >>> referenced by nb_ndarray.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_ndarray.cpp.o:(nanobind::detail::ndarray_import(_object*, nanobind::detail::ndarray_config const*, bool, nanobind::detail::cleanup_list*))
# | >>> referenced 20 more times
# | 
# | ld.lld: error: undefined symbol: PyProperty_Type
# | >>> referenced by nb_static_property.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_static_property.cpp.o:(nanobind::detail::nb_static_property_tp())
# | >>> referenced by nb_static_property.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_static_property.cpp.o:(nanobind::detail::nb_static_property_descr_get(_object*, _object*, _object*) (.llvm.15922690383583700574))
# | >>> referenced by nb_static_property.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_static_property.cpp.o:(nanobind::detail::nb_static_property_descr_set(_object*, _object*, _object*) (.llvm.15922690383583700574))
# | >>> referenced 2 more times
# | 
# | ld.lld: error: undefined symbol: PyModule_Type
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::nb_type_new(nanobind::detail::type_init_data const*))
# | >>> referenced 5 more times
# | 
# | ld.lld: error: undefined symbol: PyExc_ValueError
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::default_exception_translator(std::__exception_ptr::exception_ptr const&, void*))
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::default_exception_translator(std::__exception_ptr::exception_ptr const&, void*))
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::default_exception_translator(std::__exception_ptr::exception_ptr const&, void*))
# | >>> referenced 3 more times
# | 
# | ld.lld: error: undefined symbol: PyType_IsSubtype
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced by nb_type.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_type.cpp.o:(nanobind::detail::nb_type_new(nanobind::detail::type_init_data const*))
# | >>> referenced by error.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.error.cpp.o:(nanobind::detail::exception_new(_object*, char const*, _object*))
# | >>> referenced 16 more times
# | 
# | ld.lld: error: undefined symbol: PyImport_ImportModule
# | >>> referenced by nb_enum.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_enum.cpp.o:(nanobind::detail::enum_create(nanobind::detail::enum_init_data*))
# | >>> referenced by common.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.common.cpp.o:(nanobind::detail::module_import(char const*))
# | >>> referenced by nb_ndarray.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_ndarray.cpp.o:(nanobind::detail::ndarray_import(_object*, nanobind::detail::ndarray_config const*, bool, nanobind::detail::cleanup_list*))
# | >>> referenced 4 more times
# | 
# | ld.lld: error: undefined symbol: PyExc_IndexError
# | >>> referenced by nb_internals.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_internals.cpp.o:(nanobind::detail::default_exception_translator(std::__exception_ptr::exception_ptr const&, void*))
# | >>> referenced by nb_func.cpp
# | >>>               python/CMakeFiles/nanobind.dir/home/gha/.local/lib/python3.12/site-packages/nanobind/src/libnanobind.so.lto.nb_func.cpp.o:(nanobind::detail::set_builtin_exception_status(nanobind::builtin_exception&))
# | 
# | ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
# | clang++: error: linker command failed with exit code 1 (use -v to see invocation)
# | [37/65] Building CXX object standalone-translate/CMakeFiles/standalone-translate.dir/standalone-translate.cpp.o
# | [38/65] Building CXX object lib/Standalone/CMakeFiles/obj.MLIRStandalone.dir/StandaloneTypes.cpp.o
# | [39/65] Building CXX object standalone-plugin/CMakeFiles/StandalonePlugin.dir/standalone-plugin.cpp.o
# | [40/65] Building CXX object lib/Standalone/CMakeFiles/obj.MLIRStandalone.dir/StandaloneOps.cpp.o
# | [41/65] Building CXX object lib/CAPI/CMakeFiles/obj.StandaloneCAPI.dir/Dialects.cpp.o
# | [42/65] Building CXX object lib/Standalone/CMakeFiles/obj.MLIRStandalone.dir/StandaloneDialect.cpp.o
# | [43/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Rewrite.cpp.o
# | [44/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/Pass.cpp.o
# | [45/65] Building CXX object lib/Standalone/CMakeFiles/obj.MLIRStandalone.dir/StandalonePasses.cpp.o
# | [46/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRInterfaces.cpp.o
# | [47/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._standaloneDialectsPybind11.dso.dir/StandaloneExtensionPybind11.cpp.o
# | [48/65] Building CXX object standalone-opt/CMakeFiles/standalone-opt.dir/standalone-opt.cpp.o
# | [49/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAffine.cpp.o
# | [50/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRTypes.cpp.o
# | [51/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/IRAttributes.cpp.o
# | [52/65] Building CXX object python/CMakeFiles/StandalonePythonModules.extension._mlir.dso.dir/home/gha/actions-runner/_work/llvm-project/llvm-project/mlir/lib/Bindings/Python/MainModule.cpp.o
# | ninja: build stopped: subcommand failed.
# `-----------------------------

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/171775


More information about the Mlir-commits mailing list