This is the mail archive of the
cygwin
mailing list for the Cygwin project.
GCC package missing sanitize helper libraries
- From: Peter Foley <pefoley2 at pefoley dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 31 Mar 2016 10:08:35 -0400
- Subject: GCC package missing sanitize helper libraries
- Authentication-results: sourceware.org; auth=none
The cygwin gcc package appears to be missing the helper libraries for
the -fsanitize series of options.
$ gcc -fsanitize=address a.c
/usr/lib/gcc/x86_64-pc-cygwin/5.3.0/../../../../x86_64-pc-cygwin/bin/ld:
cannot find -lasan
collect2: error: ld returned 1 exit status
Ditto for -fsanitize=undefined (-lubsan), -fsanitize=thread (-ltsan),
and -fsanitize-leak (-llsan)
On my linux box, these libraries are at paths like
/usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/liblsan.so
Is this simply a packaging oversight, or are these flags broken on cygwin?
Thanks,
Peter Foley
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple