Bug 154111

Summary: amanda does not rebuild
Product: Red Hat Enterprise Linux 2.1 Reporter: Brian Brock <bbrock>
Component: amandaAssignee: Lukas Vrabel <lvrabel>
Status: CLOSED WONTFIX QA Contact: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.1CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: ia64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-03-28 14:11:30 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brian Brock 2005-04-07 14:29:29 UTC
amanda does not rebuild in the current 2.1 AS or 2.1 AW ia64 environment.

amanda-2.4.4p3-1.21as
amanda-2.4.4p3-1.21as.1

Error randomly varies between two cases, occasionally not occuring.


Steps to Reproduce:
rpm -ihv amanda*src.rpm
rpmbuild -ba amanda.spec


Actual results:

echo '#define CC "ia64-redhat-linux-gcc"' > genversion.h.new
echo '#define BUILT_DATE "'`date`'"' >> genversion.h.new
echo '#define BUILT_MACH "'`uname -a || echo UNKNOWN HOST`'"' >> genversion.h.new
mv genversion.h.new genversion.h
if ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src  
 -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE   -MT versuff.o -MD -MP -MF
".deps/versuff.Tpo" -c -o versuff.o versuff.c; \
then mv -f ".deps/versuff.Tpo" ".deps/versuff.Po"; else rm -f
".deps/versuff.Tpo"; exit 1; fi
if /bin/sh ../libtool --mode=compile ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I.
-I. -I../config -I./../regex-src    -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  
-MT pipespawn.lo -MD -MP -MF ".deps/pipespawn.Tpo" -c -o pipespawn.lo pipespawn.c; \
then mv -f ".deps/pipespawn.Tpo" ".deps/pipespawn.Plo"; else rm -f
".deps/pipespawn.Tpo"; exit 1; fi
mv: cannot stat `.deps/versuff.Tpo': No such file or directory
make[1]: *** [versuff.o] Error 1
make[1]: *** Waiting for unfinished jobs....
 ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -O2
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -MT pipespawn.lo -MD -MP -MF
.deps/pipespawn.Tpo -c pipespawn.c  -fPIC -DPIC -o .libs/pipespawn.o
 ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -O2
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -MT pipespawn.lo -MD -MP -MF
.deps/pipespawn.Tpo -c pipespawn.c -o pipespawn.o >/dev/null 2>&1
make[1]: Leaving directory `/usr/src/redhat/BUILD/amanda-2.4.4p3/common-src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.37261 (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.37261 (%build)


OR

if /bin/sh ../libtool --mode=compile ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I.
-I. -I../config -I./../regex-src    -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  
-MT pipespawn.lo -MD -MP -MF ".deps/pipespawn.Tpo" -c -o pipespawn.lo pipespawn.c; \
then mv -f ".deps/pipespawn.Tpo" ".deps/pipespawn.Plo"; else rm -f
".deps/pipespawn.Tpo"; exit 1; fi
if /bin/sh ../libtool --mode=compile ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I.
-I. -I../config -I./../regex-src    -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  
-MT sl.lo -MD -MP -MF ".deps/sl.Tpo" -c -o sl.lo sl.c; \
then mv -f ".deps/sl.Tpo" ".deps/sl.Plo"; else rm -f ".deps/sl.Tpo"; exit 1; fi
if /bin/sh ../libtool --mode=compile ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I.
-I. -I../config -I./../regex-src    -O2 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  
-MT match.lo -MD -MP -MF ".deps/match.Tpo" -c -o match.lo match.c; \
then mv -f ".deps/match.Tpo" ".deps/match.Plo"; else rm -f ".deps/match.Tpo";
exit 1; fi
mv: cannot stat `.deps/util.Tpo': No such file or directory
make[1]: *** [util.o] Error 1
make[1]: *** Waiting for unfinished jobs....
 ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -O2
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -MT pipespawn.lo -MD -MP -MF
.deps/pipespawn.Tpo -c pipespawn.c  -fPIC -DPIC -o .libs/pipespawn.o
 ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -O2
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -MT sl.lo -MD -MP -MF .deps/sl.Tpo -c sl.c
 -fPIC -DPIC -o .libs/sl.o
 ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -O2
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -MT match.lo -MD -MP -MF .deps/match.Tpo -c
match.c  -fPIC -DPIC -o .libs/match.o
 ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -O2
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -MT sl.lo -MD -MP -MF .deps/sl.Tpo -c sl.c
-o sl.o >/dev/null 2>&1
 ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -O2
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -MT pipespawn.lo -MD -MP -MF
.deps/pipespawn.Tpo -c pipespawn.c -o pipespawn.o >/dev/null 2>&1
 ia64-redhat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../config -I./../regex-src -O2
-D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -MT match.lo -MD -MP -MF .deps/match.Tpo -c
match.c -o match.o >/dev/null 2>&1
make[1]: Leaving directory `/usr/src/redhat/BUILD/amanda-2.4.4p3/common-src'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.38515 (%build)


Expected results:
build reliably succeeds

Comment 1 Jay Fenlason 2005-04-07 14:49:45 UTC
This is a symptom of a bug in automake:   
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=137096 
Automake uses the same temporary file name for two different variants of an 
object file, resulting in a race condition.  This problem only manifests on 
SMP machines, because on uniprocessor machines, the builds are serialized so 
the duplicate temp file name can't cause any harm. 
 
 

Comment 3 Lukas Vrabel 2007-03-28 14:11:30 UTC
Only security related issues are handled for RHEL2