Community Packages

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#45982 - [avr-gcc] cannot find -lubsan

Attached to Project: Community Packages
Opened by Jaroslaw Siebert (y0g1) - Friday, 14 August 2015, 09:31 GMT
Last edited by Anatol Pomozov (anatolik) - Wednesday, 09 September 2015, 13:36 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Jakob Gruber (schuay)
Anatol Pomozov (anatolik)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

GCC 5 allow to use Undefined Behavior Sanitizer – ubsan.
It would be nice to include it to avr-gcc.


Additional info:
* package version(s)
* config and/or log files etc.


Steps to reproduce:

add to cmpiler options one of flags:
-fsanitize=float-divide-by-zero -fsanitize=float-cast-overflow \
-fsanitize=bounds -fsanitize=alignment -fsanitize=object-size -fsanitize=vptr

Compiler returns error:
/usr/bin/avr-ld: cannot find -lubsan
collect2: error: ld returned 1 exit status
This task depends upon

Closed by  Anatol Pomozov (anatolik)
Wednesday, 09 September 2015, 13:36 GMT
Reason for closing:  Won't implement
Comment by Anatol Pomozov (anatolik) - Tuesday, 08 September 2015, 18:39 GMT
I don't see any compile-time configure options that enable this functionality for avr-gcc.

Do you know if ubsan works on any other distro gcc (in Debian/Fedora/...)?
Comment by Jaroslaw Siebert (y0g1) - Wednesday, 09 September 2015, 07:48 GMT
My fault. This option is for detect undefined behavior at runtime.
In avr we have not runtime, so it can't be used.

Loading...