Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/index.php/Reporting_Bug_Guidelines

Do NOT report bugs when a package is just outdated, or it is in Unsupported. 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#33208 - [clang] missing ubsan library

Attached to Project: Arch Linux
Opened by Julian (JCBCIV) - Wednesday, 26 December 2012, 16:05 GMT
Last edited by Evangelos Foutras (foutrelis) - Saturday, 29 December 2012, 02:14 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After upgrading to clang 3.2, it complains that /usr/lib/clang/3.2/lib/linux/libclang_rt.ubsan-x86_64.a is missing when compiling anything with -fsanitize=undefined.
There is indeed no libclang_rt.ubsan-x86_64.a in that directory, nor did i find a library with this name anywhere else.

Additional info:
* package version(s)
fails with clang 3.2-1 from testing, worked with clang 3.1-6 (using -fcatch-undefined-behavior)


Steps to reproduce:

$ cat test.c
int main(){}
$ clang -fsanitize=undefined test.c
/usr/bin/ld.gold: error: cannot open /usr/bin/../lib/clang/3.2/lib/linux/libclang_rt.ubsan-x86_64.a: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Saturday, 29 December 2012, 02:14 GMT
Reason for closing:  Won't fix
Additional comments about closing:  See first comment.
Comment by Evangelos Foutras (foutrelis) - Thursday, 27 December 2012, 00:52 GMT
There's no support for building the ubsan library using autotools, only via the cmake build files which we currently don't use.

I'm guessing this will be fixed with clang 3.3 or if we ever switch to the cmake-based build system.

Loading...