GCC package missing sanitize helper libraries

Peter Foley pefoley2@pefoley.com
Thu Mar 31 14:09:00 GMT 2016

The cygwin gcc package appears to be missing the helper libraries for
the -fsanitize series of options.

$ gcc -fsanitize=address a.c
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

Is this simply a packaging oversight, or are these flags broken on cygwin?


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

More information about the Cygwin mailing list