octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pkg() in 4.0.0-rc1 breaks building of some packages


From: Juan Pablo Carbajal
Subject: Re: pkg() in 4.0.0-rc1 breaks building of some packages
Date: Tue, 10 Mar 2015 13:44:59 +0100

On Tue, Mar 10, 2015 at 8:30 AM, Olaf Till <address@hidden> wrote:
> Thought I mention it here before making a regular bug report, since it
> might be release-critical.
>
> Private function configure_make() of pkg() now calls 'make' with the
> '--jobs' option, enabling parallel builds. This should only be done in
> cases in which certain design rules are followed in package
> Makefiles. Currently it breaks at least building the parallel package:
>
> I've  the following lazy, stupid, and inefficient rule in this
> Makefile, which of course should be changed, but which is nevertheless
> legal:
>
> %.oct: %.cc
>         @MKOCTFILE@ -s -v $< sock-stream.cc
>
> This causes sock-stream.cc to be compiled to sock-stream.o for each
> built oct-file. make --jobs .. builds the oct-files in parallel, so it
> happens that one job is just about to (over-)write sock-stream.o when
> another job uses it for linking, causing the linking to fail.
>
> Before I supply a (trivial) patch, it should probably be decided
> whether the --jobs option should be just removed or made an option of
> pkg(), defaulting to non-parallel building.
>
Good point indeed. In the refactoring of pkg() we were working this
was meant to be an option and by defualt building is non-parallel.

> Olaf
>
> --
> public key id EAFE0591, e.g. on x-hkp://pool.sks-keyservers.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]