Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: Problem with parallel make with seq 2.2.4 on Linux
From: Ben Franksen <benjamin.franksen@helmholtz-berlin.de>
To: <tech-talk@aps.anl.gov>
Date: Sat, 14 Jan 2017 17:35:12 +0100
Am 14.01.2017 um 16:52 schrieb Ben Franksen:
> Anyway, I can suppress the error message with make-3.81/gcc-4.7.2 by
> adding explicit dependencies of the relevant .d files:
> 
> lexer.o: snl.h
> type_check.o: snl.h
> var_types.o: snl.h
> 
> The other combination (make-4.1/gcc-5.4.0) is not able to complete
> successfully when run directly after rm -f snl.h *.d, even with these
> extra dependencies listed.

Please ignore the last sentence, I made a mistake. Adding the explicit
dependencies really does work on my machine, too. But I still think this
is not the right way to fix the problem. Manually added dependencies are
brittle in the face of evolving code, which is why we auto-generate them
in the first place.

A better fix (I think) is to set

  HDEPENDS_METHOD=MKMF

in src/snc/Makefile (in the CONFIG section). This lets the EPICS build
system use mkmf.pl to generate the dependencies even on platforms where
the C compiler supports the appropriate flags to generate dependencies.
(Note that for 3.14 I had already copied the corresponding rule from
base-3.15 which is why the problem manifests only with 3.15).

(I noticed that after I do 'rm snl.h *.d' this still does not
re-generate the .d files for the three files that include snl.h. It is
hard for me to judge whether this may cause problems in the future.)

Anyway, if this works for you (Mark), then I will make a new release
with this fix (and with a fix for the other build problem you reported).

Cheers
Ben

Attachment: signature.asc
Description: OpenPGP digital signature


Replies:
RE: Problem with parallel make with seq 2.2.4 on Linux Mark Rivers
References:
Problem with parallel make with seq 2.2.4 on Linux Mark Rivers
Re: Problem with parallel make with seq 2.2.4 on Linux Andrew Johnson
Re: Problem with parallel make with seq 2.2.4 on Linux Ben Franksen

Navigate by Date:
Prev: Re: Problem with parallel make with seq 2.2.4 on Linux Ben Franksen
Next: RE: Problem with parallel make with seq 2.2.4 on Linux Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: Re: Problem with parallel make with seq 2.2.4 on Linux Ben Franksen
Next: RE: Problem with parallel make with seq 2.2.4 on Linux Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 14 Feb 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·