X-Recipient: archive-cygwin AT delorie DOT 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:mime-version:from:date:message-id:subject:to
	:content-type; q=dns; s=default; b=QSjgO6TM69FdODXoZASVw2Oswakiw
	vHxotz6Vzvc3RohCVodptKFT9U8o2DLj89OiYari09Izd0AXjVXuPPighbmHnjSx
	zK6JEiiK2rwcfDIuU6a/i38jUYG2o28SSPN2wddy8KitGINn/DZ7yH92C/qI57A8
	bp+4yBDuchqbEw=
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:mime-version:from:date:message-id:subject:to
	:content-type; s=default; bh=rZqv2F0e9Kh3UQWiZMCCUDSbaMc=; b=Q2T
	wRhB0Y94zUsUJUSJ0up7601G2DBBYju+718ZiuNu0lUL/I+3Cy/hS6Eu/5VP4ss9
	S7WqrSa8C9voetKnHCYmjMjujLwE7RLe+fyuQDyec3ToseR58s8hqSLNSyVcUCXR
	rAxll0T03uyEfvbs7HIPGu7iziYGwNLwKOnk2Y4o=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:209.85.218.50, H*RU:209.85.218.50
X-HELO: mail-oi0-f50.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20130820;        h=x-gm-message-state:mime-version:from:date:message-id:subject:to;        bh=vcZ9JpeHxLHvWsYjxuT9ggMo1Yya8HGiBnWKujS58GI=;        b=RvzaaszXm8Q+LD7iUY2xuIoZz84iXsx3GyCIegxLC8SqUSzXq9v5T6hGKY+1H1khea         uVM8dGUTA/vjfUqohSZ6VChhDsuvbEGG1x6g+pX6Nsg10QAfvz85rjf8cgt1wzF4M3zk         8mkmnjGz1AUTloBOOUgpF5Yh3wQtGJTF1qiLc04HnQ/wV800Rpi1AmcNsesW3aG+gx7o         x/aOtEgnQiZxkx9UXUvHFLlbz0ii5G3EEjbRIOwV/ixxXKwS43LmbUVHUc1sjMR5c+3H         e6w3Zo8A6UqbF/mUd/H3O50XHDm0C+sbBsxV7TxpIHa3Vaxm3H/Hz+tojevRz1tSTqMU         QdSA==
X-Gm-Message-State: AD7BkJL6HPY9EcByQW8JAZW58nhIXe3oswL8iuZP9kOKXL2hZTl5pb/ujeHduH8A9gx9ARWiwGXWAXXzi55g9g==
X-Received: by 10.202.195.69 with SMTP id t66mr1275554oif.26.1459433335072; Thu, 31 Mar 2016 07:08:55 -0700 (PDT)
MIME-Version: 1.0
From: Peter Foley <pefoley2 AT pefoley DOT com>
Date: Thu, 31 Mar 2016 10:08:35 -0400
Message-ID: <CAOFdcFNt7R5LJaJPQkfZXULJrXnKx-HerLhXMudkZgNsWFqjkA@mail.gmail.com>
Subject: GCC package missing sanitize helper libraries
To: cygwin AT cygwin DOT com
Content-Type: text/plain; charset=UTF-8

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