Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836007 - =sys-libs/compiler-rt-14.0.0 fails to configure
Summary: =sys-libs/compiler-rt-14.0.0 fails to configure
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-25 16:49 UTC by Dan Goodliffe
Modified: 2022-06-07 00:14 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,13.63 KB, text/plain)
2022-03-25 16:49 UTC, Dan Goodliffe
Details
CMakeOutput.log (CMakeOutput.log,25.60 KB, text/plain)
2022-03-25 17:39 UTC, Dan Goodliffe
Details
CMakeError.log (CMakeError.log,44.35 KB, text/plain)
2022-03-25 17:39 UTC, Dan Goodliffe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Goodliffe 2022-03-25 16:49:04 UTC
CMake Error at cmake/config-ix.cmake:207 (message):
  Please use architecture with 4 or 8 byte pointers.
Call Stack (most recent call first):
  CMakeLists.txt:251 (include)

I'm running on 64bit Intel chips, not some exotic architecture. There's some warnings further up the output which look a bit suspect. Full log will be attached.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-libs/compiler-rt-14.0.0
Actual Results:  
-- Configuring incomplete, errors occurred!

Expected Results:  
Successful installation

Portage 3.0.30 (python 3.9.12-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-11.2.1, glibc-2.34-r10, 5.16.16 x86_64)
=================================================================
System uname: Linux-5.16.16-x86_64-Intel-R-_Core-TM-_i7-6700_CPU_@_3.40GHz-with-glibc2.34
KiB Mem:    32769148 total,  12852952 free
KiB Swap:   10485756 total,   7120616 free
Timestamp of repository gentoo: Fri, 25 Mar 2022 08:42:34 +0000
Head commit of repository gentoo: 423b873bff75cd45f516e00eba4cba4dd46ab604

