Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 794187 - dev-python/numpy: builds with SSE2 support on CPUs with no support (RuntimeError: NumPy was built with baseline optimizations: (SSE SSE2) but your machine doesn't support: (SSE2).)
Summary: dev-python/numpy: builds with SSE2 support on CPUs with no support (RuntimeEr...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-04 16:45 UTC by subtractum
Modified: 2021-06-05 05:36 UTC (History)
4 users (show)

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


Attachments
sci-libs/gdal build log (build.log.xz,33.02 KB, application/x-xz)
2021-06-04 16:47 UTC, subtractum
Details

Note You need to log in before you can comment on or make changes to this bug.
Description subtractum 2021-06-04 16:45:32 UTC
Following an update from 1.19.5 to 1.20.2, dev-python/numpy compiles with SSE2 support regardless of whether the CPU supports it.


Reproducible: Always

Steps to Reproduce:
1. emerge >=dev-python/numpy-1.20.2
2. emerge sci-libs/gdal
3. emerge of sci-libs/gdal fails
Actual Results:  
 * python3_9: running distutils-r1_run_phase distutils-r1_python_compile
python3.9 setup.py build -j 2
Traceback (most recent call last):
  File "/var/tmp/portage/sci-libs/gdal-3.2.2/work/gdal-3.2.2/swig/python/setup.py", line 84, in <module>
    import numpy
  File "/usr/lib/python3.9/site-packages/numpy/__init__.py", line 145, in <module>
    from . import core
  File "/usr/lib/python3.9/site-packages/numpy/core/__init__.py", line 22, in <module>
    from . import multiarray
  File "/usr/lib/python3.9/site-packages/numpy/core/multiarray.py", line 12, in <module>
    from . import overrides
  File "/usr/lib/python3.9/site-packages/numpy/core/overrides.py", line 7, in <module>
    from numpy.core._multiarray_umath import (
RuntimeError: NumPy was built with baseline optimizations:
(SSE SSE2) but your machine doesn't support:
(SSE2).
 * ERROR: sci-libs/gdal-3.2.2::gentoo failed (compile phase):


Expected Results:  
A successful emerge of sci-libs/gdal

May be related to https://bugs.gentoo.org/788184
Comment 1 subtractum 2021-06-04 16:47:33 UTC
Created attachment 713646 [details]
sci-libs/gdal build log


Portage 3.0.18 (python 3.9.4-final-0, default/linux/x86/17.0, gcc-10.2.0, glibc-2.32-r7, 4.14.52-gentoo i686)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.14.52-gentoo-i686-Pentium_III_-Coppermine-with-glibc2.32
KiB Mem:     1028048 total,     38184 free
KiB Swap:    2097148 total,   1576700 free
Timestamp of repository gentoo: Fri, 04 Jun 2021 08:30:01 +0000
Head commit of repository gentoo: a409af1c9f35f60551e2b5024c09902c6e707e52
sh bash 5.1_p8
ld GNU ld (Gentoo 2.34 p6) 2.34.0
app-shells/bash:          5.1_p8::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.32.1::gentoo
dev-lang/python:          2.7.18_p9::gentoo, 3.8.9_p2::gentoo, 3.9.4_p1::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.23::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.14.1-r1::gentoo, 1.15.1-r2::gentoo, 1.16.3-r1::gentoo
sys-devel/binutils:       2.34-r2::gentoo, 2.35.2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

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

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

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="@FREE"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME 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 -march=i686 -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="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="http://gentoo.phaseburn.net/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="a52 aac acl apache2 avi bcmath berkdb bzip2 calendar cdr cgi cli crypt ctype curl dba divx4linux dri dvd dvdr encode exif expat faac faad ffmpeg fortran ftp gd gdbm gif gpm iconv imagemagick imap ipv6 javascript jpeg lcms libglvnd libtirpc mad maildir mmx mmxext mng mozilla mp3 mpeg mysql mysqli ncurses nls nptl ogg openmp pam pcntl pcre pdf pdo perl php png python quicktime readline samba seccomp session snmp sockets sodium spell split-usr sse ssl svg tcpd theora tiff tokenizer truetype unicode usb vhosts vorbis vpx wddx win32codecs wmf x264 x86 xattr xml xmlreader xmlrpc xmlwriter xsl xslt xvid zip zlib" ABI_X86="32" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="access_compat auth_basic auth_digest authn_file authn_dbm authn_anon authn_core authz_core authz_groupfile authz_host alias file_cache charset_lite cache disk_cache mem_cache ext_filter filter deflate mime_magic cern_meta expires headers usertrack unique_id proxy proxy_connect proxy_ftp proxy_http info include dav dav_fs vhost_alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir actions userdir cgi unixd socache_shmcb" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse" 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" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3 php7-3" POSTGRES_TARGETS="postgres12" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="trident vga" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

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

sci-libs/gdal-3.2.2::gentoo was built with the following:
USE="aux-xml curl gif jpeg mysql pdf perl png python spatialite sqlite -armadillo -debug (-doc) -fits -geos -gml -hdf5 -java -jpeg2k -lzma (-mdb) -netcdf -odbc -ogdi -opencl -oracle -postgres -threads -webp -xls -zstd" CPU_FLAGS_X86="sse -avx -ssse3" PYTHON_TARGETS="python3_7 python3_8 -python3_9"
Comment 2 subtractum 2021-06-04 16:50:51 UTC
dev-python/numpy-1.20.2-r1::gentoo was built with the following:
USE="-doc -lapack -test" PYTHON_TARGETS="python3_9 -python3_8"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -fno-strict-aliasing"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -fno-strict-aliasing"
FEATURES="pid-sandbox sandbox binpkg-docompress userfetch usersandbox ipc-sandbox news fixlafiles userpriv unmerge-logs unknown-features-warn strict parallel-fetch network-sandbox usersync qa-unresolved-soname-deps config-protect-if-modified merge-sync assume-digests sfperms ebuild-locks binpkg-dostrip protect-owned unmerge-orphans multilib-strict binpkg-logs distlocks preserve-libs xattr"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -shared"