Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 866956 - sci-physics/hepmc-3.2.5:3 - /.../_multiarray_api.h: error: converting to bool from std::nullptr_t requires direct-initialization [
Summary: sci-physics/hepmc-3.2.5:3 - /.../_multiarray_api.h: error: converting to bool...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 839975
  Show dependency tree
 
Reported: 2022-08-27 10:16 UTC by Toralf Förster
Modified: 2022-08-27 10:39 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.89 KB, text/plain)
2022-08-27 10:16 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,114.35 KB, text/plain)
2022-08-27 10:16 UTC, Toralf Förster
Details
environment (environment,125.58 KB, text/plain)
2022-08-27 10:16 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,17.41 KB, application/x-bzip)
2022-08-27 10:16 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.38 KB, application/x-bzip)
2022-08-27 10:16 UTC, Toralf Förster
Details
sci-physics:hepmc-3.2.5:20220827-101236.log (sci-physics:hepmc-3.2.5:20220827-101236.log,50.43 KB, text/plain)
2022-08-27 10:16 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,33.02 KB, application/x-bzip)
2022-08-27 10:16 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-08-27 10:16:51 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2022-08-27 10:16:52 UTC
Created attachment 801457 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-08-27 10:16:53 UTC
Created attachment 801460 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-08-27 10:16:55 UTC
Created attachment 801463 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-08-27 10:16:56 UTC
Created attachment 801466 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-08-27 10:16:57 UTC
Created attachment 801469 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-08-27 10:16:58 UTC
Created attachment 801472 [details]
sci-physics:hepmc-3.2.5:20220827-101236.log
Comment 7 Toralf Förster gentoo-dev 2022-08-27 10:16:59 UTC
Created attachment 801475 [details]
temp.tar.bz2
Comment 8 APN-Pucky 2022-08-27 10:36:07 UTC
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.
Comment 9 APN-Pucky 2022-08-27 10:39:15 UTC
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