FS#57026 - [ldc] 1.7.0 can't use -fsanitize=address without linker errors
Attached to Project:
Community Packages
Opened by Atila Neves (atilaneves) - Tuesday, 09 January 2018, 15:17 GMT
Last edited by Dan Printzell (Wild) - Tuesday, 09 January 2018, 20:46 GMT
Opened by Atila Neves (atilaneves) - Tuesday, 09 January 2018, 15:17 GMT
Last edited by Dan Printzell (Wild) - Tuesday, 09 January 2018, 20:46 GMT
|
Details
This bug exists only in the Arch Linux package, _not_ in the
prebuilt one from dlang.org. Seen in
ldc-1:1.7.0-1-x86_64.pkg.tar.xz.
To reproduce: foo.d: void main() {} % ldc2 -fsanitize=address foo.d foo.o:foo.d:function asan.module_ctor: error: undefined reference to '__asan_register_elf_globals' foo.o:foo.d:function asan.module_dtor: error: undefined reference to '__asan_unregister_elf_globals' collect2: error: ld returned 1 exit status Error: /usr/lib/ccache/bin/gcc failed with status: 1 If clang is used instead on the resulting foo.o created by the above command, it works: % clang -fsanitize=address -lphobos2 foo.o % ./a.out I suspect it has to do with the pre-packaged ldc not relying on system libraries. See discussion at https://github.com/ldc-developers/ldc/issues/2488 Description: Additional info: * package version(s) * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Dan Printzell (Wild)
Tuesday, 09 January 2018, 20:46 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in ldc-1:1.7.0-2
Tuesday, 09 January 2018, 20:46 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed in ldc-1:1.7.0-2
Comment by
Eli Schwartz (eschwartz) - Tuesday,
09 January 2018, 15:50 GMT
- Field changed: Attached to Project (Arch Linux → Community Packages)
- Field changed: Summary (ldc 1.7.0 can't use -fsanitize=address without linker errors → [ldc] 1.7.0 can't use -fsanitize=address without linker errors)
- Field changed: Architecture (x86_64 → All)
Please make sure to file bugs to the right project next time. The
package details for every package have a handy link to create bugs
in the right place automatically:
https://www.archlinux.org/packages/community/x86_64/ldc/