# emerge -pqv '=dev-python/scipy-1.10.1::gentoo' [ebuild N ] dev-python/scipy-1.10.1 USE="doc fortran (test-rust) -debug -test" PYTHON_TARGETS="python3_10 python3_11 -python3_9" # emerge --info '=dev-python/scipy-1.10.1::gentoo' Portage 3.0.47 (python 3.11.3-final-0, default/linux/arm64/17.0/desktop/gnome/systemd/merged-usr, gcc-13, glibc-2.37-r2, 6.3.0-gentoo-arm64 aarch64) ================================================================= System Settings ================================================================= System uname: Linux-6.3.0-gentoo-arm64-aarch64-with-glibc2.37 KiB Mem: 32817680 total, 26139128 free KiB Swap: 8388604 total, 8388604 free Timestamp of repository gentoo: Sun, 30 Apr 2023 16:30:01 +0000 Head commit of repository gentoo: 5ea54579e1ca07511b81fd648d2e8b1583ee41ee sh bash 5.2_p15-r2 ld GNU ld (Gentoo 2.40 p4) 2.40.0 ccache version 4.8 [disabled] app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p15-r2::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.1::gentoo dev-lang/python: 3.10.11::gentoo, 3.11.3::gentoo, 3.12.0_alpha7::gentoo dev-lang/rust: 1.69.0-r1::gentoo dev-util/ccache: 4.8::gentoo dev-util/cmake: 3.26.3::gentoo dev-util/meson: 1.1.0::gentoo sys-apps/baselayout: 2.13-r1::gentoo sys-apps/sandbox: 2.30-r1::gentoo sys-apps/systemd: 253.3-r1::gentoo sys-devel/autoconf: 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r4::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.2::gentoo sys-devel/gcc: 12.2.1_p20230428-r1::gentoo, 13.1.0-r1::gentoo sys-devel/gcc-config: 2.10::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/llvm: 14.0.6-r2::gentoo, 16.0.2::gentoo sys-devel/make: 4.4.1::gentoo sys-kernel/linux-headers: 6.3::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r2::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://server.kopylovs.net/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: ACCEPT_KEYWORDS="arm64 ~arm64" ACCEPT_LICENSE="* -@EULA android AnyDesk-TOS geekbench Microsoft-vscode TeamViewer Vivaldi" CBUILD="aarch64-unknown-linux-gnu" CFLAGS="-march=armv8-a+crc+lse+rcpc+rdma+dotprod+aes+fp16fml+sb+ssbs+flagm+pauth -O2 -pipe -fomit-frame-pointer" CHOST="aarch64-unknown-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/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=armv8-a+crc+lse+rcpc+rdma+dotprod+aes+fp16fml+sb+ssbs+flagm+pauth -O2 -pipe -fomit-frame-pointer" 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="-march=armv8-a+crc+lse+rcpc+rdma+dotprod+aes+fp16fml+sb+ssbs+flagm+pauth -O2 -pipe -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance 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 strict strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-march=armv8-a+crc+lse+rcpc+rdma+dotprod+aes+fp16fml+sb+ssbs+flagm+pauth -O2 -pipe -fomit-frame-pointer" GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/" LANG="en_US.utf8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="-j6" 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 aalib accessibility acl acpi activities alsa ao appindicator archive arm64 aspell audit bash-completion berkdb bidi bluetooth bluray boost branding brotli btrfs bzip2 cairo cdda cddb cdio cdr cgi cli colord contrib cron crypt cryptsetup cups curl dbi dbus designer device-mapper djvu doc dri dts dv dvb dvdr eds emacs enchant encode evdev evo examples executable exif expat experimental extra extras fam fastcgi fbcon ffmpeg fftw flac fluidsynth fontconfig fontforge fortran freetds ftp fuse gamepad games gcrypt gd gdbm gdk-pixbuf geoip geolocation gif git glade glib glusterfs gme gmp gnome gnome-keyring gnome-online-accounts gnuplot gnutls go gpg gphoto2 gpm graphite graphviz gsm gssapi gstreamer gtk gtk-doc gtk3 gui guile harfbuzz hdf5 heif highlight hscolour html http http2 ibus iconv icu idn imagemagick imap imlib introspection iodbc ipv6 jack java javascript jbig jemalloc joystick jpeg jpeg2k jpegxl json kde kerberos ladspa lame latex lcms ldap libass libcaca libevent libglvnd libnotify libsamplerate libsecret libtirpc libxml2 lmdb lua lv2 lvm lz4 lzma lzo mad magic maildir man mbedtls mbox memcached midi mmap mng modplug mp3 mp4 mpeg mplayer mtp multimedia musepack mysql nas nautilus ncurses netlink nettle network networkmanager nfs nls nptl nss ntlm odbc offensive ogg openal openexr opengl openmp openssl opus pam pango pcap pcre pdf perl phonon pkcs11 plasma plugins png policykit portaudio postgres postscript ppds pulseaudio python qdbm qml qrcode qt5 raw rdma readline redis rss samba sasl screencast sctp sdl seccomp semantic-desktop sftp share skey smp smtp snappy sndfile sndio snmp sound source sox speech speex spell sql sqlite ssh ssl startup-notification svg symlink syslog systemd taglib tbb tcl tcpd telemetry telepathy test-rust theora threads tiff tk tools tracker tremor truetype twolame udev udisks unicode unwind upnp upower usb utils uuid v4l vala vcd vim-syntax vnc vorbis vpx wavpack wayland webengine webkit webp websockets widgets wmf wxwidgets x264 x265 xattr xcb xface xft xinerama xml xmp xpm xscreensaver xv xvid yaml zeroconf zip zlib zsh-completion zstd" ADA_TARGET="gnat_2021" 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 stage" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp thumb vfp vfpv3 vfpv4 vfp-d32 aes sha1 sha2 crc32 v4 v5 v6 v7 v8 thumb2" 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" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11" RUBY_TARGETS="ruby30 ruby31 ruby32" USERLAND="GNU" VIDEO_CARDS="virgl" 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, 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
Created attachment 860979 [details] build.log
../../scipy/meson.build:74:19: ERROR: Command `/usr/bin/python3.10 -c 'import os; os.chdir(".."); import pythran; print(os.path.dirname(pythran.__file__));'` failed with status 1.
I'd ask you for /var/tmp/portage/dev-python/scipy-1.10.1/work/scipy-1.10.1/.mesonpy-vifvpee7/build/meson-logs/meson-log.txt but I don't think it exists because of a bug in the eclass.
Created attachment 860980 [details, diff] meson-python logging fix Someone else mentioned a similar issue today, and I wrote a patch to the eclass which might help. ``` A full log can be found at /var/tmp/portage/dev-python/scipy-1.10.1/work/scipy-1.10.1/.mesonpy-vifvpee7/build/meson-logs/meson-log.txt ``` This would ideally actually exist so you could post the details of it...
"A full log can be found at /var/tmp/portage/dev-python/scipy-1.10.1/work/scipy-1.10.1/.mesonpy-u69wsmxf/build/meson-logs/meson-log.txt" But file not exists
Created attachment 860981 [details] environment
(In reply to Eli Schwartz from comment #4) > Created attachment 860980 [details, diff] [details, diff] > meson-python logging fix > > Someone else mentioned a similar issue today, and I wrote a patch to the > eclass which might help. > > ``` > A full log can be found at > /var/tmp/portage/dev-python/scipy-1.10.1/work/scipy-1.10.1/.mesonpy-vifvpee7/ > build/meson-logs/meson-log.txt > ``` > > This would ideally actually exist so you could post the details of it... patch didn't worked for me
Created attachment 860982 [details] build log after patching eclass * python3_10: running distutils-r1_run_phase distutils-r1_python_compile Traceback (most recent call last): File "<stdin>", line 8, in <module> File "/usr/lib/python3.10/os.py", line 680, in __getitem__ raise KeyError(key) from None KeyError: 'BUILD_DIR'
(In reply to Andrew Udvare from comment #8) > Created attachment 860982 [details] > build log after patching eclass > > * python3_10: running distutils-r1_run_phase distutils-r1_python_compile > Traceback (most recent call last): > File "<stdin>", line 8, in <module> > File "/usr/lib/python3.10/os.py", line 680, in __getitem__ > raise KeyError(key) from None > KeyError: 'BUILD_DIR' try "WHEEL_BUILD_DIR/.." for now
Created attachment 860983 [details] meson log (after patching eclass)
Open bug report for Pythran: https://github.com/serge-sans-paille/pythran/issues/2101
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55e49f516483a9f05eb83f7bfba3f231e3c894f5 commit 55e49f516483a9f05eb83f7bfba3f231e3c894f5 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-05-01 08:03:28 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-01 08:03:28 +0000 profiles: mask =dev-python/gast-0.5.4 This breaks building dev-python/scipy. Bug: https://bugs.gentoo.org/905396 Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 4 ++++ 1 file changed, 4 insertions(+)
It's caused by this change in 0.5.4: https://github.com/serge-sans-paille/gast/compare/0.5.3...0.5.4#diff-44b67094998a7df1e5ce843b5a2faa44950f5896ac9e07ab99d09e2b24c90143R13
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=96e7f21a53c92eb4a5c4077267bb1bf1ee8accfd commit 96e7f21a53c92eb4a5c4077267bb1bf1ee8accfd Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2023-05-01 04:16:57 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-02 19:11:08 +0000 distutils-r1.eclass: ensure meson-python uses a stable build directory When not passing an explicit build directory, meson-python configures meson into a build directory that is rooted in a tempdir with a random suffix. This results in unstable paths, which currently disappear after meson-python completes (either with success or failure). It doesn't handle incremental or resumed builds, and it's very difficult to debug -- for example by inspecting the logfile that meson itself prints out when the configure stage fails. Bug: https://bugs.gentoo.org/905396 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> eclass/distutils-r1.eclass | 3 +++ 1 file changed, 3 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=71d9b18102051a5242be6160b715e8c8fe830b51 commit 71d9b18102051a5242be6160b715e8c8fe830b51 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-05-03 08:57:16 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-03 08:57:48 +0000 dev-python/pythran: add 0.13.1 Closes: https://bugs.gentoo.org/905396 Signed-off-by: Sam James <sam@gentoo.org> dev-python/pythran/Manifest | 1 + dev-python/pythran/pythran-0.13.1.ebuild | 70 ++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9741d654c9acaf7032e75c233f44f5c18ea4ddf commit b9741d654c9acaf7032e75c233f44f5c18ea4ddf Author: Sam James <sam@gentoo.org> AuthorDate: 2023-05-06 08:25:34 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-06 08:28:13 +0000 profiles: mask bad =dev-python/pythran-0.13.0 as well Bug: https://bugs.gentoo.org/905396 Signed-off-by: Sam James <sam@gentoo.org> profiles/package.mask | 1 + 1 file changed, 1 insertion(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c69ab76b61a47325e5520e5f76cfb7e76f22b57 commit 5c69ab76b61a47325e5520e5f76cfb7e76f22b57 Author: Sam James <sam@gentoo.org> AuthorDate: 2023-05-06 08:22:08 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-06 08:28:12 +0000 dev-python/pythran: add 0.12.2 Straight to stable because it just fixes the gast dep bound. Rather than revbump 0.12.1, makes more sense to use the upstream version for doing this, given it exists. Bug: https://bugs.gentoo.org/905396 Signed-off-by: Sam James <sam@gentoo.org> dev-python/pythran/Manifest | 1 + dev-python/pythran/pythran-0.12.2.ebuild | 67 ++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+)