Bug 22890 – Linker error when build on macOS Xcode 13.3 (x86_64)
Status
RESOLVED
Resolution
DUPLICATE
Severity
normal
Priority
P1
Component
dmd
Product
D
Version
D2
Platform
x86_64
OS
Mac OS X
Creation time
2022-03-17T15:01:38Z
Last change time
2022-03-26T18:08:10Z
Assigned to
No Owner
Creator
Akira Yamaguchi
Comments
Comment #0 by outland.karasu — 2022-03-17T15:01:38Z
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 by paolo.invernizzi — 2022-03-26T18:08:10Z
*** This issue has been marked as a duplicate of issue 22942 ***