New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is make -j (parallel building) supported? #3585
Comments
|
|
|
@dra27 I see, thanks for the explanation. So that would force |
|
|
|
(See the GNU make manual for full info) |
|
Okay, that sounds like a good idea. Thanks for your time. |
|
A note on parallel build on 4.07: as far as I can see on Windows there is nothing parallel about the build. Is the build process different if there exists a binary jbuilder / dune in the path? I am building with the following command in a pretty much untouched environment: |
|
@MSoegtropIMC - the build of opam is parallel, those are the commands for compiling OCaml. I can't remember what the state of parallel building was for 4.07 (it's certainly fine in 4.08+). However, the build is handled by a separate script which itself invokes |
|
@dra27 : thanks for the info. This is the way I build OCaml for Coq for Windows releases since years and didn't really review it over time. I prefer to do the bootstrap for building Coq. I anyway planned to move the build to opam - on Windows this was still fairly tricky when I tried it 1/2 year back, but doable. One more reason for picking up this work. |
I am attempting to build opam for Solus (https://getsol.us) and by default, we use have a build system macro that, amongst other things, sets the max number of make jobs automatically based on the number of threads the machines has (on my machine, the macro executes make -j8 as I have a 4 core, 8 thread CPU).
The issue is that if I do not manually pass -j1 to
maketo make it build serially, the build will fail every time with the same error message,Error: mkdir: _build: File exists. Here is the build log if it is of any use:I found issue #2706, where @AltGr said the following:
Although this issue is almost 2 years old, does this still hold true that parallel builds are not reliable? Also, I cannot see a
fastentry in the Makefile which @AltGr suggested to use, but I'm guessing that it has since been removed.If parallel make builds are not supported, that is fine. I just want to make sure that I am not being stupid!
The text was updated successfully, but these errors were encountered: