Jump to page: 1 2 3
Thread overview
macOS Sonoma Linker Issue
Oct 04
Johan
Dec 13
Renato
Dec 17
Johan
Dec 21
Renato
Dec 21
Renato
Dec 21
Renato
Dec 22
Renato
Dec 22
Renato
Dec 22
Johan
Dec 22
Renato
Jan 06
Renato
Jan 20
Renato
Jan 20
ryuukk_
Jan 21
Renato
Dec 22
Sergey
Dec 17
Joel
October 03

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@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.a3177'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1

October 04

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@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.a3177'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1

I'm also suffering from the same problem.

October 04

On Wednesday, 4 October 2023 at 07:43:29 UTC, Tuna Celik wrote:

>

On Tuesday, 3 October 2023 at 23:55:05 UTC, confuzzled wrote:

>

[...]

I'm also suffering from the same problem.

It seems to be an Xcode 15 issues, everything works fine with 14

October 04

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@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.a3177'
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

October 04

On Wednesday, 4 October 2023 at 07:47:05 UTC, Paolo Invernizzi wrote:

>

On Wednesday, 4 October 2023 at 07:43:29 UTC, Tuna Celik wrote:

>

On Tuesday, 3 October 2023 at 23:55:05 UTC, confuzzled wrote:

>

[...]

I'm also suffering from the same problem.

It seems to be an Xcode 15 issues, everything works fine with 14

Thank you. I used ldc2 as a compiler and that works. As you said, there is something different with Xcode 15

October 05

On Wednesday, 4 October 2023 at 11:01:08 UTC, Johan wrote:

>

Try passing -ld_classic to the linker. (dmd -L-ld_classic)

https://github.com/ldc-developers/ldc/issues/4501#issuecomment-1738295459

-Johan

Thanks. This did the trick.

October 18

On Wednesday, 4 October 2023 at 11:01:08 UTC, Johan wrote:

>

Try passing -ld_classic to the linker. (dmd -L-ld_classic)

This works for me as well, thank you! I'm running macOS Sonoma and XCode 15.0 (15A240d). It appears XCode 15's linker errors are wreaking havoc with quite a few other languages as well. I also mess around with Crystal and the solution is similar. D is not alone :-)

crystal run --link-flags=-Wl,-ld_classic hello.cr

December 13
On Wednesday, 4 October 2023 at 11:01:08 UTC, Johan wrote:
> 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@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

Thanks, it worked for me as well on MacOS Sonoma! The issue you've linked has been resolved now. I am completely new to D, so if I may ask, how often do they release? The fix was merged 2 weeks ago, should we expect a release within a few weeks or it's not released that often?


December 17

On Wednesday, 4 October 2023 at 11:01:08 UTC, Johan wrote:

>

On Tuesday, 3 October 2023 at 23:55:05 UTC, confuzzled wrote:

>

[...]

Try passing -ld_classic to the linker. (dmd -L-ld_classic)

https://github.com/ldc-developers/ldc/issues/4501#issuecomment-1738295459

-Johan

I've been holding off installing Sonoma, because of this. How does one use DUB with the linker fix?

December 17
On Wednesday, 13 December 2023 at 18:32:50 UTC, Renato wrote:
> On Wednesday, 4 October 2023 at 11:01:08 UTC, Johan wrote:
>> 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@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
>
> Thanks, it worked for me as well on MacOS Sonoma! The issue you've linked has been resolved now. I am completely new to D, so if I may ask, how often do they release? The fix was merged 2 weeks ago, should we expect a release within a few weeks or it's not released that often?

Release will not be in next weeks, first DMD 2.106.1 should be released, then probably a few weeks later LDC 1.36 will be released.

-Johan

« First   ‹ Prev
1 2 3