dmd -run fails with Nix on macOS Mojave

Jonathan Marler johnnymarler at gmail.com
Tue Feb 19 23:05:22 UTC 2019


On Tuesday, 19 February 2019 at 22:07:58 UTC, Thomas Mader wrote:
> On Tuesday, 19 February 2019 at 21:34:30 UTC, Jonathan Marler 
> wrote:
>> [...]
>
> I ruled out that idea by now because:
>
> - I changed dmd to use a tmpdir I created in the home dir of 
> the running user and I got the same error.
>
> - If the temporary file can not be created I think that dmd 
> should output a dedicated error message: 
> https://github.com/dlang/dmd/blob/6151bf8bfb21416b5857a64ab7fd8ae318ca02fb/src/dmd/link.d#L464
>
> - The ThreadError seems to be connected to fork and the call to 
> fork comes after the creation of the file in runLINK
>
> I never tried to debug dmd with a debugger but I think it's 
> time to start.

Not sure if Mac has an equivalent to "strace", but if it does 
than that's a really easy first step.  See which system call 
actually failed and get the error code.


More information about the Digitalmars-d mailing list