Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 598517 - dev-java/icedtea-3.1.0 cannot be configured with distcc
Summary: dev-java/icedtea-3.1.0 cannot be configured with distcc
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-30 10:51 UTC by Xavier Miller (RETIRED)
Modified: 2024-03-29 14:37 UTC (History)
9 users (show)

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


Attachments
build log (build.log,84.30 KB, text/x-log)
2016-10-30 10:51 UTC, Xavier Miller (RETIRED)
Details
config.log (config.log,74.76 KB, text/x-log)
2016-10-30 10:51 UTC, Xavier Miller (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier Miller (RETIRED) gentoo-dev 2016-10-30 10:51:09 UTC
Created attachment 451917 [details]
build log

checking for gcc... /usr/lib64/distcc/bin/gcc
configure: Resolving CC (as /usr/lib64/distcc/bin/gcc) failed, using /usr/lib64/distcc/bin/gcc directly.
checking resolved symbolic links for CC... /usr/lib64/distcc/bin/x86_64-gentoo-linux-gnu-wrapper
configure: The C compiler (located as /usr/lib64/distcc/bin/gcc) does not seem to be the recommended GCC compiler.
configure: The result from running with --version was: "x86_64-gentoo-linux-gnu-gcc (Gentoo 5.4.0 p1.0, pie-0.6.5) 5.4.0"
configure: The C compiler (located as /usr/lib64/distcc/bin/gcc) does not seem to be the Clang compiler either.
configure: The result from running with --version was: "x86_64-gentoo-linux-gnu-gcc (Gentoo 5.4.0 p1.0, pie-0.6.5) 5.4.0"
configure: error: GCC or Clang compiler is required. Try setting --with-tools-dir.
configure exiting with result code 1
Comment 1 Xavier Miller (RETIRED) gentoo-dev 2016-10-30 10:51:33 UTC
Created attachment 451919 [details]
config.log
Comment 2 Xavier Miller (RETIRED) gentoo-dev 2016-10-30 10:52:05 UTC
# emerge --info
Portage 2.3.2 (python 2.7.12-final-0, default/linux/amd64/13.0/no-multilib, gcc-5.4.0, glibc-2.23-r2, 4.8.5-gentoo x86_64)
=================================================================
System uname: Linux-4.8.5-gentoo-x86_64-Intel-R-_Celeron-R-_2957U_@_1.40GHz-with-gentoo-2.3
KiB Mem:     3967676 total,   1626048 free
KiB Swap:    2097148 total,   2096352 free
Timestamp of repository gentoo: Sat, 29 Oct 2016 18:30:01 +0000
sh bash 4.4-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-gentoo-linux-gnu [enabled]
app-shells/bash:          4.4-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.6.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.2::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage/overlay
    masters: gentoo proaudio gentoo-kodi-overlay
    priority: 0

gentoo-kodi-overlay
    location: /usr/local/portage/gentoo-kodi-overlay
    masters: gentoo
    priority: 1

proaudio
    location: /var/lib/layman/proaudio
    masters: gentoo
    priority: 50

xmw
    location: /var/lib/layman/xmw
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE as-is freedist"
CBUILD="x86_64-gentoo-linux-gnu"
CFLAGS="-march=core2 -mcx16 -msahf -mpclmul -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2 -fomit-frame-pointer -O2"
CHOST="x86_64-gentoo-linux-gnu"
CONFIG_PROTECT="/etc /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/php/apache2-php7.0/ext-active/ /etc/php/cgi-php7.0/ext-active/ /etc/php/cli-php7.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -mcx16 -msahf -mpclmul -mpopcnt -msse4.2 --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=256 -mtune=core2 -fomit-frame-pointer -O2"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build=n --buildpkg"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync 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="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j5 -l2"
PKGDIR="/var/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="3dnow 3dnowext X a52 aac acpi alsa amd64 apng branding bzip2 cairo cdda cddb cdio cli consolekit cracklib crypt cryptsetup css cups cxx dbus djvu dlna dri dts dvb dvd exif faac flac fontconfig fpx gif gpm gtk gudev iconv jbig jpeg jpeg2k lcms libcanberra libnotify libsamplerate lirc lzma mad matroska mmx mmxext mng modules mp3 mpeg natspec ncurses nls nptl ocr ogg openexr opengl openmp opus osc pam pango pcre pdf png policykit postscript qt5 raw readline samba sane scanner sdl seccomp session sna sndfile snmp spell sqli sqlite sse sse2 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd te theora threads tiff truetype udev udisks unicode upnp upower usb uxa vaapi vdpau vdr vorbis webp wmf x264 xattr xcb xinerama xml xosd xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio virmidi" 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" DVB_CARDS="usb-af9015" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="fr fr_BE fr_FR nl nl_BE" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fr fr_BE fr_FR nl nl_BE" LIRC_DEVICES="ftdi" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby23" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, USE_PYTHON
Comment 3 Maciej S. Szmigiero 2021-04-07 13:07:11 UTC
This is because openjdk/common/autoconf/toolchain.m4:TOOLCHAIN_EXTRACT_COMPILER_VERSION expects "gcc --version" output to satisfy "^(gcc|g\+\+|distcc)" regex, which it does when called directly:
> $ gcc --version
> gcc (Gentoo Hardened 10.2.0-r5 p6) 10.2.0

...but it does not when called via distcc:
$ distcc gcc --version
x86_64-pc-linux-gnu-gcc (Gentoo Hardened 10.2.0-r5 p6) 10.2.0

Same goes with "g++ --version".

The fix is simple: patch that file to use "^((([^ ]*-)?(gcc|g\+\+))|distcc)" regex instead, and then either regenerate openjdk/common/autoconf/generated-configure.sh or patch it, too.

I can confirm that with the above change dev-java/icedtea-3.18.0 builds successfully with distcc.
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-29 14:37:16 UTC
Package removed.