Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 650750 - sys-libs/compiler-rt-sanitizers with sys-devel/llvm-5 - sets LLVM_MAX_SLOT=4 but depends on >=sys-devel/llvm-4
Summary: sys-libs/compiler-rt-sanitizers with sys-devel/llvm-5 - sets LLVM_MAX_SLOT=4 ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-17 20:11 UTC by William Throwe
Modified: 2018-03-23 09:36 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,313.72 KB, text/plain)
2018-03-22 11:42 UTC, Stephen Ramsay
Details

Note You need to log in before you can comment on or make changes to this bug.
Description William Throwe 2018-03-17 20:11:41 UTC
The ebuild sets LLVM_MAX_SLOT=4 (after some substitutions) but depends on >=sys-devel/llvm-4 so it bails out in pkg_setup if only llvm-5 is installed.  Later versions appear to have similar problems, but I haven't tested them.

(The attempt to build sys-libs/compiler-rt-sanitizers:4.0.1 without the corresponding llvm installed is because I'm trying to make a binpkg for another machine.)
Comment 1 Stephen Ramsay 2018-03-22 11:42:51 UTC
Created attachment 524784 [details]
build.log

Not sure why I'm getting binary characters in this file . . .
Comment 2 Stephen Ramsay 2018-03-22 11:44:06 UTC
Any movement on this?  I thought that installing llvm-4 would fix it, but it still tries to use 5.

----

Portage 2.3.24 (python 2.7.14-final-0, default/linux/amd64/17.0, gcc-7.3.0, glibc-2.25-r10, 4.9.76-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.76-gentoo-r1-x86_64-Intel-R-_Xeon-R-_CPU_X5670_@_2.93GHz-with-gentoo-2.4.1
KiB Mem:    32936096 total,  29932572 free
KiB Swap:     524284 total,    512900 free
Timestamp of repository gentoo: Thu, 22 Mar 2018 11:00:01 +0000
Head commit of repository gentoo: 6e0296de0c133a5fc994b8a1cdf21670e18b268c
sh bash 4.4_p12
ld GNU gold (Gentoo 2.29.1 p3 2.29.1) 1.14
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.4.5-r1::gentoo, 3.6.3-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.12::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            7.2.0-r1::gentoo, 7.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.15::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r10::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: no
    sync-rsync-extra-opts: 

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=native -O2 -flto=25 -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -ffat-lto-objects"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-pipe -march=native -O2 -flto=25 -floop-interchange -ftree-loop-distribution -floop-strip-mine -floop-block -ftree-vectorize -ffat-lto-objects"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://mirrors.rit.edu/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.netnitco.net ftp://gentoo.imj.fr/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -fuse-linker-plugin"
LINGUAS="en_US"
MAKEOPTS="-j25"
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="/var/tmp"
USE="a52 aac aalib acl amd64 apache2 audiofile bash-completion berkdb bzip2 cli cracklib crypt css curl curlwrappers cxx dri dv dvb dvd dvdr encode exif fastcgi ffmpeg fftw flac fontconfig fortran gd gdbm ggi gif gnuplot gnutls graphite hdf5 iconv icu ipv6 javascript jpeg jpeg2k latex libsamplerate lto mbox mng modules mp3 mp4 mpeg multilib ncurses netcdf nls nptl ofx ogg openal openexr openmp orc pam pcre pdf png posix postfix postscript quicktime radius raw readline recode sasl seccomp smp ssl svg tcpd theora threads tiff truetype tty-helpers unicode v4l vorbis vpx win32codecs wmf x264 xattr xcb xft xpm xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21 ruby22 ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

sys-libs/compiler-rt-sanitizers-5.0.1::gentoo was built with the following:
USE="-test" ABI_X86="(64)"
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-03-23 09:23:17 UTC
Oi, we have some version mixup between 'any version of LLVM in general but clang-4 for testing'. I'm going to look into this.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-03-23 09:26:44 UTC
My bad. I've confused the meaning of the variable and unified it too much. Will revert/fix in a minute.


commit ade5b255f1e8e69db29967e99da4282624334970
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: Thu Mar 15 15:58:55 2018
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: Thu Mar 15 16:01:06 2018

    sys-libs/compiler-rt: fix eclass use by LLVM_SLOT -> LLVM_MAX_SLOT
Comment 5 Larry the Git Cow gentoo-dev 2018-03-23 09:36:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0666cc02c2666d9b71559c92d3b8f0e95905cb10

commit 0666cc02c2666d9b71559c92d3b8f0e95905cb10
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-03-23 09:34:43 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-03-23 09:35:55 +0000

    sys-libs/compiler-rt-sanitizers: Fix LLVM_MAX_SLOT -> CLANG_SLOT
    
    The variable was intentionally chosen not to use the eclass, and its
    my mistake of conflating the two. Name it CLANG_SLOT to make it look
    more purposeful.
    
    Closes: https://bugs.gentoo.org/650750
    Fixes: e5afd9d0759d (sys-libs/compiler-rt-sanitizers: LLVM_SLOT -> ...)

 .../compiler-rt-sanitizers-4.0.1.ebuild            | 24 +++++++++++-----------
 .../compiler-rt-sanitizers-5.0.1.ebuild            | 24 +++++++++++-----------
 .../compiler-rt-sanitizers-6.0.0.ebuild            | 24 +++++++++++-----------
 .../compiler-rt-sanitizers-6.0.9999.ebuild         | 24 +++++++++++-----------
 .../compiler-rt-sanitizers-9999.ebuild             | 24 +++++++++++-----------
 5 files changed, 60 insertions(+), 60 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=682b9c2a05fd86ba79a916d151c3029ecb779d92

commit 682b9c2a05fd86ba79a916d151c3029ecb779d92
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2018-03-23 09:32:04 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2018-03-23 09:35:54 +0000

    sys-libs/compiler-rt: Fix LLVM_MAX_SLOT -> CLANG_SLOT
    
    The variable was intentionally chosen not to use the eclass, and its
    my mistake of conflating the two. Name it CLANG_SLOT to make it look
    more purposeful.
    
    Closes: https://bugs.gentoo.org/650750
    Fixes: ade5b255f1e8 (sys-libs/compiler-rt: fix eclass use by LLVM_SLOT...)

 sys-libs/compiler-rt/compiler-rt-4.0.1.ebuild    | 12 ++++++------
 sys-libs/compiler-rt/compiler-rt-5.0.1.ebuild    |  8 ++++----
 sys-libs/compiler-rt/compiler-rt-6.0.0.ebuild    |  8 ++++----
 sys-libs/compiler-rt/compiler-rt-6.0.9999.ebuild |  8 ++++----
 sys-libs/compiler-rt/compiler-rt-9999.ebuild     |  8 ++++----
 5 files changed, 22 insertions(+), 22 deletions(-)