This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GCC package missing sanitize helper libraries


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]