Skip to content

parallel make fails with mkdir: ./obj: File exists #134

Closed
@LudovicRousseau

Description

@LudovicRousseau

I have a multicore processor so I use make -j9 to benefit from GNU make parallelism.
But that fails with:

$ make -j2
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C build/gmake
if [ ! -d ./obj ]; then mkdir ./obj; fi
if [ ! -d ./obj ]; then mkdir ./obj; fi
mkdir: ./obj: File exists
gcc -g -pedantic -Wall -I ../../include -Wunused-parameter  -D_DEBUG=1 -D_MSC_VER=1400 -o obj/access.o -c ../../src/access.c
make[1]: *** [obj/attrs.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [bin/tidy] Error 2

The problem is that the Makefile tries to create a obj directory before each compilation.

Using autoconf + automake would solve that problem and also #61, #79, #100, #116

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions