Subject: Re: Running "make rpm" fails on a CentOS 6.3 machine

From: Jonathan Nieder <[email-masked]>
Date: Thu, 30 Jan 2014 10:16:43 -0800

Hi,

Erez Zilber wrote:

> Writing perl.mak for Git
> Writing perl.mak for Git
> rename MakeMaker.tmp => perl.mak: No such file or directory at /usr/share/perl5/ExtUtils/MakeMaker.pm line 1024.
> make[3]: perl.mak: No such file or directory
> make[3]: perl.mak: No such file or directory
> make[3]: *** No rule to make target `perl.mak'.  Stop.

Looks like MakeMaker is racing against itself.  Alas, (on a fairly
current Debian system, with perl 5.14.2) I'm not able to reproduce that.

Instead, I get this:

| $ make -j8 rpm
[...]
| make[2]: Leaving directory `$HOME/rpmbuild/BUILD/git-1.8.5.3/Documentation'
| make[1]: Leaving directory `$HOME/rpmbuild/BUILD/git-1.8.5.3'
| + exit 0
| Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.WqNYnx
| + umask 022
| + cd $HOME/rpmbuild/BUILD
| + cd git-1.8.5.3
| + rm -rf $HOME/rpmbuild/BUILDROOT/git-1.8.5.3-1.x86_64
| + make -j12 'CFLAGS=-O2 -g' \
	DESTDIR=$HOME/rpmbuild/BUILDROOT/git-1.8.5.3-1.x86_64 \
	ETC_GITCONFIG=/etc/gitconfig prefix=/usr \
	mandir=/usr/share/man htmldir=/usr/share/doc/git-1.8.5.3 \
	INSTALLDIRS=vendor install install-doc
| make[1]: Entering directory `$HOME/rpmbuild/BUILD/git-1.8.5.3'
| make[1]: warning: -jN forced in submake: disabling jobserver mode.
| make[1]: *** write jobserver: Bad file descriptor.  Stop.
| make[1]: *** Waiting for unfinished jobs....
| make[1]: *** write jobserver: Bad file descriptor.  Stop.
| error: Bad exit status from /var/tmp/rpm-tmp.WqNYnx (%install)
|
|
| RPM build errors:
|     Bad exit status from /var/tmp/rpm-tmp.WqNYnx (%install)
| make: *** [rpm] Error 1

Known problem?  A build without -j8 gets further.

Thanks,
Jonathan