Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917050 - dev-python/numpy-1.26.1 fails src_compile on ppc64
Summary: dev-python/numpy-1.26.1 fails src_compile on ppc64
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-08 21:47 UTC by Chris Kerr
Modified: 2024-03-28 20:35 UTC (History)
3 users (show)

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


Attachments
Log of failed build (dev-python:numpy-1.26.1:20231108-203906.log,21.80 KB, text/x-log)
2023-11-08 21:47 UTC, Chris Kerr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kerr 2023-11-08 21:47:34 UTC
Created attachment 874337 [details]
Log of failed build

Something about half-precision floats (maybe these are not supported on ppc64)


In file included from ../numpy-1.26.1/numpy/core/src/common/common.hpp:10,
                 from ../numpy-1.26.1/numpy/core/src/npymath/halffloat.cpp:12:
../numpy-1.26.1/numpy/core/src/common/half.hpp: In member function ‘np::Half::operator double() const’:
../numpy-1.26.1/numpy/core/src/common/half.hpp:116:38: error: ‘vf32’ was not declared in this scope
  116 |                              : "=wa"(vf32)
      |                                      ^~~~
Comment 1 Chris Kerr 2023-11-08 21:48:18 UTC
emerge --info '=dev-python/numpy-1.26.1::gentoo'
Portage 3.0.51 (python 3.11.5-final-0, default/linux/ppc64le/17.0/desktop/plasma/systemd/merged-usr, gcc-13, glibc-2.37-r7, 6.1.57-gentoo-ppc64le ppc64le)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.1.57-gentoo-ppc64le-ppc64le-POWER9,_altivec_supported-with-glibc2.37
KiB Mem:   197164976 total,   7944480 free
KiB Swap:   33554428 total,  28990460 free
Timestamp of repository gentoo: Wed, 08 Nov 2023 17:45:01 +0000
Head commit of repository gentoo: 8bded3a225d9ad11ac6772160e310c4698e4a04e
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.40 p5) 2.40.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-lang/perl:             5.38.0-r1::gentoo
dev-lang/python:           2.7.18_p16-r1::gentoo, 3.11.5::gentoo, 3.12.0::gentoo
dev-lang/rust:             1.71.1::gentoo
dev-util/cmake:            3.27.7::gentoo
dev-util/meson:            1.2.1-r1::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          254.5::gentoo
sys-devel/autoconf:        2.13-r7::gentoo, 2.71-r6::gentoo
sys-devel/automake:        1.16.5-r1::gentoo
sys-devel/binutils:        2.40-r5::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/gcc:             12.3.1_p20230825::gentoo, 13.2.1_p20230826::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/libtool:         2.4.7-r1::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-devel/make:            4.4.1-r1::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="@FREE"
CBUILD="powerpc64le-unknown-linux-gnu"
CFLAGS="-Og -pipe -mcpu=power9 -mtune=power9 -g -ggdb"
CHOST="powerpc64le-unknown-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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-Og -pipe -mcpu=power9 -mtune=power9 -g -ggdb"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-Og -pipe -mcpu=power9 -mtune=power9 -g -ggdb"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-Og -pipe -mcpu=power9 -mtune=power9 -g -ggdb"
GENTOO_MIRRORS="     https://mirrors.dotsrc.org/gentoo/     https://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ "
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="--jobs=24 --load-average=32"
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"
SHELL="/bin/bash"
USE="X a52 aac acl activities alsa bash-completion branding brotli bzip2 cairo caps cdda cdr cli crypt cryptsetup cups dbus declarative device-mapper dri dts dvd dvdr encode exif firewalld flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg jpeg2k kde kwallet lcms libnotify lto lvm lz4 lzma lzo mad mng mp3 mp4 mpeg ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppc64 ppds pulseaudio qml qt5 readline screencast sdl seccomp semantic-desktop smartcard sound spell ssl startup-notification svg systemd test-rust tiff truetype udev udisks unicode upower usb vaapi verify-sig vorbis vulkan wayland webp widgets wxwidgets x264 xattr xcb xft xml xv xvid zlib zram zstd" ADA_TARGET="gnat_2021" AMDGPU_TARGETS="gfx1012" 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_PPC="altivec vsx vsx2 vsx3" 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" L10N="en en-GB eo et" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF PowerPC" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon ast fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 2 Chris Kerr 2024-03-28 20:35:21 UTC
numpy 1.26.2 builds on ppc64 with no problems. I didn't use FEATURES=test but I ran the tests afterwards with `import numpy; numpy.test()`. It gives one failure on `TestRealScalars.test_ppc64_ibm_double_double128` -- looking at the error, this seems to be linked to the switch to ieee-long-double format. (I am on the 23.0 profile.)