deckrider wrote:
> mkdir .libs
> mkdir .libs
> mkdir: cannot create .libs: File exists
> gcc -g -O2 -o goodbye src/goodbye.o 
> gcc -g -O2 -o one src/one.o 
> gcc: src/one.o: No such file or directory
> gcc: no input files
> one: *** Error exit code 1    
> [/home/deverly/tmp/bug-1.0.0/build/bug-1.0.0/_build/Makefile]
> gcc -g -O2 -o hello src/hello.o 
>

This looks like a race to create .libs by concurrent libtool processes.

Perhaps libtool should check again to see if the directory exists if mkdir
fails?

As a workaround, it might work to create the .libs directory with an
explicit rule in your Makefile.am, so that it is created before any
libtool invocations.  Something like:

all-am: .libs/.stamp
.libs/.stamp:
        @if test ! -d .libs; then mkdir .libs; fi
        @touch .libs/.stamp


Reply via email to