Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 570038 - sys-devel/llvm-3.7.0-r5 with sys-devel/distcc and sys-devel/gcc-5.3.0: llvm-3.7.0.src/lib/Support/Unix/Process.inc:43:23: fatal error: malloc_np.h: No such file or directory
Summary: sys-devel/llvm-3.7.0-r5 with sys-devel/distcc and sys-devel/gcc-5.3.0: llvm-3...
Status: RESOLVED DUPLICATE of bug 636806
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: 2015-12-28 21:45 UTC by Anton Gubarkov
Modified: 2018-03-29 07:56 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Gubarkov 2015-12-28 21:45:50 UTC
sys-devel/llvm-3.7.0-r5 builds fine on my desktop when distcc is not used. When I try to build with distcc, I get 
FAILED: /usr/lib64/distcc/bin/x86_64-pc-linux-gnu-g++ -m32 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Ilib/Support -I/var/tmp/portage/sys-devel/llvm-3.7.0-r5/work/llvm-3.7.0.src/lib/Support -Iinclude -I/var/tmp/portage/sys-devel/llvm-3.7.0-r5/work/llvm-3.7.0.src/include  -DNDEBUG -march=sandybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=sandybridge -fstack-protector-strong  -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wnon-virtual-dtor -Wno-comment -Werror=date-time -std=c++11 -ffunction-sections -fdata-sections -fPIC -MMD -MT lib/Support/CMakeFiles/LLVMSupport.dir/Process.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/Process.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/Process.cpp.o -c /var/tmp/portage/sys-devel/llvm-3.7.0-r5/work/llvm-3.7.0.src/lib/Support/Process.cpp
In file included from /var/tmp/portage/sys-devel/llvm-3.7.0-r5/work/llvm-3.7.0.src/lib/Support/Process.cpp:78:0:
/var/tmp/portage/sys-devel/llvm-3.7.0-r5/work/llvm-3.7.0.src/lib/Support/Unix/Process.inc:43:23: fatal error: malloc_np.h: No such file or directory
compilation terminated.
Comment 1 Anton Gubarkov 2015-12-28 21:46:26 UTC
home64 ~ # emerge --info llvm
Portage 2.2.26 (python 3.4.3-final-0, default/linux/amd64/13.0/desktop/gnome/systemd, gcc-5.3.0, glibc-2.22-r1, 4.3.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.3.3-gentoo-x86_64-Intel-R-_Core-TM-_i7-2600_CPU_@_3.40GHz-with-gentoo-2.2
KiB Mem:    16419528 total,  11815076 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Mon, 28 Dec 2015 15:30:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.1::gentoo
dev-lang/python:          2.7.11-r1::gentoo, 3.4.3-r7::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.18.3::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15-r1::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

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

anders-larsson
    location: /var/lib/layman/anders-larsson
    masters: gentoo
    priority: 50

gentoo-zh
    location: /var/lib/layman/gentoo-zh
    masters: gentoo
    priority: 50

proaudio
    location: /var/lib/layman/pro-audio
    masters: gentoo
    priority: 50

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

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

rugubara
    location: /var/lib/layman/rugubara
    masters: gentoo
    priority: 100

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=sandybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=sandybridge -fstack-protector-strong"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /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/terminfo"
CXXFLAGS="-march=sandybridge -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -maes -mpclmul -mpopcnt -mavx -msse4.2 -msse4.1 -mfxsr -mxsave -mxsaveopt --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=8192 -mtune=sandybridge -fstack-protector-strong"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distcc-pump distlocks ebuild-locks fixlafiles merge-sync metadata-transfer 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://gentoo.bloodhost.ru http://mirror.yandex.ru/gentoo-distfiles/"
LANG="ru_RU.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j33 -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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 avahi avx berkdb bluetooth bluez bluray branding bzip2 cairo cdda cdr cdrom cli colord cracklib crypt cups cxx dbus dri dts dvd dvdr eds egl emboss encode evdev evo exif fam ffmpeg fftw firefox flac fortran frei0r fuse gdbm gif glamor gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk iconv introspection ipv6 jack jpeg kde ladspa lcms libnotify libsecret lv2 mad mmx mmxext mng modules mp3 mp4 mpeg mtp multilib nautilus ncurses networkmanager nls nptl nsplugin ogg opengl openmp pam pango pcre pcre16 pdf png policykit popcnt ppds pulseaudio qt3support qt5 readline realtime samba sdl seccomp session spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg systemd tcpd threads tiff tracker truetype udev udisks unicode upower usb vdpau vorbis wxwidgets x264 xattr xcb xml xv 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia" 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"
USE_PYTHON="3.5"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

sys-devel/llvm-3.7.0-r5::gentoo was built with the following:
USE="libffi ncurses static-analyzer xml -clang -debug -doc -gold -libedit -lldb -multitarget -ocaml -python -test" ABI_X86="32 64 -x32" PYTHON_TARGETS="python2_7" VIDEO_CARDS="-radeon"
Comment 2 Camusensei 2016-09-18 18:48:01 UTC
+1
Works fine without distcc.
same error:
...
In file included from /var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src/lib/Support/Process.cpp:78:0:
/var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src/lib/Support/Unix/Process.inc:43:23: fatal error: malloc_np.h: No such file or directory
 #include <malloc_np.h>
                       ^
compilation terminated.
distcc[9122] ERROR: compile /var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src/lib/Support/Process.cpp on localhost failed
ninja: build stopped: subcommand failed.
 * ERROR: sys-devel/llvm-3.7.1-r3::gentoo failed (compile phase):
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  133:  Called src_compile
 *   environment, line 5015:  Called multilib-minimal_src_compile
 *   environment, line 3091:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 3322:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 3026:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 3024:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  639:  Called multilib-minimal_abi_src_compile
 *   environment, line 3085:  Called multilib_src_compile
 *   environment, line 3534:  Called cmake-utils_src_compile
 *   environment, line 1210:  Called _cmake_execute_optionally 'src_compile'
 *   environment, line  366:  Called enable_cmake-utils_src_compile
 *   environment, line 1509:  Called cmake-utils_src_make
 *   environment, line 1225:  Called _cmake_ninja_src_make
 *   environment, line  422:  Called die
 * The specific snippet of code:
 *       "$@" || die








emerge -pqv '=sys-devel/llvm-3.7.1-r3::gentoo'
[ebuild   R   ] sys-devel/llvm-3.7.1-r3  USE="libffi ncurses static-analyzer -clang -debug -doc -gold -libedit -lldb -multitarget -ocaml -python {-test} -xml" ABI_X86="32* (64) (-x32)" PYTHON_TARGETS="python2_7" VIDEO_CARDS="radeon" 


emerge --info llvm
Portage 2.2.28 (python 2.7.10-final-0, default/linux/amd64/13.0, gcc-4.9.3, glibc-2.22-r4, 4.4.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.4.6-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_820_@_1.73GHz-with-gentoo-2.2
KiB Mem:     8165652 total,   3031272 free
KiB Swap:    8703996 total,   8664784 free
Timestamp of repository gentoo: Sun, 18 Sep 2016 12:00:02 +0000
sh bash 4.3_p42-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.3_p42-r1::gentoo
dev-lang/perl:            5.22.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3-r1::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21.7::gentoo
sys-apps/sandbox:         2.10-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nehalem -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
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="-march=nehalem -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=y --quiet-build --quiet-fail=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs compress-build-logs config-protect-if-modified distcc distcc-pump distlocks downgrade-backup ebuild-locks fail-clean fixlafiles merge-sync news notitles parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="                 http://gentoo.mirrors.ovh.net/gentoo-distfiles/                 http://ftp.free.fr/mirrors/ftp.gentoo.org/                 http://gentoo.mirrors.hoobly.com/                 "
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="--jobs=32 -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="/var/tmp"
USE="a52 aalib acl acpi adns aio alsa amd64 apm apng archive areas arts audiofile bash bash-completion berkdb bidi bzip2 cacert cairo calendar caps cgroups cli cracklib crypt cryptsetup curl cxx dane djvu dnssec dri drm dts dvd dvdnav dvdr egl encode exif ffmpeg flac freetype gcrypt gd gdbm geoip gif gimp glamor glibc gmp gnutls go gpg gpm gssapi gstreamer hard-float havege hidpi iconv icu idn intl jpeg json lame lcms ldns libass libcaca lisamplerate lm_sensors lzma mad markdown matroska midi mmx mmxext modules mp3 mp4 mpeg mpi multilib ncurses nls nptl odbc ogg oggvorbis opengl openmp openvpn opt opus orc pam pcre pdf pdo pic pie pmu png postproc pygments radeon random readline right_timezone sanitize seccomp session smp speex sqlite sse sse2 ssh ssl stream svg syslog tcpd theora threads tiff tls truetype tty-helpers udev unicode upnp usb vaapi vcd vdpau vim-syntax vorbis vpx wayland x264 x265 xattr xcb xfs xkb xps 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" 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" 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="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_4" PYTHON_TARGETS="python2_7 python3_4" USERLAND="GNU" VIDEO_CARDS="radeon r600" 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

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

sys-devel/llvm-3.7.1-r3::gentoo was built with the following:
USE="libffi ncurses static-analyzer -clang -debug -doc -gold -libedit -lldb -multitarget -ocaml -python -test -xml" ABI_X86="64 -32 -x32" PYTHON_TARGETS="python2_7" VIDEO_CARDS="radeon"
Comment 3 Camusensei 2016-09-18 18:51:08 UTC
For some reason, emerge --info does not reflect me trying to build it into the 32 ABI. So I'm telling this here.
Comment 4 Christophe PEREZ 2017-05-25 05:09:43 UTC
exactly same error with sys-devel/llvm-3.9.1-r1 and sys-devel/gcc-5.4.0-r3 on a fresh install.
Comment 5 RJ 2017-10-05 07:56:44 UTC
I can also confirm.

The problem is that cmake is detecting headers (not just malloc_np.h) that aren't really there.  I wasn't able to figure out why this was the case.  It doesn't appear to be an incorrect environment variable or permissions problem....

Here is a workaround:

cd /usr/portage/sys-devel/llvm

ebuild llvm-3.7.1-r3.ebuild clean configure

cd /var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src-.arm

sandbox # enter sandbox

source ../../temp/environment # get build environment variables

rm CMakeCache.txt # remove cached cmake that found non-existent headers

# reconfigure
cmake -C /var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src-.arm/gentoo_common_config.cmake -G Ninja -DCMAKE_INSTALL_PREFIX=/usr -DLLVM_LIBDIR_SUFFIX= -DBUILD_SHARED_LIBS=ON -DLLVM_ENABLE_TIMESTAMPS=OFF -DLLVM_TARGETS_TO_BUILD=host\;BPF\;CppBackend -DLLVM_BUILD_TESTS=no -DLLVM_ENABLE_FFI=yes -DLLVM_ENABLE_TERMINFO=yes -DLLVM_ENABLE_ASSERTIONS=no -DLLVM_ENABLE_EH=ON -DLLVM_ENABLE_RTTI=ON -DWITH_POLLY=OFF -DLLVM_HOST_TRIPLE=armv7a-hardfloat-linux-gnueabi -DFFI_INCLUDE_DIR=/usr/lib/libffi-3.2.1/include -DFFI_LIBRARY_DIR= -DHAVE_HISTEDIT_H=no -DOCAMLFIND=NO -DGO_EXECUTABLE=GO_EXECUTABLE-NOTFOUND -DLLVM_BUILD_DOCS=no -DLLVM_ENABLE_SPHINX=no -DLLVM_ENABLE_DOXYGEN=OFF -DLLVM_INSTALL_HTML=/usr/share/doc/llvm-3.7.1-r3/html -DSPHINX_WARNINGS_AS_ERRORS=OFF -DLLVM_INSTALL_UTILS=ON -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src-.arm/gentoo_rules.cmake -DCMAKE_TOOLCHAIN_FILE=/var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src-.arm/gentoo_toolchain.cmake  /var/tmp/portage/sys-devel/llvm-3.7.1-r3/work/llvm-3.7.1.src

exit

cd /usr/portage/sys-devel/llvm

You may also want to set DISTCC_IO_TIMEOUT to a high number of seconds as some compiles can take a long time even on a good computer.

ebuild llvm-3.7.1-r3.ebuild merge
Comment 6 RJ 2017-10-05 08:00:43 UTC
emerge --info
Portage 2.3.8 (python 3.4.5-final-0, default/linux/arm/13.0/armv7a, gcc-5.4.0, glibc-2.23-r4, 4.9.52-v7+ armv7l)
=================================================================
System uname: Linux-4.9.52-v7+-armv7l-ARMv7_Processor_rev_5_-v7l-with-gentoo-2.4.1
KiB Mem:      880556 total,    416536 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 03 Oct 2017 05:44:04 +0000
Head commit of repository gentoo: 68f08f2fb191341d153aee811193f4398d6be4bc

sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.28.1 p1.0) 2.28.1
distcc[21786] (dcc_trace_version) distcc 3.2rc1 armv7a-hardfloat-linux-gnueabi; built Sep 30 2017 22:01:29 [enabled]
app-shells/bash:          4.3_p48-r1::gentoo
dev-lang/perl:            5.24.1-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.28::gentoo
sys-apps/sandbox:         2.10-r3::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.15-r2::gentoo
sys-devel/binutils:       2.28.1::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r4::gentoo
Repositories:

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

ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-O2 -pipe -march=armv7ve -mtune=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=armv7-a"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=3 --load-average=4.0"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distcc distcc-pump 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 -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j32 -l4"
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="acl acpi apm arm armv5te armv6 armv6t2 berkdb bzip2 cli cpudetection cracklib crypt cxx dbus dri fortran gdbm iconv ipv6 modules ncurses neon nls nptl openmp pam pcre policykit readline seccomp session smp ssl systemd tcpd udisks unicode usb wifi xattr zlib" 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_ARM="edsp thumb thumb2 v4 v5 v6 v7 vfp" 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" 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="python3_4" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby22" USERLAND="GNU" VIDEO_CARDS="exynos fbdev omap 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
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-03-29 07:56:23 UTC
This is a long-known issue with distcc-pump. Nobody maintains that *beep*, so please don't use it.

*** This bug has been marked as a duplicate of bug 636806 ***