public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gcc: cannot find -lubsan
@ 2015-10-28  6:11 Steven Penny
  2015-10-28 21:41 ` Yaakov Selkowitz
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Penny @ 2015-10-28  6:11 UTC (permalink / raw)
  To: cygwin

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc: cannot find -lubsan
  2015-10-28  6:11 gcc: cannot find -lubsan Steven Penny
@ 2015-10-28 21:41 ` Yaakov Selkowitz
  2015-10-29 15:45   ` Csaba Raduly
  0 siblings, 1 reply; 3+ messages in thread
From: Yaakov Selkowitz @ 2015-10-28 21:41 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: gcc: cannot find -lubsan
  2015-10-28 21:41 ` Yaakov Selkowitz
@ 2015-10-29 15:45   ` Csaba Raduly
  0 siblings, 0 replies; 3+ messages in thread
From: Csaba Raduly @ 2015-10-29 15:45 UTC (permalink / raw)
  To: cygwin list

On Wed, Oct 28, 2015 at 5:36 PM, Yaakov Selkowitz  wrote:
>
> The various sanitizers in recent versions of GCC are not currently
> supported on Cygwin.

Then it would be nicer if GCC reported an error (rather than compile
dozens of files and then fail to link them at the end).

This is likely a GCC issue (I don't know whether GCC can be
configured/built so it knows sanitizers are not supported).

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-29 10:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28  6:11 gcc: cannot find -lubsan Steven Penny
2015-10-28 21:41 ` Yaakov Selkowitz
2015-10-29 15:45   ` Csaba Raduly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).