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