[Issue 23517] New: dmd with -g flag fails to link on macOS 13.0.1 (i368) with unaligned pointer

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Nov 29 08:36:49 UTC 2022


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

          Issue ID: 23517
           Summary: dmd with -g flag fails to link on macOS 13.0.1 (i368)
                    with unaligned pointer
           Product: D
           Version: D2
          Hardware: x86
                OS: Mac OS X
            Status: NEW
          Severity: critical
          Priority: P1
         Component: dmd
          Assignee: nobody at puremagic.com
          Reporter: paolo.invernizzi at gmail.com

It looks like Apple's linker is getting tighter on what it will allow:


~/dlang/dmd-2.101.0/osx/bin/dmd -g hello.d
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: alignment (1) of atom 'anon' is too small and may result in
unaligned pointers
ld: warning: pointer not aligned at address 0x10007023A ('anon' + 570 from
hello.o)
ld: warning: pointer not aligned at address 0x100070257 ('anon' + 599 from
hello.o)
ld: warning: pointer not aligned at address 0x100070347 ('anon' + 839 from
hello.o)
ld: warning: pointer not aligned at address 0x100070382 ('anon' + 898 from
hello.o)
ld: warning: pointer not aligned at address 0x10007039E ('anon' + 926 from
hello.o)
ld: warning: pointer not aligned at address 0x1000703D6 ('anon' + 982 from
hello.o)
ld: warning: pointer not aligned at address 0x100070429 ('anon' + 1065 from
hello.o)
ld: warning: pointer not aligned at address 0x100070459 ('anon' + 1113 from
hello.o)
ld: warning: pointer not aligned at address 0x100070475 ('anon' + 1141 from
hello.o)
ld: unaligned pointer(s) for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Error: linker exited with status 1

--


More information about the Digitalmars-d-bugs mailing list