www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD on OSX broken?

reply WebFreak001 <d.forum webfreak.org> writes:
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
Nov 17 2021
next sibling parent reply Steven Schveighoffer <schveiguy gmail.com> writes:
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
Nov 17 2021
parent WebFreak001 <d.forum webfreak.org> writes:
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?
Nov 17 2021
prev sibling parent WebFreak001 <d.forum webfreak.org> writes:
On Wednesday, 17 November 2021 at 16:49:49 UTC, 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
turns out the cache (I cache the `.dub` folder) was causing this issue - clearing cache (installed packages and local .dub folder) fixed the issue on CI
Nov 17 2021