too long lines were shrinked: In file included from /usr/include/python3.10/Python.h:36, from /var/tmp/portage/sci-physics/hepmc-3.2.5/work/HepMC3-3.2.5/examples/ConvertExample/include/ReaderuprootTree.h:12, from /var/tmp/portage/sci-physics/hepmc-3.2.5/work/HepMC3-3.2.5/examples/ConvertExample/src/ReaderuprootTree.cc:1: /var/tmp/portage/sci-physics/hepmc-3.2.5/work/HepMC3-3.2.5/examples/ConvertExample/src/ReaderuprootTree.cc: In member function 'bool HepMC3::ReaderuprootTree::init(const std::string&)': /usr/lib/python3.10/site-packages/numpy/core/include/numpy/__multiarray_api.h:1545:151: error: converting to 'bool' from 'std::nullptr_t' requires direct-initialization [-fpermissive] 1545 | #define import_array() {if (_import_array() < 0) {PyErr_Print(); PyErr_SetString(PyExc_ImportError, "numpy.core.multiarray failed to import"); return NULL; } } | ^~~~ ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-j4-20220826-151457 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-12.2.0 * clang/llvm (if any): clang version 14.0.6 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/14/bin /usr/lib/llvm/14 14.0.6 Python 3.10.6 Available Ruby profiles: (none found) Available Rust versions: [1] rust-1.62.1 * The following VMs are available for generation-2: *) OpenJDK 17.0.3_p7 [openjdk-17] Available Java Virtual Machines: [1] openjdk-17 system-vm php cli: HEAD of ::gentoo commit ccc6d29699036aa9990108798f76be17cf37e450 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Aug 27 09:31:46 2022 +0000 2022-08-27 09:31:46 UTC emerge -qpvO sci-physics/hepmc [ebuild N ] sci-physics/hepmc-3.2.5 USE="examples -doc -python -root -test" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9"
Created attachment 801457 [details] emerge-info.txt
Created attachment 801460 [details] emerge-history.txt
Created attachment 801463 [details] environment
Created attachment 801466 [details] etc.portage.tar.bz2
Created attachment 801469 [details] logs.tar.bz2
Created attachment 801472 [details] sci-physics:hepmc-3.2.5:20220827-101236.log
Created attachment 801475 [details] temp.tar.bz2
The corresponding numpy 1.23.2 does not have the return NULL in import_array: https://github.com/numpy/numpy/blob/v1.23.2/numpy/core/include/numpy/oldnumeric.h Therefore I guess this is indeed musl related.
Nevermind, the latest numpy api has it here: https://github.com/numpy/numpy/blob/v1.23.2/numpy/core/code_generators/generate_numpy_api.py