Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 733830 - dev-libs/boost-1.73.0 USE=numpy with dev-python/numpy-1.19.1 - In file included from ?: /usr/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:650:9: error: ‘npy_hash_t’ does not name a type; did you mean ‘npy_half’?
Summary: dev-libs/boost-1.73.0 USE=numpy with dev-python/numpy-1.19.1 - In file includ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: David Seifert
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 739024
  Show dependency tree
 
Reported: 2020-07-25 05:14 UTC by rnddim
Modified: 2021-07-10 09:40 UTC (History)
8 users (show)

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


Attachments
Boost build.log (build.log,499.54 KB, text/x-log)
2020-08-19 03:54 UTC, Adrian
Details
emerge --info '=dev-libs/boost-1.74.0::gentoo' (file_733830.txt,6.89 KB, text/plain)
2020-08-19 03:56 UTC, Adrian
Details
emerge -pqv '=dev-libs/boost-1.74.0::gentoo' (file_733830.txt,2.95 KB, text/plain)
2020-08-19 03:57 UTC, Adrian
Details
build.log boost-1.74.0 (build.log.bz2,25.08 KB, application/x-bzip)
2020-08-21 08:06 UTC, Artemii
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rnddim 2020-07-25 05:14:43 UTC
Trying to build boost with numpy support fails due to errors such as these:

/usr/lib/python3.7/site-packages/numpy/core/include/numpy/npy_common.h:372:9: error: ‘Py_hash_t’ does not name a type

/usr/lib/python3.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:650:9: error: ‘npy_hash_t’ does not name a type; did you mean ‘npy_half’?

For the record I have numpy-1.19.1 installed. Perhaps 1.19.1 (or 1.19 in general) introduced API-breaking changes?

Reproducible: Always

Steps to Reproduce:
1. Have numpy-1.19.1 installed
2. Try to install boost-1.73.0 with USE="numpy"



emerge --info =dev-libs/boost-1.73.0::gentoo :
Portage 3.0.0 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.3.0, glibc-2.31-r6, 5.7.10-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.7.10-gentoo-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-gentoo-2.7
KiB Mem:     8137128 total,   3649092 free
KiB Swap:   15999996 total,  15133396 free
Timestamp of repository gentoo: Fri, 24 Jul 2020 01:00:01 +0000
Head commit of repository gentoo: 7eaca2a700b2c2958cf72024b3dc82315a1f735f
Timestamp of repository kde: Tue, 21 Jul 2020 19:11:41 +0000
Head commit of repository kde: 6d7ad672c6e178c27c1b97cad0807f50d92ae70b

Timestamp of repository qt: Sat, 04 Jul 2020 07:44:25 +0000
Head commit of repository qt: 366808328d62e1c8ac048d5982cb05ae8c4e732a

sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo, 3.9.0_beta5::gentoo
dev-util/cmake:           3.18.0::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo, 2.34-r1::gentoo
sys-devel/gcc:            9.3.0-r1::gentoo, 10.1.0-r2::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r6::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

kde
    location: /var/db/repos/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo

qt
    location: /var/db/repos/qt
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/qt.git
    masters: gentoo

testbed
    location: /var/db/repos/testbed
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr emboss encode exif flac fortran gdbm gif gpm gtk iconv icu ipv6 jpeg kde kipi kwallet lcms ldap libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg systemd tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-libs/boost-1.73.0::gentoo was built with the following:
USE="bzip2 icu nls threads zlib -context -debug -doc -lzma -mpi -numpy -python -static-libs -tools -zstd" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_7 -python3_6 -python3_8"
CXXFLAGS="-march=native -O2 -pipe -std=c++14"

emerge -pqv =dev-libs/boost-1.73.0::gentoo :
[ebuild   R   ] dev-libs/boost-1.73.0  USE="bzip2 icu nls numpy* python* threads zlib -context -debug -doc -lzma -mpi -static-libs -tools -zstd" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_7 -python3_6 -python3_8"
Comment 1 Todd Walter 2020-07-29 19:17:15 UTC
I just hit this as well.

In file included from /usr/lib/python3.8/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
                 from /usr/lib/python3.8/site-packages/numpy/core/include/numpy/arrayobject.h:4,                                                                                                               from ./boost/python/numpy/internal.hpp:29,
                 from libs/python/src/numpy/matrix.cpp:8:                                                                                                                                     /usr/lib/python3.8/site-packages/numpy/core/include/numpy/ndarraytypes.h:650:9: error: 'npy_hash_t' does not name a type; did you mean 'npy_half'?
  650 |         npy_hash_t hash;

