emerging of consolekit failed every time when I try to use MAKEFLAGS=-j2 or higher. With MAKEFLAGS=-j1 all is ok. Reproducible: Always Steps to Reproduce: 1. emerge --sync 2. MAKEFLAGS=-j2 emerge -1 consolekit 3. Actual Results: emerge failed with messages: * Messages for package sys-auth/consolekit-0.2.1: * * ERROR: sys-auth/consolekit-0.2.1 failed. * Call stack: * ebuild.sh, line 46: Called src_compile * environment, line 2524: Called die * The specific snippet of code: * emake || die "emake failed" * The die message: * emake failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/home/portage/sys-auth/consolekit-0.2.1/temp/build.log'. * The ebuild environment file is located at '/home/portage/sys-auth/consolekit-0.2.1/temp/environment'. * Expected Results: consolekit application successful built and installed emerge --info Portage 2.1.4.1 (default-linux/amd64/2006.1/desktop, gcc-4.2.2, glibc-2.7-r1, 2.6.24-gentoo x86_64) ================================================================= System uname: 2.6.24-gentoo x86_64 Intel(R) Core(TM)2 Quad CPU @ 2.40GHz Timestamp of tree: Mon, 04 Feb 2008 22:30:01 +0000 app-shells/bash: 3.2_p33 dev-java/java-config: 1.3.7, 2.1.4 dev-lang/python: 2.4.4-r6, 2.5.1-r5 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.11.1 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.26 virtual/os-headers: 2.6.24 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=nocona" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache1-php4/ext-active/ /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe -march=nocona" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LINGUAS="en ru" PKGDIR="/usr/portage/packages" 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="/home" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acl alsa amd64 apache2 arts berkdb bitmap-fonts cairo cdr cli cracklib crypt cups curl dbus dga dri dvd dvdr eds emboss encode firefox flac gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv imagemagick imlib isdnlog jpeg ldap lm_sensors mad midi mikmod mmap mp3 mpeg mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection sdl session slang smp spell spl ssl svg sysfs tcpd threads toolbar truetype truetype-fonts type1-fonts unicode userlocale userlocales vorbis xinerama xml xorg xv zlib" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="access auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so filter unique_id authz_host mem_cache" APACHE2_MPMS="prefork" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru" USERLAND="GNU" VIDEO_CARDS="vesa nv nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
compile messages: make[2]: Entering directory `/home/portage/sys-auth/consolekit-0.2.1/work/ConsoleKit-0.2.1/libck-connector' if /bin/sh ../libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -O2 -pipe -march=nocona -MT ck-connector.lo -MD -MP -MF ".deps/ck-connector.Tpo" -c -o ck-connector.lo ck-connector.c; \ then mv -f ".deps/ck-connector.Tpo" ".deps/ck-connector.Plo"; else rm -f ".deps/ck-connector.Tpo"; exit 1; fi if x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -O2 -pipe -march=nocona -MT test-connector.o -MD -MP -MF ".deps/test-connector.Tpo" -c -o test-connector.o test-connector.c; \ then mv -f ".deps/test-connector.Tpo" ".deps/test-connector.Po"; else rm -f ".deps/test-connector.Tpo"; exit 1; fi make[2]: *** No rule to make target `../libck-connector/libck-connector.la', needed by `test-connector'. Stop. make[2]: *** Waiting for unfinished jobs.... mkdir .libs x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I. -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -O2 -pipe -march=nocona -MT ck-connector.lo -MD -MP -MF .deps/ck-connector.Tpo -c ck-connector.c -fPIC -DPIC -o .libs/ck-connector.o make[2]: Leaving directory `/home/portage/sys-auth/consolekit-0.2.1/work/ConsoleKit-0.2.1/libck-connector' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/portage/sys-auth/consolekit-0.2.1/work/ConsoleKit-0.2.1' make: *** [all] Error 2
why are you using consolekit-0.2.1? consolekit-0.2.3 is stable on your platform for quite a while. In addition to that you're running ~amd64, which had consolekit-0.2.3 available for it on Sept 19th, 2007, which is over 3 months ago. The issue with it not building with anything higher then -j1 was also fixed in consolekit-0.2.1 on April 11th 2007, which is nearly 10 months ago. Sounds to me like you haven't emerge --sync'd in over 10 months. You also should not be passing MAKE, CFLAGS, or really any environment variables on the command line to the emerge command since these will not be preserved for future compiles. Lastly, the proper flag is MAKEOPTS and not MAKEFLAGS as per /etc/make.conf.
(In reply to comment #2) Well I did emerge --sync few minutes ago. Then I had typed emerge -pv consolekit and got below messages: # emerge -pv consolekit These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] sys-auth/consolekit-0.2.1 USE="pam -debug" 445 kB Total: 1 package (1 reinstall), Size of downloads: 445 kB How is it possible?
(In reply to comment #3) sys-auth/consolekit-0.2.3 was localy masked at my machine. I'm sorry for that. BTW building of sys-auth/consolekit-0.2.3 also failed with same compile messages. Should I fold new bug?
still passing MAKEFLAGS on the command line?
(In reply to comment #5) > still passing MAKEFLAGS on the command line? > no, now it in my /etc/make.conf below is my make.conf # These settings were set by the catalyst build script that automatically built this stage # Please consult /etc/make.conf.example for a more detailed example ACCEPT_KEYWORDS="~amd64" # below stuff was found in 2007.0/no-multilib profile MULTILIB_ABIS="amd64" ABI=amd64 # ~below stuff was found in 2007.0/no-multilib profile CFLAGS="-O2 -pipe -march=nocona" MAKEFLAGS="-j4" CHOST="x86_64-pc-linux-gnu" CXXFLAGS="${CFLAGS}" USE="-esd threads gnome sysfs vorbis ogg toolbar acl xinerama slang dri userlocales curl dga encode flac imagemagick imlib lm_sensors mmap mp3 sse sse2 svg amd64 dvd qt -kde cdr nvidia 3dnow -ipv6 nptl nptlonly -fortran -f77 nls unicode userlocale truetype dbus hal apache2 -fam smp" LINGUAS="en ru" PORTAGE_TMPDIR=/home BUILD_PREFIX=/home PORTAGE_NICENESS="15" VIDEO_CARDS="vesa nv nvidia" APACHE2_MODULES="access auth auth_dbm auth_anon auth_digest alias file-cache echo charset-lite cache disk-cache mem-cache ext-filter case_filter case-filter-in deflate mime-magic cern-meta expires headers usertrack unique-id proxy proxy-connect proxy-ftp proxy-http info include cgi cgid dav dav-fs vhost-alias speling rewrite log_config logio env setenvif mime status autoindex asis negotiation dir imap actions userdir so filter unique_id authz_host mem_cache" APACHE2_MPMS="prefork" FEATURES=parallel-fetch
(In reply to comment #6) > (In reply to comment #5) > no, now it in my /etc/make.conf Nice, just that it's supposed to be *MAKEOPTS*, and *not* MAKEFLAGS, as already noted here.
> Nice, just that it's supposed to be *MAKEOPTS*, and *not* MAKEFLAGS, as already > noted here. > After renaming MAKEFLAGS as MAKEOPTS it works! Thanks for help.