Re: Dependency tracking not working on macOS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Sun, Oct 9, 2022, at 1:18 PM, Paul Smith wrote:
> On Sun, 2022-10-09 at 18:33 +0200, Christoph Grüninger wrote:
>> > config.status:1976: ... sed -e '/# am--include-marker/d' Makefile | make -f - am--depfiles
>> > make: *** fopen (temporary file): No such file or directory.  Stop.
> This command is asking make to read a makefile from stdin.  When it
> does that, make has to put the input file into a temporary file
> (because, if it needs to re-exec itself, it has to re-read the input).
> This error is saying that make was not able to open a temporary file
> and that the reason is that it got a ENOENT (no such file or directory)
> error when creating the file.
> This almost certainly means that on this system the directory pointed
> to by the TMPDIR environment variable (which make will use to locate a
> directory to place temporary files) doesn't exist.  Or, if that
> variable is not set, then "/tmp" doesn't exist.

Paul, 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?

(Also, I *do* hope make is using `mkstemp` and `fdopen`, internally, rather than `fopen`?)


[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux