Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] host-python-numpy - confused about host openblas dependency
@ 2024-01-29 19:54 Graeme Smecher
  2024-01-29 20:22 ` Yann E. MORIN
  0 siblings, 1 reply; 6+ messages in thread
From: Graeme Smecher @ 2024-01-29 19:54 UTC (permalink / raw)
  To: buildroot

Hi all,

Several packages depend on host-python-numpy:

	buildroot$ grep host-python-numpy -rl package/
	package/python-pythran/python-pythran.mk
	package/python-matplotlib/python-matplotlib.mk
	package/python-matplotlib/Config.in
	package/piglit/piglit.mk
	package/piglit/Config.in
	package/gnuradio/gnuradio.mk
	package/gnuradio/Config.in
	package/python-scipy/python-scipy.mk
	package/python-scipy/Config.in
	package/uhd/uhd.mk
	package/uhd/Config.in

However, this package appears to rely on a host-openblas dependency that's implied but never really spelled out.

My builds fail as follows:

	buldroot$ make
	>>> host-python-numpy 1.25.0 Configuring
	rm -rf /path/to/buildroot/output/build/host-python-numpy-1.25.0//build
	mkdir -p /path/to/buildroot/output/build/host-python-numpy-1.25.0//build
	GIT_DIR=. PATH="/path/to/buildroot/output/host/bin:/path/to/buildroot/output/host/sbin:/home/gsmecher/.local/bin:/home/gsmecher/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin" PKG_CONFIG="/path/to/buildroot/output/host/bin/pkg-config" PKG_CONFIG_SYSROOT_DIR="/" PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 PKG_CONFIG_ALLOW_SYSTEM_LIBS=1 PKG_CONFIG_LIBDIR="/path/to/buildroot/output/host/lib/pkgconfig:/path/to/buildroot/output/host/share/pkgconfig" AR="/usr/bin/ar" AS="/usr/bin/as" LD="/usr/bin/ld" NM="/usr/bin/nm" CC="/usr/bin/gcc" GCC="/usr/bin/gcc" CXX="/usr/bin/g++" CPP="/usr/bin/cpp" OBJCOPY="/usr/bin/objcopy" RANLIB="/usr/bin/ranlib" CPPFLAGS="-I/path/to/buildroot/output/host/include" CFLAGS="-O2 -I/path/to/buildroot/output/host/include" CXXFLAGS="-O2 -I/path/to/buildroot/output/host/include" LDFLAGS="-L/path/to/buildroot/output/host/lib -Wl,-rpath,/path/to/buildroot/output/host/lib" INTLTOOL_PERL=/usr/bin/perl  PYTHONNOUSERSITE=y /path/to/buildroot/output/host/bin/me
 son setup --prefix=/path/to/buildroot/output/host --libdir=lib --sysconfdir=/path/to/buildroot/output/host/etc --localstatedir=/path/to/buildroot/output/host/var --default-library=shared --buildtype=release --wrap-mode=nodownload -Dstrip=true  /path/to/buildroot/output/build/host-python-numpy-1.25.0/ /path/to/buildroot/output/build/host-python-numpy-1.25.0//build
	The Meson build system
	Version: 1.1.1
	Source dir: /path/to/buildroot/output/build/host-python-numpy-1.25.0
	Build dir: /path/to/buildroot/output/build/host-python-numpy-1.25.0/build
	Build type: native build
	Project name: NumPy
	Project version: 1.24.0.dev0
	C compiler for the host machine: /usr/bin/gcc (gcc 12.2.0 "gcc (Debian 12.2.0-14) 12.2.0")
	C linker for the host machine: /usr/bin/gcc ld.bfd 2.40
	C++ compiler for the host machine: /usr/bin/g++ (gcc 12.2.0 "g++ (Debian 12.2.0-14) 12.2.0")
	C++ linker for the host machine: /usr/bin/g++ ld.bfd 2.40
	Cython compiler for the host machine: cython (cython 0.29.36)
	Host machine cpu family: x86_64
	Host machine cpu: x86_64
	Program python3 found: YES (/path/to/buildroot/output/host/bin/python3)
	Found pkg-config: /path/to/buildroot/output/host/bin/pkg-config (1.6.3)
	Has header "Python.h" with dependency python-3.11: YES
	Compiler for C supports arguments -fno-strict-aliasing: YES
	Library m found: YES
	Found CMake: /path/to/buildroot/output/host/bin/cmake (3.27.7)
	WARNING: CMake Toolchain: Failed to determine CMake compilers state
	WARNING: CMake Toolchain: Failed to determine CMake compilers state
	Run-time dependency openblas found: NO (tried pkgconfig and cmake)
	WARNING: CMake Toolchain: Failed to determine CMake compilers state
	Run-time dependency openblas found: YES 0.3.21
	Dependency openblas found: YES 0.3.21 (cached)
	Program _build_utils/process_src_template.py found: YES (/path/to/buildroot/output/host/bin/python3 /path/to/buildroot/output/build/host-python-numpy-1.25.0/numpy/_build_utils/process_src_template.py)
	Program _build_utils/tempita.py found: YES (/path/to/buildroot/output/build/host-python-numpy-1.25.0/numpy/_build_utils/tempita.py)

	output/build/host-python-numpy-1.25.0/numpy/meson.build:201:44: ERROR: Could not get cmake variable and no default provided for <CMakeDependency OpenBLAS: True None>

	A full log can be found at /path/to/buildroot/output/build/host-python-numpy-1.25.0/build/meson-logs/meson-log.txt
	make: *** [package/pkg-generic.mk:273: /path/to/buildroot/output/build/host-python-numpy-1.25.0/.stamp_configured] Error 1

Any suggestions? There are enough packages depending on host-numpy that I expect it's something unusual on my end. If I force the build to proceed using system pkg-config I can coax it into proceeding - but this is clearly a hack.

thanks,
Graeme
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-29 15:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-29 19:54 [Buildroot] host-python-numpy - confused about host openblas dependency Graeme Smecher
2024-01-29 20:22 ` Yann E. MORIN
2024-01-29 20:40   ` [Buildroot] [PATCH] host-python-numpy: correct implied host-lapack/host-blas dependency gsmecher
2024-01-29 20:58     ` Yann E. MORIN
2024-02-05 18:04     ` Yann E. MORIN
2024-02-29 15:38       ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox