From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99783 invoked by alias); 27 Mar 2018 18:48:57 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 99174 invoked by uid 89); 27 Mar 2018 18:48:56 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=canada, Canada, calgary, Calgary X-HELO: smtp-out-so.shaw.ca Received: from smtp-out-so.shaw.ca (HELO smtp-out-so.shaw.ca) (64.59.136.139) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 27 Mar 2018 18:48:55 +0000 Received: from [192.168.1.100] ([24.64.240.204]) by shaw.ca with ESMTP id 0teNfkBPfYxCT0teOfIQbn; Tue, 27 Mar 2018 12:48:53 -0600 X-Authority-Analysis: v=2.3 cv=cav8UELM c=1 sm=1 tr=0 a=MVEHjbUiAHxQW0jfcDq5EA==:117 a=MVEHjbUiAHxQW0jfcDq5EA==:17 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=CCpqsmhAAAAA:8 a=w5aJ8kaLLAry8Qfnm_kA:9 a=QEXdDO2ut3YA:10 a=w-1DDTvkydkA:10 a=sRI3_1zDfAgwuvI8zelB:22 a=ul9cdbp4aOFLsgKbc677:22 Reply-To: Brian.Inglis@SystematicSw.ab.ca Subject: Re: gcc -fsanitize => cannot find -lubsan To: cygwin@cygwin.com References: From: Brian Inglis Message-ID: <92610c1d-1d3b-eb62-ad8e-d2bc611e572c@SystematicSw.ab.ca> Date: Tue, 27 Mar 2018 19:15:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfLNktmqIWk9JY1bc9/OvMjh65b6CpmpaCwW9HXo65yr6NK2TQrMQJKOu6g116C7MrTUkBWd63dK8qaKPoqoa3/6vbvX9XBlR3xCaKDyl/97M4BBgDapl fg57rgv9RytutRjYPP20CUYiILkHlVqFZQACeEVmMYgwAyPX8w9Gma6PDx54EDri1Lea/y5q2Z0c2A== X-IsSubscribed: yes X-SW-Source: 2018-03/txt/msg00421.txt.bz2 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