Boost 1.73 with numpy had worked (v.1.16.5) prior on this PC.  I'll try rolling back to 1.18.5 and see how it goes.
Comment 2 Todd Walter 2020-07-29 19:27:22 UTC
Rolling back to 1.18.5 results in a successful compilation of Boost 1.73
Comment 3 Jeroen Roovers (RETIRED) gentoo-dev 2020-07-30 12:28:55 UTC
Please attach the entire build log to this bug report.
Comment 4 Adrian 2020-08-18 05:44:13 UTC
This bug also occurs with boost 1.72 when compiling with python 3.8 and numpy-1.19+. Downgrading to numpy-1.18.5 or python3.7 compiles successfully.
Comment 5 David Seifert gentoo-dev 2020-08-18 09:00:49 UTC
(In reply to Adrian from comment #4)
> This bug also occurs with boost 1.72 when compiling with python 3.8 and
> numpy-1.19+. Downgrading to numpy-1.18.5 or python3.7 compiles successfully.

please try the new boost
Comment 6 Adrian 2020-08-19 03:52:46 UTC
The same error still occurs with boost 1.74.0 with numpy 1.19.0. See the attached bug report
Comment 7 Adrian 2020-08-19 03:54:20 UTC
Created attachment 655438 [details]
Boost build.log
Comment 8 Adrian 2020-08-19 03:56:13 UTC
Created attachment 655440 [details]
emerge --info '=dev-libs/boost-1.74.0::gentoo'
Comment 9 Adrian 2020-08-19 03:57:15 UTC
Created attachment 655442 [details]
emerge -pqv '=dev-libs/boost-1.74.0::gentoo'
Comment 10 Artemii 2020-08-21 08:03:59 UTC
I have same problem with boost-1.74.0 numpy-1.19.1

emerge --info
Portage 3.0.4 (python 3.7.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32, 5.8.1-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.8.1-gentoo-x86_64-x86_64-AMD_FX-tm-8120_Eight-Core_Processor-with-gentoo-2.7
KiB Mem:    16306012 total,   3549404 free
KiB Swap:     525308 total,    284924 free
Timestamp of repository gentoo: Thu, 20 Aug 2020 20:00:01 +0000
Head commit of repository gentoo: 97c387cb934a074679b908182ced21da1f344a8a
sh bash 5.0_p18
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3-r1::gentoo
dev-lang/python:          2.7.18-r1::gentoo, 3.6.11-r2::gentoo, 3.7.8-r2::gentoo, 3.8.5::gentoo, 3.9.0_rc1::gentoo
dev-util/cmake:           3.18.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.20::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34-r2::gentoo
sys-devel/gcc:            10.2.0::gentoo
sys-devel/gcc-config:     2.3.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.8::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 Oracle-BCLA-JavaSE Intel-SDP"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver1 -mtune=bdver1 -mfpmath=sse -ftree-vectorize -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=bdver1 -mtune=bdver1 -mfpmath=sse -ftree-vectorize -fomit-frame-pointer"
DISTDIR="/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-O2 -Wl,--hash-style=gnu -Wl,--enable-new-dtags -Wl,--sort-common -Wl,-z,now"
LINGUAS="ru en"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi activities alsa amd64 apache2 avahi berkdb bitmap-fonts bluetooth bluray boost branding browserplugin bzip2 c++0x cairo cdda cdr cli crypt cups dbus declarative dirac djvu dri dts dvb dvd dvdr egl elogind emboss encode exif ffmpeg fftw flac fortran freetype freetype2 gdbm gfortran gif gnutls gost gphoto2 gpm gtk iconv icu idn ieee1394 ipv6 jack java jpeg jpeg2k kde kipi kwallet ladspa latex lcms ldap libglvnd libnotify libtirpc lm_sensors logrotate lzma mad midi mmap mng mozilla mp3 mp4 mpeg mtp multilib ncurses nls nptl nptlonly ogg openal openexr opengl openmp pam pango pcre pdf phonon pic plasma png policykit postgres postresql ppds pulseaudio python python3 qml qt qt5 readline sdl seccomp semantic-desktop shroedinger slang speex spell split-usr sqlite3 ssl startup-notification svg tcpd theora thread threads tiff truetype truetype-fonts type1-fonts udev udisks unicode upower usb utf8 v4l vaapi vorbis vpx vulkan wayland widgets wxwidgets x264 xattr xcb xml xrandr xv xvid xvmc xz zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" CAMERAS="canon fuji template ptp2 directory" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 coreboot" INPUT_DEVICES="evdev" KERNEL="linux" L10N="ru en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-3" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="amdgpu vesa virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 11 Artemii 2020-08-21 08:06:40 UTC
Created attachment 655866 [details]
build.log boost-1.74.0
Comment 12 Christian Becke 2020-09-17 12:56:41 UTC
I also ran into this. The failing command is (commands are similar in the other attached build logs):
   "x86_64-pc-linux-gnu-g++"   -fvisibility-inlines-hidden -march=sandybridge -O2 -pipe -std=c++14 -fPIC -m64 -pthread -finline-functions -Wno-inline -Wall -fvisibility=hidden  -DBOOST_ALL
_NO_LIB=1 -DBOOST_NUMPY_SOURCE -DNDEBUG  -I"." -I"/usr/include/python2.7" -I"/usr/lib/python3.7/site-packages/numpy/core/include" -c -o "bin.v2/libs/python/build/gcc-10.2/gentoorelease/pch-
off/python-2.7/threading-multi/visibility-hidden/numpy/ndarray.o" "libs/python/src/numpy/ndarray.cpp"

I think the problem is that boost is building for python2.7, but picks up numpy installed for python3.7, see -I"/usr/include/python2.7" and -I"/usr/lib/python3.7/site-packages/numpy/core/include". If I rerun the command with the correct numpy include path for numpy-python2, it completes without error. Unfortunately, I failed to find where the numpy include path is defined in the boost build system, so I can't test if it would compile successfully with the correct numpy include path.
Comment 13 Paul Preney 2020-09-19 18:33:36 UTC
(In reply to Christian Becke from comment #12)
> I also ran into this. 

I also ran in to this issue. My "fix" was to ensure PYTHON_TARGETS and PYTHON_SINGLE_TARGET for dev-libs/boost did NOT have Python 2.7 support enabled. (I don't need 2.7 myself --but others might need it.), e.g.,

    =dev-libs/boost-1.74.0 PYTHON_TARGETS: -python2_7
    =dev-libs/boost-1.74.0 PYTHON_SINGLE_TARGET: -python2_7

and then Boost v1.74.0 compiles and installs.
Comment 14 Larry the Git Cow gentoo-dev 2020-10-09 16:58:11 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1fe9fc1dbf278cc2a7ec2371262be9ced55e8691

commit 1fe9fc1dbf278cc2a7ec2371262be9ced55e8691
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2020-10-09 08:45:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-09 08:47:49 +0000

    profiles/base/package.use.stable.mask: mask media-gfx/openvdb[python, numpy]
    
    Pulls in dev-libs/boost[python, numpy] which isn't fully working atm.
    
    Bug: https://bugs.gentoo.org/733830
    Bug: https://bugs.gentoo.org/746740
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/base/package.use.stable.mask | 5 +++++
 1 file changed, 5 insertions(+)
Comment 15 Larry the Git Cow gentoo-dev 2021-05-24 21:38:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d42a91c016480f85370bd84093a33f5c3cde2f

commit 59d42a91c016480f85370bd84093a33f5c3cde2f
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-05-24 19:55:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-24 21:38:38 +0000

    dev-libs/boost: Fix for numpy include
    
    Closes: https://bugs.gentoo.org/733830
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: David Seifert <soap@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/20971
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/boost/boost-1.76.0-r1.ebuild             |  3 ++-
 dev-libs/boost/files/boost-1.76-boost-numpy.patch | 23 +++++++++++++++++++++++
 2 files changed, 25 insertions(+), 1 deletion(-)

Additionally, it has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2cd8437b2d737dac6f635faa9cce85980557fe0c

commit 2cd8437b2d737dac6f635faa9cce85980557fe0c
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2021-05-24 19:55:23 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-05-24 21:38:37 +0000

    dev-util/boost-build: Fix for numpy include
    
    Bug: https://bugs.gentoo.org/733830
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: David Seifert <soap@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 ...76.0-r1.ebuild => boost-build-1.76.0-r2.ebuild} |  1 +
 .../files/boost-build-1.76.0-python-numpy.patch    | 24 ++++++++++++++++++++++
 2 files changed, 25 insertions(+)
Comment 16 Larry the Git Cow gentoo-dev 2021-07-10 09:40:57 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9b118da965fe1b6c755714e5461a9197a5e0226

commit f9b118da965fe1b6c755714e5461a9197a5e0226
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-07-10 09:40:32 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2021-07-10 09:40:32 +0000

    profiles/base: drop obsolete boost[numpy] masks
    
    Fixes have landed upstream and are backported in Gentoo.
    
    Closes: https://github.com/gentoo/gentoo/pull/21575
    Bug: https://bugs.gentoo.org/733830
    Bug: https://bugs.gentoo.org/746740
    Bug: https://bugs.gentoo.org/753566
    Signed-off-by: Sam James <sam@gentoo.org>
    Signed-off-by: David Seifert <soap@gentoo.org>

 profiles/base/package.use.stable.mask | 11 -----------
 1 file changed, 11 deletions(-)