Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 642762 - sys-libs/libcap-2.25 gcc hardcode, ignored CC=clang
Summary: sys-libs/libcap-2.25 gcc hardcode, ignored CC=clang
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on: 630282
Blocks:
  Show dependency tree
 
Reported: 2017-12-30 21:34 UTC by Bjorn Pagen
Modified: 2018-01-02 02:04 UTC (History)
1 user (show)

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


Attachments
A build log (build.log,4.36 KB, text/x-log)
2017-12-30 21:34 UTC, Bjorn Pagen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bjorn Pagen 2017-12-30 21:34:12 UTC
Created attachment 512098 [details]
A build log

The make process for sys-libs/libcap-2.25 eventually calls gcc, which is hardcoded into the makefile. I am experimenting with a gcc-less system, where clang is the native compiler.
Comment 1 Felix Janda 2017-12-31 10:26:16 UTC
Please post also your emerge --info.

As a work around you can try setting also "BUILD_CC=clang".

As far as I understand, this is really a bug in toolchain-funcs.eclass.
When unset, BUILD_CC is supposed to be the same as CC.
Comment 2 Bjorn Pagen 2017-12-31 15:44:20 UTC
partridge /usr/local/hack # emerge --info
!!! No gcc found. You probably need to 'source /etc/profile'
!!! to update the environment of this terminal and possibly
!!! other terminals also.
Portage 2.3.19 (python 3.5.4-final-0, default/linux/musl/amd64, [unavailable], musl-1.1.18, 4.14.9-ck x86_64)
=================================================================
System uname: Linux-4.14.9-ck-x86_64-Intel-R-_Core-TM-_i7-6560U_CPU_@_2.20GHz-with-gentoo-2.4.1
KiB Mem:    16267708 total,   8320376 free
KiB Swap:          0 total,         0 free
Head commit of repository gentoo: f522a8795f66568a380377cabf46f726ca7b3507

Head commit of repository libressl: a381c149425239cb95e111c96e54baddc0b61e02

Head commit of repository musl: dfe00c6f1303354d45a20175c606e91b31e6e635

sh bash 4.4_p12
ld LLD 5.0.1 (compatible with GNU linkers)
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.26.1-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.4-r1::gentoo
dev-util/cmake:           3.10.1::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::musl
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.15.1-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.14::musl (virtual/os-headers)
sys-libs/musl:            1.1.18::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo
    priority: -1000

libressl
    location: /usr/local/portage/libressl
    sync-type: git
    sync-uri: https://github.com/gentoo/libressl
    masters: gentoo
    priority: 400

musl
    location: /usr/local/portage/musl
    sync-type: git
    sync-uri: https://github.com/gentoo/musl
    masters: gentoo
    priority: 500

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-linux-musl"
CC="clang"
CFLAGS="-O3 -pipe -flto"
CHOST="x86_64-gentoo-linux-musl"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/sandbox.d /etc/terminfo"
CXX="clang++"
CXXFLAGS="-O3 -pipe -flto"
DISTDIR="/usr/portage/distfiles"
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 strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
INSTALL_MASK="charset.alias"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
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="amd64 cli cracklib crypt cxx default-compiler-rt default-libcxx dri fortran iconv ipv6 libcxx libcxxabi libressl modules ncurses nls nptl openmp pam pcre readline seccomp session ssl tcpd unicode xattr zlib" ABI_X86="64" 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="mmx mmxext sse sse2" ELIBC="musl" 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" 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 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="dummy fbdev 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Mike Gilbert gentoo-dev 2018-01-02 02:04:51 UTC
This was fixed in toolchain-funcs.eclass.