Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 295931 - dev-libs/boost-1.41.0 fails to build with MAKEOPTS="--jobs --load-average=NN"
Summary: dev-libs/boost-1.41.0 fails to build with MAKEOPTS="--jobs --load-average=NN"
Status: RESOLVED DUPLICATE of bug 241684
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-06 04:14 UTC by Malte Starostik
Modified: 2009-12-06 17:55 UTC (History)
0 users

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 Malte Starostik 2009-12-06 04:14:52 UTC
The ebuild contains this to extract the requested job number from $MAKEOPTS which is a Good Thing.
Unfortunately the construct fails when MAKEOPTS contains -j resp. --jobs without argument (unlimited/limited by accompanying --load-average=NN):

NUMJOBS=$(sed -r -e 's/--jobs=?/-j/; s/.*(-j ?[0-9]+).*/\1/' <<< ${MAKEOPTS})


Reproducible: Always

Steps to Reproduce:
1. configure MAKEOPTS to sth. like "--jobs --load-average=3.0"
2. try to build boost

Actual Results:  
As the second substition in the line quoted above fails, this leads to an invokation like:
bjam-1_41 -j --load-average=3.0 -q gentoorelease -sICU_PATH=/usr --without-mpi --user-config="/var/tmp/portage/dev-libs/boost-1.41.0/work/boost_1_41_0/user-config.jam" --boost-build=/usr/share/boost-build-1_41 --prefix="/var/tmp/portage/dev-libs/boost-1.41.0/image//usr" --layout=versioned threading=single,multi link=shared,static runtime-link=shared

Note the failed filtering of --load-average=NN.
bjam will idle around instead of building anything.  Suppose it's trying to start zero concurrent jobs.

Expected Results:  
As bjam seems to lack an equivalent for limiting the number of jobs by load average only, this should be mapped to a sane value like number of CPUs plus one.

Portage 2.2_rc55 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6-stellaware x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-stellaware-x86_64-AMD_Athlon-tm-_II_X3_435_Processor-with-gentoo-1.12.13
Timestamp of tree: Sat, 05 Dec 2009 06:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:     4.0_p28
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=amdfam10 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=amdfam10 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs --load-average=3.0"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://de-mirror.org/distro/gentoo/"
LC_ALL="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="de en"
MAKEOPTS="--jobs --load-average=3.0"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/stellaware /usr/local/portage/layman/kde-sunset"
SYNC="rsync://sync/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups curl cxx dbus dga djvu dri dts dv dvb dvd dvdr emboss encode evo exif ffmpeg firefox flac fontconfig fortran gdbm g
eoip gif gimp git gpm gstreamer hal iconv icu inotify ipv6 java java6 jpeg jpeg2k kde lame lcms ldap libnotify libsamplerate lirc lzma mad matroska mikmod mmx mng mp3 mp4 mpeg msn mtp mudflap multilib ncurses network-cron nls nptl nptlon
ly nsplugin ogg openal openexr opengl openmp oscar pam pcre pdf perl plasma png ppds pppd pulseaudio python qt3support qt4 quicktime readline reflection samba sdl semantic-desktop session smp speex spell spl sqlite sqlite3 sse sse2 sse4a
 ssl startup-notification subversion svg sysfs tcpd themes theora threads thunar tiff truetype unicode usb v4l v4l2 vcd vim-syntax vorbis webkit x264 xattr xcb xcomposite xine xinerama xml xmp xorg xosd xulrunner xv xvid xvmc yahoo zeroc
onf 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm auth
n_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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses t
ext" LINGUAS="de en" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeonhd"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LANG, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Kevin Pyle 2009-12-06 06:11:56 UTC
This is another variation of the problem reported in bug #241684.
Comment 2 Sebastian Luther (few) 2009-12-06 17:55:41 UTC

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