> sysdeps/powerpc/fpu/fenv_libc.h:196:5: error: impossible constraint in ‘asm’ Searching for the error message, I found this upstream patch which looks like it might solve the problem (but I haven't tried it yet). https://patchwork.sourceware.org/project/glibc/patch/20240507122016.2645778-1-adhemerval.zanella@linaro.org/ Reproducible: Always Portage 3.0.63 (python 3.12.3-final-0, default/linux/ppc64le/23.0/desktop/plasma/systemd, gcc-13, glibc-2.38-r13, 6.1.81-gentoo-ppc64le ppc64le) ================================================================= System uname: Linux-6.1.81-gentoo-ppc64le-ppc64le-POWER9,_altivec_supported-with-glibc2.38 KiB Mem: 197164728 total, 122800932 free KiB Swap: 33554428 total, 33544444 free Timestamp of repository gentoo: Sun, 19 May 2024 18:45:00 +0000 Head commit of repository gentoo: 77d83b7b520a11b91b7331201015f0f4288f9102 Timestamp of repository haskell: Mon, 13 May 2024 13:33:41 +0000 Head commit of repository haskell: 5445343b184d5b408d81b4ed688c79bff0e0e3af sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.41 p5) 2.41.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.28.5::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.4.0-r1::gentoo dev-lang/perl: 5.38.2-r3::gentoo dev-lang/python: 2.7.18_p16-r2::gentoo, 3.11.9::gentoo, 3.12.3::gentoo dev-lang/rust: 1.77.1::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/sandbox: 2.38::gentoo sys-apps/systemd: 255.4::gentoo sys-devel/binutils: 2.41-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 16.0.6::gentoo, 17.0.6::gentoo sys-devel/gcc: 13.2.1_p20240210::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/llvm: 16.0.6::gentoo, 17.0.6::gentoo sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.38-r13::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-extra-opts: sync-rsync-verify-max-age: 24 sync-rsync-verify-metamanifest: yes haskell location: /var/db/repos/haskell sync-type: git sync-uri: https://github.com/gentoo-mirror/haskell.git masters: gentoo volatile: False 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 merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted 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 bluetooth branding brotli bzip2 cairo caps cdda cdr crypt cryptsetup cups dbus declarative device-mapper dri dts dvd dvdr encode exif firewalld flac gdbm gif gpm grub gtk gui iconv icu ipv6 jpeg jpeg2k kde kwallet lcms libnotify lto lvm lz4 lzma lzo mad mng mp3 mp4 mpeg ncurses networkmanager nls ogg opengl openmp pam pango pcre pdf pipewire plasma png policykit ppc64 ppds pulseaudio qml qt5 raw 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="gcc_12" AMDGPU_TARGETS="gfx1012" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio 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 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB eo et" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" 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_12" PYTHON_TARGETS="python3_11 python3_12" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon ast fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Created attachment 893457 [details] Log of failed build
Let us know if it helps, thanks!
Created attachment 893693 [details] Log of build+test with patch With the patch from the link above, it builds successfully but fails some of the tests (mostly scientific functions under math/): FAIL: elf/check-localplt UNSUPPORTED: elf/tst-decorate-maps UNSUPPORTED: elf/tst-env-setuid UNSUPPORTED: elf/tst-env-setuid-static UNSUPPORTED: elf/tst-env-setuid-tunables XPASS: elf/tst-protected1a XPASS: elf/tst-protected1b UNSUPPORTED: elf/tst-valgrind-smoke FAIL: intl/tst-gettext FAIL: math/test-double-erfc FAIL: math/test-double-j1 FAIL: math/test-double-jn FAIL: math/test-double-lgamma FAIL: math/test-double-log1p FAIL: math/test-double-y0 FAIL: math/test-double-y1 FAIL: math/test-float-atan2 FAIL: math/test-float-cacos FAIL: math/test-float-carg FAIL: math/test-float-casin FAIL: math/test-float-casinh FAIL: math/test-float-ctanh FAIL: math/test-float-erfc FAIL: math/test-float-lgamma FAIL: math/test-float-y0 FAIL: math/test-float-y1 FAIL: math/test-float128-erf FAIL: math/test-float32-atan2 FAIL: math/test-float32-cacos FAIL: math/test-float32-carg FAIL: math/test-float32-casin FAIL: math/test-float32-casinh FAIL: math/test-float32-ctanh FAIL: math/test-float32-erfc FAIL: math/test-float32-lgamma FAIL: math/test-float32-y0 FAIL: math/test-float32-y1 FAIL: math/test-float32x-erfc FAIL: math/test-float32x-j1 FAIL: math/test-float32x-jn FAIL: math/test-float32x-lgamma FAIL: math/test-float32x-log1p FAIL: math/test-float32x-y0 FAIL: math/test-float32x-y1 FAIL: math/test-float64-erfc FAIL: math/test-float64-j1 FAIL: math/test-float64-jn FAIL: math/test-float64-lgamma FAIL: math/test-float64-log1p FAIL: math/test-float64-y0 FAIL: math/test-float64-y1 FAIL: math/test-float64x-erf FAIL: math/test-ibm128-atan2 FAIL: math/test-ibm128-cacos FAIL: math/test-ibm128-cacosh FAIL: math/test-ibm128-catan FAIL: math/test-ibm128-catanh FAIL: math/test-ldouble-erf UNSUPPORTED: misc/tst-adjtimex UNSUPPORTED: misc/tst-clock_adjtime UNSUPPORTED: misc/tst-ntp_adjtime UNSUPPORTED: misc/tst-pkey XPASS: nptl/tst-sched1 UNSUPPORTED: posix/tst-spawn-cgroup UNSUPPORTED: stdlib/tst-secure-getenv XPASS: string/tst-strerror XPASS: string/tst-strsignal XPASS: support/tst-support_descriptors UNSUPPORTED: time/tst-clock_settime UNSUPPORTED: time/tst-settimeofday
I checked the previous version of glibc (2.38-r13) with FEATURES=test to see what had changed. It also fails, but with fewer errors: UNSUPPORTED: elf/tst-env-setuid UNSUPPORTED: elf/tst-env-setuid-tunables XPASS: elf/tst-protected1a XPASS: elf/tst-protected1b FAIL: intl/tst-gettext UNSUPPORTED: math/test-fesetexcept-traps UNSUPPORTED: math/test-fexcept-traps UNSUPPORTED: misc/tst-adjtimex UNSUPPORTED: misc/tst-clock_adjtime UNSUPPORTED: misc/tst-ntp_adjtime UNSUPPORTED: misc/tst-pkey XPASS: nptl/tst-sched1 FAIL: nss/tst-nss-gai-hv2-canonname UNSUPPORTED: stdlib/tst-secure-getenv XPASS: string/tst-strerror XPASS: string/tst-strsignal XPASS: support/tst-support_descriptors UNSUPPORTED: time/tst-clock_settime UNSUPPORTED: time/tst-settimeofday Summary of test results: 2 FAIL 4943 PASS 11 UNSUPPORTED 17 XFAIL 6 XPASS
I tried compiling the upstream git tree with that patch at the HEAD (ae515ba530be76d6627740ddc33a3a63f8c7e4f9) and it passes tests (with the exception of the intl/gettext test which I guess is because I was running from a terminal with odd LC_* settings). So the math tests failing are probably because of some previous patch being omitted.
I tried reproducing the build with the upstream git tree and failed; clearly there is something I do not understand either about the glibc ebuild or about the upstream build system.