[Buildroot] [git commit] package/python-ml-dtypes: needs C++

Peter Korsgaard peter at korsgaard.com
Wed Feb 7 11:58:13 UTC 2024


commit: https://git.buildroot.net/buildroot/commit/?id=650c2b83b515bf6941189b837d87819a901ec901
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Commit ebe47e7605c6cde295e209d80690508cfd11ba61 forgot to add C++
dependency resulting in the following build failure:

../output-1/build/python-numpy-1.25.0/meson.build:1:0: ERROR: Unable to detect GNU compiler type:

Fixes:
 - http://autobuild.buildroot.org/results/6f3532598355732b289730fc751e9aebdab4b0e4

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/python-ml-dtypes/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/python-ml-dtypes/Config.in b/package/python-ml-dtypes/Config.in
index 8791564b19..58c218b214 100644
--- a/package/python-ml-dtypes/Config.in
+++ b/package/python-ml-dtypes/Config.in
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_PYTHON_ML_DTYPES
 	bool "python-ml-dtypes"
 	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
+	depends on BR2_INSTALL_LIBSTDCPP # python-pybind, python-numpy
 	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
 	depends on BR2_HOST_GCC_AT_LEAST_9 # host-python-numpy
@@ -10,3 +11,9 @@ config BR2_PACKAGE_PYTHON_ML_DTYPES
 	  dtype extensions used in machine learning libraries.
 
 	  https://github.com/jax-ml/ml_dtypes
+
+comment "python-ml-dtypes needs a glibc or musl toolchain w/ C++, gcc >= 9"
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
+	depends on !BR2_INSTALL_LIBSTDCPP || \
+		!BR2_TOOLCHAIN_GCC_AT_LEAST_9 || \
+		!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)



More information about the buildroot mailing list