D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 22890 - Linker error when build on macOS Xcode 13.3 (x86_64)
Summary: Linker error when build on macOS Xcode 13.3 (x86_64)
Status: RESOLVED DUPLICATE of issue 22942
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Mac OS X
: P1 normal
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-17 15:01 UTC by Akira Yamaguchi
Modified: 2022-03-26 18:08 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Akira Yamaguchi 2022-03-17 15:01:38 UTC
When running on macOS Monterey 12.3 and Xcode 13.3 (x86_64),
DMD always reports the following linker error.

----
$ dmd --version
DMD64 D Compiler v2.099.0
Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved written by Walter Bright

$ rdmd --eval='writeln("test")'
ld: in /Library/D/dmd/lib/libphobos2.a(object_10_612.o), section __DATA/__thread_bss has type zero-fill but non-zero file offset for architecture x86_64
----

I think that this error depends on Xcode version.

Also, Above error not reproduced on ldc-1.28.1.

----
$ source ~/dlang/ldc-1.28.1/activate
(ldc-1.28.1)$ rdmd --eval='writeln("test")'
test
----
Comment 1 Paolo Invernizzi 2022-03-26 18:08:10 UTC

*** This issue has been marked as a duplicate of issue 22942 ***