macOS Sonoma Linker Issue
Johan
j at j.nl
Wed Oct 4 11:01:08 UTC 2023
On Tuesday, 3 October 2023 at 23:55:05 UTC, confuzzled wrote:
> Any known workaround for this most recent issue on macOS
> Sonoma? The file I'm compiling contains a blank main() without
> any imports but this error shows up on everything I've
> attempted to compile since upgrading to Sonoma.
>
> (dmd-2.105.2) confuzzled at test ~ % dmd add
> ld: multiple errors: symbol count from symbol table and dynamic
> symbol table differ in '/Users/confuzzled/add.o' in
> '/Users/confuzzled/add.o'; address=0x0 points to section(2)
> with no content in
> '/Users/confuzzled/dlang/dmd-2.105.2/osx/lib/libphobos2.a[3177](config_a68_4c3.o)'
> clang: error: linker command failed with exit code 1 (use -v to
> see invocation)
> Error: linker exited with status 1
Try passing `-ld_classic` to the linker. (`dmd -L-ld_classic`)
https://github.com/ldc-developers/ldc/issues/4501#issuecomment-1738295459
-Johan
More information about the Digitalmars-d-learn
mailing list