Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946330 - dev-lang/rust-1.82.0-r101 fails src_compile on ppc64
Summary: dev-lang/rust-1.82.0-r101 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
Assignee: Randy Barlow
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-12 18:52 UTC by Chris Kerr
Modified: 2024-12-12 21:00 UTC (History)
4 users (show)

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


Attachments
Log of failed build (dev-lang:rust-1.82.0-r101:20241212-061706.log.gz,178.94 KB, application/gzip)
2024-12-12 18:54 UTC, Chris Kerr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Kerr 2024-12-12 18:52:39 UTC
Got this error message in the log (will add the full log as an attachment)

/var/tmp/portage/dev-lang/rust-1.82.0-r101/work/rustc-1.82.0-src/src/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp: In function ‘llvm::Constant* {anony
mous}::ConstantFoldScalarCall1(llvm::StringRef, llvm::Intrinsic::ID, llvm::Type*, llvm::ArrayRef<llvm::Constant*>, const llvm::TargetLibraryInfo*, const llv
m::CallBase*)’:
/var/tmp/portage/dev-lang/rust-1.82.0-r101/work/rustc-1.82.0-src/src/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp:2129:34: error: invalid conversion f
rom ‘_Float128 (*)(_Float128) noexcept’ to ‘long double (*)(long double)’ [-fpermissive]
 2129 |         return ConstantFoldFP128(logf128, Op->getValueAPF(), Ty);
      |                                  ^~~~~~~
      |                                  |
      |                                  _Float128 (*)(_Float128) noexcept
/var/tmp/portage/dev-lang/rust-1.82.0-r101/work/rustc-1.82.0-src/src/llvm-project/llvm/lib/Analysis/ConstantFolding.cpp:1787:43: note:   initializing argume
nt 1 of ‘llvm::Constant* {anonymous}::ConstantFoldFP128(long double (*)(long double), const llvm::APFloat&, llvm::Type*)’
 1787 | Constant *ConstantFoldFP128(long double (*NativeFP)(long double),
      |                             ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~


Reproducible: Always

Steps to Reproduce:
emerge -u dev-lang/rust



Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/ppc64le/23.0/desktop/plasma/systemd, gcc-14, glibc-2.40-r5, 6.6.62-gentoo-ppc64le ppc64le)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.62-gentoo-ppc64le-ppc64le-POWER9,_altivec_supported-with-glibc2.40
KiB Mem:   197158804 total,  88687664 free
KiB Swap:   33554428 total,  33538812 free
Timestamp of repository gentoo: Thu, 12 Dec 2024 05:45:00 +0000
Head commit of repository gentoo: 27c0a396aec8a75ae9b24c7b5efd241e20c4f4a2
Timestamp of repository haskell: Wed, 11 Dec 2024 12:06:16 +0000
Head commit of repository haskell: d1f56ea517a8de108439908e1d4916855f8a7342

sh bash 5.2_p37
ld GNU ld (Gentoo 2.42 p6) 2.42.0
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.30.6::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.5.2::gentoo
dev-lang/perl:             5.40.0::gentoo
dev-lang/python:           2.7.18_p16-r2::gentoo, 3.11.10_p1::gentoo, 3.12.7_p1::gentoo, 3.13.1::gentoo
dev-lang/rust:             1.81.0-r100::gentoo
llvm-core/clang:           18.1.8-r6::gentoo
llvm-core/llvm:            18.1.8-r6::gentoo, 19.1.4::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/sandbox:          2.39::gentoo
sys-apps/systemd:          256.7::gentoo
sys-devel/binutils:        2.42-r2::gentoo, 2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             13.3.1_p20241025::gentoo, 14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r5::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-extra-opts: 
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

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 gimp gpm grub gtk gui iconv icu ipv6 jpeg jpeg2k kde kf6compat 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 qt6 raw readline scanner 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 navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" 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-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_13" RUBY_TARGETS="ruby32" SANE_BACKENDS="hp hp3500 hp3900 hp4200 hp5400 hp5590" 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

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

dev-lang/rust-1.81.0-r100::gentoo was built with the following:
USE="verify-sig (-big-endian) -clippy -debug -dist -doc (-llvm-libunwind) (-lto) (-miri) (-nightly) (-parallel-compiler) -rust-analyzer -rust-src -rustfmt (-system-bootstrap) (-system-llvm) -test -wasm" LLVM_SLOT="(18)" LLVM_TARGETS="AMDGPU BPF (PowerPC) -AArch64 -ARC -ARM -AVR -CSKY -DirectX -Hexagon -Lanai -LoongArch -M68k -MSP430 -Mips -NVPTX -RISCV -SPIRV -Sparc -SystemZ -VE -WebAssembly -X86 -XCore -Xtensa"
CFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
CXXFLAGS="-O2 -pipe -mcpu=power9 -mtune=power9"
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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
Comment 1 Chris Kerr 2024-12-12 18:54:51 UTC
Created attachment 913881 [details]
Log of failed build
Comment 2 Chris Kerr 2024-12-12 19:02:53 UTC
I tried again with GCC 13 (my original failure was in GCC 14) but got the same error.
Comment 3 matoro archtester 2024-12-12 21:00:05 UTC
Needs bug 940654 patches to be ported.  In the meantime, you can work around with USE=system-llvm.