FS#71120 - [clang] The address sanitizer can't link to builds
Attached to Project:
Arch Linux
Opened by michael Lojkovic (zerophase) - Friday, 04 June 2021, 07:26 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 05 June 2021, 04:35 GMT
Opened by michael Lojkovic (zerophase) - Friday, 04 June 2021, 07:26 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 05 June 2021, 04:35 GMT
|
Details
Description:
The Clang package seems to have the same issue as ldc. Additional info: * 11.1 * https://bugs.archlinux.org/task/57026 Can be reproduced with: CMakeLists.txt: cmake_minimum_required(VERSION 3.20) project(test_sanitizer) set(CMAKE_CXX_STANDARD 20) add_compile_options(-fsanitize=address) add_executable(test_sanitizer main.cpp) main.cpp: int main(){} |
This task depends upon
Closed by Evangelos Foutras (foutrelis)
Saturday, 05 June 2021, 04:35 GMT
Reason for closing: Not a bug
Saturday, 05 June 2021, 04:35 GMT
Reason for closing: Not a bug
Comment by
Evangelos Foutras (foutrelis) -
Saturday, 05 June 2021, 04:31 GMT
You need to link with -fsanitize=address as well. Then it will
work.