X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:subject:from:to:date:in-reply-to
	:references:content-type:mime-version:content-transfer-encoding;
	 q=dns; s=default; b=iWS7qvP1DiMlV9ydCBgbozhY42M9ap+j2ci/ZMGWLjy
	t/IOnHAamwkpvOUS7xcBEXVOc3lD/yzXw2Euet7jnMwUILOSs3why2/rjKvmdr5p
	F3HaCmi6PUjHd6rKFguuccmDUp1K5y3FN8dq8My/XyXra3+lUsfVtCtLq0PzOux4
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:subject:from:to:date:in-reply-to
	:references:content-type:mime-version:content-transfer-encoding;
	 s=default; bh=ounFQnvpmFdV0hN1M+I86Rdcvmc=; b=DYCiP0ZrOwWxQvKVe
	8ITj729+kGnAhuFQhNN1dM5s/bTCjEJhjRp7JKNLpoUEzXX4WWfCnkhD0oyI8J8X
	P4Vwpyrm33mp+1iDCunmYF/7CHieJwVNtkKpH2v5xfFdp8rWxseTCMvODAqRViU1
	Fi52LLMWekjK9wSAlR8qO01Q6M=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL,BAYES_20,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2
X-HELO: mx1.redhat.com
Message-ID: <1446050188.14224.1.camel@cygwin.com>
Subject: Re: gcc: cannot find -lubsan
From: Yaakov Selkowitz <yselkowitz@cygwin.com>
To: cygwin@cygwin.com
Date: Wed, 28 Oct 2015 11:36:28 -0500
In-Reply-To: <CAAXzdLUP44BMpxHBsW+BR0Vi4KgQdcEZ6AtcjCboBQ4=-gXwBA@mail.gmail.com>
References: 	<CAAXzdLUP44BMpxHBsW+BR0Vi4KgQdcEZ6AtcjCboBQ4=-gXwBA@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

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

