This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: gcc -fsanitize => cannot find -lubsan
- From: Brian Inglis <Brian dot Inglis at SystematicSw dot ab dot ca>
- To: cygwin at cygwin dot com
- Date: Tue, 27 Mar 2018 12:48:51 -0600
- Subject: Re: gcc -fsanitize => cannot find -lubsan
- References: <CAD8GWssb0Ka-GmULAtb=dLnNFt=ssbT-Cc1viNTWMC7_E=bfzw@mail.gmail.com>
- Reply-to: Brian dot Inglis at SystematicSw dot ab dot ca
On 2018-03-27 11:39, Lee wrote:
> How do you figure out which package is missing from your install?
> $cat sbstrict.c
> int main () {
> return 0;
> }
> $i686-w64-mingw32-gcc -fsanitize=bounds-strict sbstrict.c
> /usr/lib/gcc/i686-w64-mingw32/6.4.0/../../../../i686-w64-mingw32/bin/ld:
> cannot find -lubsan
> collect2: error: ld returned 1 exit status
> $gcc -fsanitize=bounds-strict sbstrict.c
> /usr/lib/gcc/x86_64-pc-cygwin/6.4.0/../../../../x86_64-pc-cygwin/bin/ld:
> cannot find -lubsan
> collect2: error: ld returned 1 exit status
> I looked at
> https://cygwin.com/cgi-bin2/package-grep.cgi?grep=ubsan&arch=x86_64
> and both
> gcc-debuginfo-6.4.0-5
> mingw64-i686-gcc-debuginfo-6.4.0-1
> have a ubsan.c, but ld wouldn't be looking for that. Right??
Implies that gcc includes support, but not supported as of 2015:
https://sourceware.org/ml/cygwin/2015-10/msg00528.html
- don't know why - or if since added.
--
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada
--
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