sh bash 5.1_p16
ld GNU ld (Gentoo 2.38 p3) 2.38
distcc 3.4 x86_64-pc-linux-gnu [enabled]
ccache version 4.5.1 [enabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1::gentoo
dev-lang/python:           2.7.18_p15::gentoo, 3.9.12::gentoo, 3.10.4::gentoo
dev-lang/rust:             1.59.0::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.3::gentoo
dev-util/meson:            0.61.3::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          250.4::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r1::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           13.0.1::gentoo, 14.0.0::gentoo
sys-devel/gcc:             8.4.0-r2::gentoo, 10.3.1_p20211126::gentoo, 11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            13.0.1::gentoo, 14.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-git-pull-extra-opts: --depth 1000

Octal
    location: /home/dang/work/portage
    masters: gentoo

RandomLAN
    location: /home/randomdan/dev/portage
    masters: gentoo

kdab-overlay
    location: /var/lib/layman/kdab-overlay
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE linux-fw-redistributable no-source-code vim.org MSttfEULA free-noncomm CC-Sampling-Plus-1.0 PUEL FESTIVAL mysql_fdw"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=skylake -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0"
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/terminfo"
CXXFLAGS="-O3 -march=skylake -pipe"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch parallel-install 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 -pipe"
GENTOO_MIRRORS="http://portage.randomdan.homeip.net/"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -O3 -march=native -pipe"
LINGUAS="en en_GB"
MAKEOPTS="-j20 -l8"
PKGDIR="/usr/portage/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="/tmp"
SHELL="/bin/bash"
USE="X a52 acl acpi activities alsa amd64 autoshutdown autoupdate bash-completion branding bzip2 c++0x cairo caps cdda cddb cdr clang cli cryptsetup cscope css curl custom-cflags custom-optimization cxx dbus declarative device-mapper dot dri dts dv dvb dvd dvdr encode exif fam ffmpeg firmware flac fontconfig frei0r fuse gallium gcrypt gdbm gif git glib gnome-keyring gold gpm graphite graphviz grub gtk gui harfbuzz hpn http2 hwaccel iconv icu imagemagick inspector introspection ipv6 ithreads javascript jemalloc jit jpeg jpeg2k json jumbo-build kdesu kwallet lame lcms ldap libglvnd libkms libnotify libtirpc lightning llvm lm-sensors lto lvm lz4 lzma lzo mad man markdown minizip mng mp3 mp4 mpeg mpm-prefork mtp mysql ncurses network network-cron nls nohourlyupdate nptl nscd nuv odbc offensive offload ogg openexr opengl openmp opus pam pango pcre pcre-jit pcre16 pcre32 pdf perl pkcs11 plasma plymouth png policykit postgres postproc ppds python qml qt5 readline rtmp savedconfig seccomp secure-delete silc smp sndfile spell split-usr sqlite ssd ssh ssl startup-notification svg symlink syslog system-act system-av1 system-boost system-bootloader system-bootstrap system-cmark system-crontab system-ffmpeg system-harfbuzz system-heimdal system-icu system-info system-ipxe system-jpeg system-lcms system-leveldb system-libcxx system-libevent system-libs system-libvpx system-libyaml system-llvm system-lua system-lz4 system-man system-mathjax system-mesa system-mitkrb5 system-numpy system-png system-python system-qemu system-seabios system-sqlite system-ssl system-tbb system-webp system-wfconfig system-wide system-wlroots system-zlib systemd taglib theora threads thumbnail tiff truetype udev udisks unicode upower usb user-session uuid vim-pager vim-syntax vlc vorbis widevine widgets winbind wxwidgets x264 xattr xcb xinerama xml xmp xv xvfb xvid zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="macro actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core 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 socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias proxy proxy_http cache_socache cache_disk remoteip" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" 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="evdev joystick" KERNEL="linux" L10N="en en-GB" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="intel iris radeon r600" 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, LEX, LFLAGS, LIBTOOL, 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 1 Dan Goodliffe 2022-03-25 16:49:51 UTC
Created attachment 767805 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-25 16:51:47 UTC
Please include:
-- Configuring incomplete, errors occurred!
See also "/tmp/portage/sys-libs/compiler-rt-14.0.0/work/compiler-rt-14.0.0_build/CMakeFiles/CMakeOutput.log".
See also "/tmp/portage/sys-libs/compiler-rt-14.0.0/work/compiler-rt-14.0.0_build/CMakeFiles/CMakeError.log".
 * ERROR: sys-libs/compiler-rt-14.0.0::gentoo failed (configure phase):

also, try without distcc?
Comment 3 Dan Goodliffe 2022-03-25 16:52:20 UTC
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:287 (message):
  LLVM source tree not found at
  "/tmp/portage/sys-libs/compiler-rt-14.0.0/work/llvm".  You are not using
  the monorepo layout.  This configuration is DEPRECATED.
Call Stack (most recent call first):
  CMakeLists.txt:70 (load_llvm_config)


CMake Warning at cmake/Modules/CompilerRTUtils.cmake:315 (message):
  Consulting llvm-config for the LLVM source path as a fallback.  This
  behavior will be removed in the future.
Call Stack (most recent call first):
  CMakeLists.txt:70 (load_llvm_config)


-- Using LLVM source path (/dev/null) from llvm-config
CMake Warning at cmake/Modules/CompilerRTUtils.cmake:352 (message):
  llvm-config finding testingsupport failed with status 1
Call Stack (most recent call first):
  CMakeLists.txt:70 (load_llvm_config)


The path to work is correct, but there is no llvm directory in there:
~ ✔ l /tmp/portage/sys-libs/compiler-rt-14.0.0/work
total 0
drwxr-xr-x  3 portage portage  80 Mar 14 09:44 cmake/
drwxr-xr-x 11 portage portage 360 Mar 25 09:25 compiler-rt/
drwxr-xr-x  3 portage portage 140 Mar 25 09:25 compiler-rt-14.0.0_build/
drwxr-xr-x  2 portage portage  60 Mar 25 09:25 llvm-gentoo-patchset-14.0.0/

I suspect it's a series of failures stemming from that one, but that's just experience and guesswork at this point.
Comment 4 Dan Goodliffe 2022-03-25 16:55:56 UTC
Ah yes, disabling distcc does fix the problem, even though those warnings still occur. Do you still want those related CMake logs from when distcc is enabled?
Comment 5 Dan Goodliffe 2022-03-25 17:07:26 UTC
No great surprise, compiler-rt-sanitizers has exactly the same problem/solution.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-25 17:12:22 UTC
CMake warnings are usually noise, but could you upload both of those logs anyway? Id like to see the result with distcc and see what it's misfetscting.

FWIW there's a few issues with CMake and this, it's to do with it misdetecting distcc log output as compiler output IIRC. There is a bug upstream (I'll link it here later) about it.
Comment 7 Dan Goodliffe 2022-03-25 17:39:23 UTC
Created attachment 767811 [details]
CMakeOutput.log
Comment 8 Dan Goodliffe 2022-03-25 17:39:38 UTC
Created attachment 767812 [details]
CMakeError.log
Comment 9 Dan Goodliffe 2022-03-25 17:49:53 UTC
Oh this problem is obvious when you figure it out.

All the llvm/clang tools attempt to update in one go... so it gets through a lot of them and then borks at compiler-rt. The problem is that distccd isn't configured with with clang-14 in its list of executable commands. Add the v14 binaries and the whole problem goes away.
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-03-25 20:54:00 UTC
testingsupport warnings are normal and not be worried about.

Do you have any further problems or is everything good now?
Comment 11 Dan Goodliffe 2022-03-25 21:10:10 UTC
It's all good now thanks... sorry for the distraction. It'd be nice if that problem stuck out in a slightly more obvious way mind.
Comment 12 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-03-25 21:17:31 UTC
Just to be clear, am I guessing right that the failure is because distcc is emitting some warnings that are confusing CMake checks?
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-26 01:31:21 UTC
(In reply to Michał Górny from comment #12)
> Just to be clear, am I guessing right that the failure is because distcc is
> emitting some warnings that are confusing CMake checks?

yes, it's https://gitlab.kitware.com/cmake/cmake/-/issues/22573 I think
Comment 14 Tom Gillespie 2022-06-06 23:41:46 UTC
The fact that this still happens despite the cmake patch that gentoo provides for this in tree (as discussed in https://bugs.gentoo.org/691544) suggests that something else is going on here.
Comment 15 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-06-07 00:14:55 UTC
(In reply to Tom Gillespie from comment #14)
> The fact that this still happens despite the cmake patch that gentoo
> provides for this in tree (as discussed in https://bugs.gentoo.org/691544)
> suggests that something else is going on here.

As far as I'm aware, it's just that there's more areas where the checks fail with distcc. I don't think it's anything deeper.