www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 22942] New: Invalid section type / offset for newer XCode

https://issues.dlang.org/show_bug.cgi?id=22942

          Issue ID: 22942
           Summary: Invalid section type / offset for newer XCode versions
           Product: D
           Version: D2
          Hardware: All
                OS: Mac OS X
            Status: NEW
          Severity: blocker
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: moonlightsentinel disroot.org

Linking programs on MacOS using newer XCode versions (>= 13.3) fails with an
error like this:

ld: section __DATA/__thread_bss has type zero-fill but non-zero file offset
file '../generated/build.o' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Taken from https://cirrus-ci.com/task/5812771504783360?logs=build#L43

--
Mar 26 2022