Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

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
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.

Loading...