Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 84636 - Exim builds will fail when attempted with MAKEFLAGS are set to paralel make. (-j)
Summary: Exim builds will fail when attempted with MAKEFLAGS are set to paralel make. ...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Colin Morey (RETIRED)
URL: http://www.exim.org/pipermail/exim-us...
Whiteboard:
Keywords:
: 161616 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-09 08:03 UTC by John Barberio
Modified: 2007-01-11 20:48 UTC (History)
3 users (show)

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


Attachments
emerge --debug exim (exim-debug.txt,109.45 KB, text/plain)
2005-03-09 13:35 UTC, John Barberio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Barberio 2005-03-09 08:03:36 UTC
Exim fails due to race conditions in the makefile that creates links for the build when making with '-j' option enabled. The ebuild should probably strip out any -j flags from MAKEFLAGS before running.

Reproducible: Always
Steps to Reproduce:
1. Set MAKEFLAGS to '-j 3'
2. emerge exim


Actual Results:  
!!! ERROR: mail-mta/exim-4.43-r2 failed.
!!! Function src_compile, Line 184, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

>>> Unpacking source...
>>> Unpacking exim-4.43.tar.bz2 to /var/tmp/portage/exim-4.43-r2/work
 * Applying exim-4.14-tail.patch ...                                      [ ok ]
 * Applying exim-4.43-r2-host_aton-buff.patch ...                         [ ok ]
 * Applying exim-4.43-r2-localscan_dlopen.patch ...                       [ ok ]
 * Applying exim-4.30-conf.patch ...                                      [ ok ]
>>> Source unpacked.
/bin/sh: line 1: cd: build-exim-gentoo: No such file or directory
make[1]: Entering directory `/var/tmp/portage/exim-4.43-r2/work/exim-4.43'

>>> Creating links to source files...
mkdir: cannot create directory `build-exim-gentoo': File exists
*** It appears that ../scripts/MakeLinks was previously interrupted.
*** You need to remove the build directory, and then run 'make' again.
make[1]: *** [build-directory] Error 1
make[1]: Leaving directory `/var/tmp/portage/exim-4.43-r2/work/exim-4.43'
make: *** [go] Error 2
make: *** Waiting for unfinished jobs....

!!! ERROR: mail-mta/exim-4.43-r2 failed.
!!! Function src_compile, Line 184, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.


Expected Results:  
Normal ebuild process.
Comment 1 Colin Morey (RETIRED) gentoo-dev 2005-03-09 12:35:47 UTC
this doesn't look like it's a make issue, I regularly build with MAKEOPTS="-j12" during testing. would you mind making sure /var/tmp/portage/exim-4.43-r2 doesn't exist before trying the build.
The output of `emerge info` would also come in handy.

Cheers,

Colin
Comment 2 John Barberio 2005-03-09 12:40:30 UTC
Yes, I've checked that /var/tmp/portage/ is empty before running it. The bug does leave its build area untidy, which causes a diferent error when re-emerging. (Complains about lots of files being already present when trying to link them)


Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 AMD Duron(tm)
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 24 2005, 02:43:16)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.5, 1.4_p6, 1.8.5-r3, 1.9.4, 1.6.3, 1.7.9-r1
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/ ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ http://gentoo.inode.at/ http://www.gigaload.org/gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 clearpasswd nptl nptlonly userlocales"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 3 Colin Morey (RETIRED) gentoo-dev 2005-03-09 13:16:06 UTC
I can't reproduce it here, could you check a couple of other stable releases of exim, and with other numbers of MAKEOPTS (-j2,-j4,j12 etc).
but first, could you do `emerge --debug exim` for me.

Cheers.
Comment 4 Colin Morey (RETIRED) gentoo-dev 2005-03-09 13:28:15 UTC
just to verify, are you setting  MAKEFLAGS or MAKEOPTS? and where abouts are you setting it?
Comment 5 John Barberio 2005-03-09 13:35:16 UTC
Created attachment 53032 [details]
emerge --debug exim
Comment 6 John Barberio 2005-03-09 13:44:35 UTC
D'oh. Typo in make.conf apears to have been causing this. Closed.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-01-11 20:48:43 UTC
*** Bug 161616 has been marked as a duplicate of this bug. ***