DMD on OSX broken?

WebFreak001 d.forum at webfreak.org
Wed Nov 17 18:06:46 UTC 2021


On Wednesday, 17 November 2021 at 17:35:56 UTC, Steven 
Schveighoffer wrote:
> On 11/17/21 11:49 AM, WebFreak001 wrote:
>> I'm using DMD on the GitHub Actions OSX runner and suddenly 
>> I'm getting these weird linker errors: 
>> https://github.com/Pure-D/serve-d/runs/4240327451?check_suite_focus=true
>> 
>> anyone else getting errors like that? I don't have a mac so I 
>> have no way of checking if it actually happens on real devices 
>> or how to fix it.
>> 
>> I have `env MACOSX_DEPLOYMENT_TARGET=10.12` set because I 
>> wanted to support older OSX versions, not sure if that's 
>> something that could influence this error
>
> It might.
>
> Maybe try removing that to test? I'm not sure what OS the 
> github actions image is.
>
> I recently had some issues with linking with LDC on my M1 Pro 
> macbook. Changing the deployment target to 11 (from 12) helped.
>
> -Steve

I tried a variety of targets now, none seem to work. The tests 
before that compile and run fine, but it's the tests of the big 
actual application that break.

I saw some other projects on github experiencing issues with libc 
missing some symbols for some reason, but I don't really see 
these symbols missing on this build. Is the linker or compiler 
maybe "optimizing" something away that should be there?


More information about the Digitalmars-d mailing list