<html>#2908: Cactus: Fixed arg list too long error.
<table style='border-spacing: 1ex 0pt; '>
<tr><td style='text-align:right'> Reporter:</td><td>Max Morris</td></tr>
<tr><td style='text-align:right'> Status:</td><td>open</td></tr>
<tr><td style='text-align:right'>Milestone:</td><td></td></tr>
<tr><td style='text-align:right'> Version:</td><td></td></tr>
<tr><td style='text-align:right'> Type:</td><td>bug</td></tr>
<tr><td style='text-align:right'> Priority:</td><td>major</td></tr>
<tr><td style='text-align:right'>Component:</td><td></td></tr>
</table>
<p>Comment (by Roland Haas):</p>
<p>Looking at this carefully, the only reason for this song and dance is to create a file with the list of object files in it. However for the last 14 years GNU make has had a <code>file</code> function</p>
<div class="codehilite"><pre><span></span><code>fca11f60 - Create a new function $(file ...) (14 years ago) <Paul Smith>
</code></pre></div>
<p>that does just that (<a href="https://www.gnu.org/software/make/manual/html_node/File-Function.html" rel="nofollow" class="ap-connect-link">https://www.gnu.org/software/make/manual/html_node/File-Function.html</a>):</p>
<blockquote>
<p>The file function allows the makefile to write to or read from a file. </p>
</blockquote>
<p>which is intended for exactly this use (from the example in the docs):</p>
<div class="codehilite"><pre><span></span><code><span class="nf">program</span><span class="o">:</span> <span class="k">$(</span><span class="nv">OBJECTS</span><span class="k">)</span>
<span class="k">$(</span>file ><span class="nv">$@</span>.in,$^<span class="k">)</span>
<span class="k">$(</span>CMD<span class="k">)</span> <span class="k">$(</span>CMDFLAGS<span class="k">)</span> @<span class="nv">$@</span>.in
@rm <span class="nv">$@</span>.in
</code></pre></div>
<p>I have updated the pull request to use this function which avoids the various case distinctions and warnings written to screen.</p>
<p>--<br/>
Ticket URL: <a href='https://bitbucket.org/einsteintoolkit/tickets/issues/2908/cactus-fixed-arg-list-too-long-error'>https://bitbucket.org/einsteintoolkit/tickets/issues/2908/cactus-fixed-arg-list-too-long-error</a></p>
</html>