makefile - "libvw.so: file not recognized: File truncated" and "make -j 8" -


I get libfoo.so: file is not recognized: file has been scaled Error when creating -J8 When I remove the file and do it again, everything works:

  $ net $ make -j 8 ... libvw.so: File is not recognized: The file has been scaled: *** [All] Error 2 $ mv libvw.so libvw.so- $ make -j8 Success $ cmp libvw.so Libvw.so-  

that is, libvw.so was OK.

with -j8 it works immediately:

  $ successful to make $ $ successful  

So, how do I use -j8 with shared libraries?

(This project uses GNU make, so any GNU-specific solution is OK).

You are losing dependency in one of your makefile rules and error occurs because libw. So still it is being made when executable tries to link it.

But keep in mind that there are some bugs with dependency in parallel, to make sure that you are using the distro that removes this type of thing.


Comments