Backport #7217
closedRace condition in build process?
Description
=begin
Hi, I observer random build failures when building 'make -j16'. I am not sure if it might be either PowerPC issue or race condition in build process.
This is error I observe:
cp: cannot create regular file '../../.ext/common/date': File exists
gcc -shared -o ../../../.ext/powerpc-linux/-test-/string/string.so enc_associate.o modify.o init.o cstr.o set_len.o ellipsize.o -L. -L../../.. -L. -Wl,-z,relro -rdynamic -Wl,-export-dynamic -m32 -lruby -lpthread -lrt -ldl -lcrypt -lm -lc
make[2]: Entering directory /builddir/build/BUILD/ruby-1.9.3-p286/ext/etc' make[2]: Entering directory
/builddir/build/BUILD/ruby-1.9.3-p286/ext/fcntl'
make[2]: *** [../../.ext/common/date/format.rb] Error 1
make[2]: *** Waiting for unfinished jobs....
And here https://gist.github.com/3957425 is full build log.
Thank you
=end