This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: fix libcc1 dependencies in toplevel Makefile


> On Jun 14, 2017, at 13:39 , Nathan Sidwell <nathan@acm.org> wrote:
> 
> Olivier,
>> During highly parallel builds on fast hosts, we have experienced
>> sporadic bootstrap failures on libquadmath like
> 
> I have encountered such a bootstrap problem too.  I guessed dependency race condition, but -j21 was a simpler fix :)

I see :)

> I'm happy to try the patch.

That would bring useful extra datapoints, Thanks!

The patch might be more complex than it needs to be. 

The logic is very simple: I wasn't sure whether I could
add 

 @if gcc-no-bootstrap
 all-[+prefix+][+module+]: maybe-all-gcc
 @endif gcc-no-bootstrap

to all "all" targets after the dependency to stage_current
@if gcc-bootstrap (in Makefile.tpl).

The "depgcc" boolean is simply a mechanism to do that
only for cases where we were adding a extra explicit dependency
to maybe-all-gcc before, that is, only for libcc1.

Olivier




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]