Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 322965 - dev-lang/R-2.11.1 parallel make install is broken at -j2
Summary: dev-lang/R-2.11.1 parallel make install is broken at -j2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-06 10:18 UTC by François Bissey
Modified: 2010-06-16 15:38 UTC (History)
0 users

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


Attachments
log of a failed build of R (r-2.11.1.log.bz2,21.15 KB, application/octet-stream)
2010-06-06 21:48 UTC, François Bissey
Details
R-2.11.1-parallel.patch (R-2.11.1-parallel.patch,488 bytes, patch)
2010-06-15 18:29 UTC, Sébastien Fabbro (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description François Bissey 2010-06-06 10:18:00 UTC
I repeatedly failed to emerge R-2.11.1. The failure occurred at the
install stage:

make[1]: Leaving directory `/media/anthill/portage/dev-lang/R-2.11.1/work/R-2.11.1/po'
make -j2 VERBOSE=1 -C src/nmath/standalone DESTDIR=/media/anthill/portage/dev-lang/R-2.11.1/image/ install 
make: Entering directory `/media/anthill/portage/dev-lang/R-2.11.1/work/R-2.11.1/src/nmath/standalone'
mkdir -p -- /media/anthill/portage/dev-lang/R-2.11.1/image//usr/include
make[1]: Entering directory `/media/anthill/portage/dev-lang/R-2.11.1/work/R-2.11.1/src/include'
make[1]: `Rmath.h' is up to date.
make[1]: Leaving directory `/media/anthill/portage/dev-lang/R-2.11.1/work/R-2.11.1/src/include'
cp: cannot create regular file `/media/anthill/portage/dev-lang/R-2.11.1/image//usr/include/Rmath.h': No such file or directory
make: *** [install-header] Error 1
make: *** Waiting for unfinished jobs....


After leaving it alone for a few days I tried with -j1 and it installed
successfully.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2010-06-06 21:08:30 UTC
Hello,
can you please provide the usual `emerge --info` and build.log+environment files from /var/tmp/portage/dev-lang/R-2.11.1/temp/ . Just to give the maintainer some informations under what conditions the build failed.

Thanks, Michael
Comment 2 François Bissey 2010-06-06 21:48:18 UTC
Created attachment 234341 [details]
log of a failed build of R

My apologies for not providing this info. My diagnostic is very clear in my mind but it may not be in other people's.


emerge --info R
Portage 2.2_rc67 (default/linux/x86/10.0, gcc-4.4.3, glibc-2.10.1-r1, 2.6.32-gentoo-r7 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r7-i686-AMD_Athlon-tm-_XP_2600+-with-gentoo-2.0.1
Timestamp of tree: Sun, 06 Jun 2010 08:15:02 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p37
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r99, 3.1.2-r3
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-strict-aliasing"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=native -fomit-frame-pointer -pipe -fno-strict-aliasing"
DISTDIR="/media/anthill/portage/distfiles"
FEATURES="assume-digests ccache collision-protect distlocks fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ihug.co.nz/gentoo http://mirrors.tds.net/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo ftp://mirrors.tds.net/gentoo http://gentoo.eliteitminds.com"
LANG="en_NZ.UTF-8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en_GB fr"
MAKEOPTS="-j2 VERBOSE=1"
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="/media/anthill"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/science /usr/local/portage/layman/sunrise /usr/local/portage/layman/sage-on-gentoo /home/francois/Work/Overlays/Gentoo-sage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi alsa amr ao apm asf audiofile berkdb bidi bootsplash branding bzip2 cairo cdda cddb cdf cdparanoia cli composite consolekit cracklib crypt cups curl cxx dbus device-mapper dga dmi dri dts dv dvd dvdr dvdread encode exif expat ffmpeg fftw flac fontconfig foomaticdb fortran fpx gdbm geoip gif gimpprint glib glitz glut gmp graphviz gs gstreamer gtk gtk2 hal iconv icu id3tag idn imagemagick imlib imlib2 ipv6 ipython jack java jbig joystick jpeg jpeg2k kde kdehiddenvisibility kipi kpathsea ladspa lame lapack latex lcms libffi libsamplerate lzma lzo mad mathml matroska mikmod mime mmx mmx2 mmxext mng modules motif mp3 mp4 mpeg mplayer mudflap musicbrainz ncurses netcdf network nls nptl nptlonly ogg openal openexr opengl pcre pdf perl png policykit portaudio posix ppds pppd ps python qt3support qt4 quicktime readline reflection reiserfs sdl secure-delete session sndfile sox spell spl sqlite3 sse ssl startup-notification svg svga sysfs szip t1lib tcl tcltk tcpd tetex tga theora thumbnail tiff tk truetype unicode usb v4l2 vcd vnc vorbis wavpack webkit wmf x264 x86 xanim xattr xcb xcomposite xine xinerama xml xorg xpm xsl xv xvid xvmc zlib" ALSA_CARDS="cmipci via82xx" 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" CAMERAS="canon ptp2" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB fr" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

dev-lang/R-2.11.1 was built with the following:
USE="X cairo java jpeg lapack nls perl png readline tk -bash-completion -doc -minimal -threads"
Comment 3 Michael Weber (RETIRED) gentoo-dev 2010-06-06 21:58:38 UTC
(In reply to comment #2)
> My apologies for not providing this info. My diagnostic is very clear in my
> mind but it may not be in other people's.

Parallel build failures were hard to debug/reproduce, I just wanted to give as much info to the maintainer as possible. Thanks a lot.
Comment 4 François Bissey 2010-06-06 22:26:18 UTC
My take on it from inspecting the content of the work directory is that
the target for making Rmath.h and installing it are run in parallel
when of course the install target should be dependent of the "preparing"
target being completed.
What happens in that case is of course dependent of how many cpu and
possibly their speed. 
Comment 5 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-15 18:29:27 UTC
Created attachment 235451 [details, diff]
R-2.11.1-parallel.patch

I could not reproduce with various -j<N> tests.
Could you try this patch?

Thanks.
Comment 6 François Bissey 2010-06-16 09:27:35 UTC
(In reply to comment #5)
> Created an attachment (id=235451) [details]
> R-2.11.1-parallel.patch
> 
> I could not reproduce with various -j<N> tests.
> Could you try this patch?
> 
The patch works for me. Thanks.

Comment 7 Sébastien Fabbro (RETIRED) gentoo-dev 2010-06-16 15:38:09 UTC
in cvs. thanks.