Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 262440 - dev-util/kbuild-0.1.5 fails to build if FEATURES="distcc" is enabled
Summary: dev-util/kbuild-0.1.5 fails to build if FEATURES="distcc" is enabled
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Markus Ullmann (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-14 14:31 UTC by Miles V.
Modified: 2010-05-20 02:48 UTC (History)
3 users (show)

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


Attachments
Emerge Log (emerge.log,163.62 KB, text/plain)
2009-03-14 14:40 UTC, Miles V.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miles V. 2009-03-14 14:31:12 UTC
Emerging kbuild 0.1.5 with distcc enabled ends in a nasty error.  Also affects 0.1.4.  Both build fine with "FEATURES="-distcc"

Reproducible: Always

Steps to Reproduce:
1. Enable emerging with distcc
2. emerge kbuild




Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.3.2, glibc-2.8_p20080602-r1, 2.6.28-gentoo-r3 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r3-i686-Intel-R-_Atom-TM-_CPU_N270_@_1.60GHz-with-glibc2.0
Timestamp of tree: Sat, 14 Mar 2009 11:30:01 +0000
distcc 3.0 i686-pc-linux-gnu [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.5.2-r7
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.4.8
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -msse3 -mssse3 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -msse3 -mssse3 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="confcache distcc distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://distro.ibiblio.org/pub/linux/distributions/gentoo/ ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://cudlug.cudenver.edu/gentoo/ ftp://gentoo.mirrors.pair.com/ ftp://gentoo.mirrors.tds.net/gentoo ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://gentoo.llarian.net/pub/gentoo http://gentoo.binarycompass.org ftp://mirror.datapipe.net/gentoo http://mirrors.cs.wmich.edu/gentoo http://mirror.usu.edu/mirrors/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://ftp.wallawalla.edu/pub/mirrors/ftp.gentoo.org ftp://mirror.fslutd.org/linux/distributions/gentoo/ ftp://gentoo.chem.wisc.edu/gentoo/ ftp://lug.mtu.edu/gentoo/ http://gentoo.mirrors.hoobly.com/ ftp://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac aalib acl acpi aim alsa ao berkdb bzip bzip2 cifs cli cracklib crypt cups dbus dga directfb divx dri fbdev ffmpeg fortran ftp gdbm gpm gtk gtk2 hal iconv id3 isdnlog jack java jpeg laptop libcaca lm_sensors midi mmx mmxext mozdevelop mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin offensive ogg openal opengl openmp pam pcre pdf perl png pppd python qt readline reflection sdl session sndfile spell spl sse sse2 ssl ssse3 sysfs tcpd tiff unicode v4l v4l2 vorbis win32codecs x264 x86 xanim xorg xscreensaver xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Miles V. 2009-03-14 14:40:55 UTC
Created attachment 184948 [details]
Emerge Log

The juicy bit:

make[1]: Leaving directory `/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/bootstrap/sed'
cp -f /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/bootstrap/sed/sed/sed /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/bootstrap/kmk/kmk_sed
ln -s /bin/echo /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/bootstrap/kmk/kmk_echo
cp -f /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/bootstrap/kmk/config.h /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/kmk/config.h.linux
echo "" >> /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/kmk/config.h.linux
echo '#include "inlined_memchr.h"' >> /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/kmk/config.h.linux
cp -f /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/bootstrap/sed/config.h /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/sed/config.h.linux
/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/bootstrap/kmk/kmk -C /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5 KBUILD_BOOTSTRAP=1
kmk: Entering directory `/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5'
kBuild: Pass - Build Programs
kBuild: Pass - Libraries
kBuild: Compiling kDep - /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/lib/kDep.c
kBuild: Compiling kUtil - /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/lib/crc32.c
gcc: argument to '-o' is missing
distcc[28439] ERROR: compile (null) on localhost failed
kmk: *** [/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/obj/kDep/kDep.o] Error 1
The failing command:
@gcc -c -O2 -g -O3 -m32 -I/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/lib -DKBUILD_VERSION_MAJOR=0 -DKBUILD_VERSION_MINOR=1 -DKBUILD_VERSION_PATCH=5 -DKBUILD_OS_LINUX -DKBUILD_ARCH_X86 -DNDEBUG -Wp,-MD,/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/obj/kDep/kDep.o.dep -Wp,-MT,/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/obj/kDep/kDep.o -Wp,-MP -o /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/obj/kDep/kDep.o /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/lib/kDep.c
kmk: *** Waiting for unfinished jobs....
gcc: argument to '-o' is missing
distcc[28441] ERROR: compile (null) on localhost failed
kmk: *** [/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/obj/kUtil/crc32.o] Error 1
The failing command:
@gcc -c -O2 -g -O3 -m32 -I/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/lib -DKBUILD_VERSION_MAJOR=0 -DKBUILD_VERSION_MINOR=1 -DKBUILD_VERSION_PATCH=5 -DKBUILD_OS_LINUX -DKBUILD_ARCH_X86 -DNDEBUG -Wp,-MD,/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/obj/kUtil/crc32.o.dep -Wp,-MT,/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/obj/kUtil/crc32.o -Wp,-MP -o /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/obj/kUtil/crc32.o /var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/src/lib/crc32.c
kmk: Leaving directory `/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5'
kmk: Entering directory `/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5'
kmk: *** Exiting with status 2
make: *** [/var/tmp/portage/dev-util/kbuild-0.1.5/work/kBuild-0.1.5/out/linux.x86/release/bootstrap/ts-stage2-build] Error 2
kBuild/env.sh: info: rc=2: make -f bootstrap.gmk AUTORECONF=true
 * 
 * ERROR: dev-util/kbuild-0.1.5 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2560:  Called die
 * The specific snippet of code:
 *       kBuild/env.sh --full make -f bootstrap.gmk AUTORECONF=true || die "bootstrap failed"
 *  The die message:
 *   bootstrap failed
Comment 2 Markus Ullmann (RETIRED) gentoo-dev 2009-04-05 16:12:49 UTC
I just tried it (to be sure defined 3 machines as distcc hosts) and it works

Using gcc version 4.3.3 and sys-devel/distcc-3.1-r3
Comment 3 Miles V. 2009-04-07 05:40:36 UTC
(In reply to comment #2)
> I just tried it (to be sure defined 3 machines as distcc hosts) and it works
> 
> Using gcc version 4.3.3 and sys-devel/distcc-3.1-r3


Then the culprit must be either gcc 4.3.2 or distcc 3.0.
Comment 4 Max 2010-05-20 02:48:32 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > I just tried it (to be sure defined 3 machines as distcc hosts) and it works
> > 
> > Using gcc version 4.3.3 and sys-devel/distcc-3.1-r3
> 
> 
> Then the culprit must be either gcc 4.3.2 or distcc 3.0.
> 

I am also experiencing this bug with gcc 4.3.4