Skip to content

Race condition in Makefile ? #9

@XavierRaynaud

Description

@XavierRaynaud
From time to time, when compiling with "make -j", we have a race condition in Makefile, with messages like:

Fatal error: can't create al/src/th_al.o: No such file or directory

It seems the following patch solves the issue:

diff --git a/mith/Makefile b/mith/Makefile
index faeaea1..71a6f9d 100644
--- a/mith/Makefile
+++ b/mith/Makefile
@@ -54,4 +54,4 @@ print-%:
        @echo $* = $($*)  
        @echo [Defined at $(origin $*)] 
 
-$(TH_OBJS) : $(TH_HDRS)        
\ No newline at end of file
+$(TH_OBJS) : $(TH_HDRS)        $(MYDIRS)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions