Closed Polynomial-C closed 6 years ago
After digging into it, it seems lacking fwupdate.c : | include/fwup.h
causes this.
-> means depends
fwupdate -> libfwup.so fwupdate.o(by %: %.o)
libfwup.so -> libfwup.so.1 -> libfwup.so.1.11 -> libfwup.o
libfwup.o -> libfwup.c -> include/fwup.h -> include/fwup-version.h -> include/fwup-version.h.in
fwupdate.o -> fwupdate.c
We can see there's nothing telling fwupdate.o
to build after include/fwup-version.h
.
Therefore, under make -j16
, recipies for fwupdate.o
and include/fwup-version.h
are in parallel execution.
If include/fwup-version.h
is made before gcc reads it, everything is fine. Otherwise, fwupdate.o
will fail and errmsg above shows.
Closed by 987109b
This is with
make -j16
on a machine with 16 CPU cores (no hyperthreading). Runningmake -j1
and the error is gone. fwupdate-10 does not have this issue.