Search code examples
pythoncompilationraspberry-pimeson-buildhandbrake

Handbrake meson configuring fails at "probe: numa" on the Raspberry pi 4


The configuring of Handbrake (https://github.com/HandBrake/HandBrake) on my Raspberry pi 4 with the supplied configure file fails because it doesn't find numa.

[outeh@outeh-pi HandBrake]$ ./configure 
probe: build tuple...(pass) aarch64-unknown-linux-gnu
find: ar...(pass) /usr/bin/ar
find: cp...(pass) /usr/bin/cp
find: gcc...(pass) /usr/bin/gcc
find: gmake...(pass) /usr/bin/make
find: gm4...(pass) /usr/bin/m4
find: meson...(pass) /usr/bin/meson
find: mkdir...(pass) /usr/bin/mkdir
find: ninja-build...(pass) /usr/bin/ninja
find: gpatch...(pass) /usr/bin/patch
find: rm...(pass) /usr/bin/rm
find: ranlib...(pass) /usr/bin/ranlib
find: strip...(pass) /usr/bin/strip
find: gtar...(pass) /usr/bin/tar
find: nasm...(fail) not found
find: autoconf...(pass) /usr/bin/autoconf
find: automake...(pass) /usr/bin/automake
find: cmake...(pass) /usr/bin/cmake
find: libtool...(pass) /usr/bin/libtool
find: pkg-config...(pass) /usr/bin/pkg-config
find: xcodebuild...(fail) not found
find: lipo...(fail) not found
find: python3...(pass) /usr/bin/python3
compute: available architectures...(pass) aarch64
probe: number of CPU cores...(pass) 4
probe: repo info...(pass) https://github.com/HandBrake/HandBrake.git
compute: project data...(pass) HandBrake (developer)
compute: host tuple...(pass) aarch64-unknown-linux-gnu
probe: numa...(fail) code 1
  : b'Package numa was not found in the pkg-config search path.'
  : b"Perhaps you should add the directory containing `numa.pc'"
  : b'to the PKG_CONFIG_PATH environment variable'
  : b"Package 'numa', required by 'virtual:world', not found"
  : [b'conftest.c:2:10: schwerwiegender Fehler: numa.h: Datei oder Verzeichnis nicht gefunden', b'    2 | #include <numa.h>', b'      |          ^~~~~~~~', b'Kompilierung beendet.']
ERROR: unable to continue; configure stop.

I am using the Raspberry pi 4 version of Manjaro (https://manjaro.org/download/arm/raspebery-pi-4/arm8-raspberry-pi-4-xfce/) my system is updated and I can't find numa in the repos or in the aur. Handbrake uses the meson buildsystem and all the configure script does is opening this >https://github.com/HandBrake/HandBrake/blob/master/make/configure.py< python script after checking if a python interpreter is present. Edit: echo $PKG_CONFIG_PATH returns a blank newline.


Solution

  • I was able to solve this problem on my own, by building libnuma from source. But I stil don't know why I could not find the appropriate package in the repos.