gcc: cannot find -lubsan

Yaakov Selkowitz yselkowitz@cygwin.com
Wed Oct 28 21:41:00 GMT 2015


On Tue, 2015-10-27 at 20:58 -0500, Steven Penny wrote:
> I have installed the "gcc-core" package:
> 
>     $ gcc --version
>     gcc (GCC) 4.9.3
> 
> Using this file:
> 
> http://gcc.gnu.org/git?p=gcc.git;a=blob;f=gcc/testsuite/c-c%2B%2B-common/ubsan/undefined-1.c;hb=382ecb
> 
> and this command:
> 
>     gcc -fsanitize=undefined undefined-1.c
> 
> yields this result:
> 
>     /usr/lib/gcc/x86_64-pc-cygwin/4.9.3/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -lubsan
>     collect2: error: ld returned 1 exit status

The various sanitizers in recent versions of GCC are not currently
supported on Cygwin.

--
Yaakov



--
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