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: EPICS make problem
From: Ben Franksen <benjamin.franksen@helmholtz-berlin.de>
To: Andrew Johnson <anj@aps.anl.gov>, EPICS Techtalk <tech-talk@aps.anl.gov>
Date: Thu, 16 Mar 2017 00:37:21 +0100
Hi Andrew

thanks for helping me to understand the problem. Indeed, I was aware of
the difference between 3.14 and 3.15 wrt separate rules for .d files.
But I could not imagine this to cause such a problem.

You observed that with 3.15 the snc rule is executed twice, because 3.15
has a separate rule for %.d: %.c and the .c is an intermediate target
for the final test product. Whereas in 3.14 there is no such separate
rule, so snc isn't involved in the first pass.

During the first pass make considers the crash not worth reporting
because of the -include. Indeed this seems to be a feature, though some
think it goes a bit too far, see http://savannah.gnu.org/bugs/?29074

Anyway, this does not yet explain why the /second/ run of snc (which
must have crashed, too) is not reported:

>> /home/franksen/src/seq/branch-2-3/home/bin/linux-x86/snc   +m  wait.i -o
>> wait.c.tmp
>> make[1]: Leaving directory
>> `/home/franksen/src/seq/branch-2-3/home/test/validate/O.linux-x86'
>> make: *** [all] Error 2
>
> The second pass ends here, presumably because the snc command died again.

Exactly. But without the segmentation fault message I have no idea /why/
the make aborted.

It seems as if make acts differently here depending on whether it has
already tried the same recipe earlier or not.

I think I will try to distill this down to a test case and report it as
a make bug.

Cheers
Ben

________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Dr. Karl Eugen Huthmacher, stv. Vorsitzende Dr. Jutta Koch-Unterseher
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


References:
EPICS make problem Benjamin Franksen
Re: EPICS make problem Andrew Johnson

Navigate by Date:
Prev: Re: 3.15 build rules suppress crash message [was: EPICS make problem] Ben Franksen
Next: Streamdevice: wild card in InTerminator? Brown, Garth
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: EPICS make problem Andrew Johnson
Next: cs-studio to EDM conversion tool? Luchini, Kristi L.
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, 15 Mar 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·