This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Parallel build failure


The script observer.sh uses a temporary file name that only depends on the
basename of the output file name.  This can cause the two instances of
them to step on each other toes when observer.h and observer.inc are
built in parallel.

Tested on ia64-suse-linux with make -j20 and committed as obvious.

Andreas.

2005-07-07  Andreas Schwab  <schwab@suse.de>

	* observer.sh: Use different temporary file name depending on mode
	of operation to avoid clash during parallel build.

--- gdb/observer.sh.~1.7.~	2005-05-17 13:32:18.000000000 +0200
+++ gdb/observer.sh	2005-07-07 14:54:42.000000000 +0200
@@ -9,7 +9,11 @@ fi
 lang=$1 ; shift
 texi=$1 ; shift
 o=$1
-otmp="`echo $1 | sed -e 's,\.[^.]*$,,'`.tmp"; shift
+case $lang in
+  h) tmp=htmp ;;
+  inc) tmp=itmp ;;
+esac
+otmp="`echo $1 | sed -e 's,\.[^.]*$,,'`.$tmp"; shift
 echo "Creating ${otmp}" 1>&2
 rm -f ${otmp}
 

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]