Invalid alignment on macOS with "-g": anyone have seen it?

Paolo Invernizzi paolo.invernizzi at gmail.com
Mon Nov 28 17:27:38 UTC 2022


Hi all,

Is this a know issue?

It happens only with "-g" on a simple hello world

```
~/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

```

Ventura 13.0.1 - Intel


More information about the Digitalmars-d mailing list