Skip to content
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

Compilation of ocaml fails in labltk with parallel jobs #4657

Closed
vicuna opened this issue Nov 29, 2008 · 6 comments
Closed

Compilation of ocaml fails in labltk with parallel jobs #4657

vicuna opened this issue Nov 29, 2008 · 6 comments

Comments

@vicuna
Copy link

vicuna commented Nov 29, 2008

Original bug ID: 4657
Reporter: @glondu
Status: closed (set by @xavierleroy on 2015-12-11T18:24:04Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.11.0+beta
Category: ~DO NOT USE (was: OCaml general)
Duplicate of: #4243

Bug description

On my computer, the compilation of ocaml always fails when called this way:

{ ./configure && MAKEFLAGS=-j3 make world; } > /tmp/build.log 2>&1

Attached is the build.log file produced by the command above. I guess it is because of some missing dependency in labltk Makefiles.

File attachments

@vicuna
Copy link
Author

vicuna commented Nov 29, 2008

Comment author: @glondu

When redirecting the output, the failure is not systematic. I managed to get a failure log with the following command:

{ ./configure && MAKEFLAGS=-j3 make world; } 2>&1|tee /tmp/build-failure.log

@vicuna
Copy link
Author

vicuna commented Nov 30, 2008

Comment author: @garrigue

The Objective Caml distribution has never supported parallel make.
You can see it by looking at the target "all" in the main Makefile, which
includes no sequencing whatsoever.
You can try to use parallel make, but you are on your own when it fails...

@vicuna
Copy link
Author

vicuna commented Nov 30, 2008

Comment author: @glondu

If dependencies between targets were properly defined, "all" as it is now doesn't startle me (but of course, it wouldn't do the same as "world"). Nonetheless, the explicit sequencing in other targets (world, coreboot, etc.) suggests some support for parellel make. And it seems to me that ocamlbuild also supports parallel builds.

Do you have any idea on how hard it would be to make OCaml parallel-build-safe?

@vicuna
Copy link
Author

vicuna commented Dec 3, 2008

Comment author: @damiendoligez

It's not hard to twiddle the makefiles to get a parallel make to work, but it's very hard to have any level of confidence about the parallel-safety. I don't know if there are tools to analyze makefiles for this.

So maybe someday our makefiles will be parallelizable but don't hold your breath.

@vicuna
Copy link
Author

vicuna commented Jun 7, 2009

Comment author: pipping

This is a duplicate of bug #4243.

@vicuna
Copy link
Author

vicuna commented Sep 4, 2013

Comment author: @damiendoligez

Closing this PR as #4243 was fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant