EPICS Controls 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  <20172018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Problem with parallel make with seq 2.2.4 on Linux
From: Ben Franksen <[email protected]>
To: Andrew Johnson <[email protected]>, <[email protected]>
Date: Sat, 14 Jan 2017 22:12:57 +0100
Am 14.01.2017 um 16:52 schrieb Ben Franksen:
> The problem is that snl.h is generated *and* that the dependency (.d)
> files generated by make use gcc for this.
>
> It seems that 'gcc -MM -MF' is not able to cope with not yet existing
> include files.

I have looked at the gcc docs and found this:

"""
-MG
    In conjunction with an option such as -M requesting dependency
generation, -MG assumes missing header files are generated files and
adds them to the dependency list without raising an error. The
dependency filename is taken directly from the #include directive
without prepending any path. -MG also suppresses preprocessed output, as
a missing header file renders this useless.

    This feature is used in automatic updating of makefiles.
"""

It seems to me that this is usually what one wants/expects. So perhaps
the EPICS build rules should use -MG when using gcc to generate .d files?

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:
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  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: Problem with parallel make with seq 2.2.4 on Linux Mark Rivers
Next: StreamDevice 2.7.7 won't build with Visual Studio 2010 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  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·