On 2022-10-09 15:17, Paul Smith wrote:
On Sun, 2022-10-09 at 16:39 -0400, Zack Weinberg wrote:
can I suggest that this kind of problem would be easier to
troubleshoot if make printed the name of the temporary file that it
could not fopen?
In the current Git version, it does do this:
... _("fopen: temporary file %s: %s"), newnm, strerror (errno));
It also does in the latest version of the proposed "Fix some temp file
issues" patch <https://lists.gnu.org/r/bug-make/2022-10/msg00064.html>,
except that if tmpfile fails the diagnostic simply mentions tmpfile. I
could change that to mention DEFAULT_TMPDIR instead, if you prefer.
In the proposed patch tmpfile is used only on platforms that lack
fdopen, or that lack dup, so the point I'm raising here matters only on
unusual platforms (AmigaOS and VMS perhaps?).