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=RMwFFDX0YvmTeWEd1DQtuXxsQapDo Lhh7RowIfqDgPvaQQY2DWSyMvk6tTlfAlrOLJbSZ0/NjkQyx8FDHSggUcaFwO71P Gn1T6UU6gir3gaE0mRPgFyDqJZ8n45/bx1OPdR2S4d7OL0wpNDvesxVWxBF7eplQ xw6q31Aeui3qy4= 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=/ywvwQqiohZ4HVdKoJ6nIkvVl8E=; b=tSP +gPOaSbKUiJf1vUBKZVJsrgKmAodHMwLkuFMYzOeFIzTUgq2aT+afWHfVoDnT95U 9EA3YobVFTm0qFJR20kUsA/7ASO07uOas0AaRxt9XwhSsxyXWiDUifXaJLyDrltV u1dJfRrcfMsrqEtbHBvwT3FQ2XaBkD9bjm1gn1EA= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=ubsan.c, ubsanc, UD:ubsan.c X-HELO: mail-it0-f45.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=KKoNRZFyMyfgAA8uh5LHNTnSAEjn4/jVOg5g8argCMc=; b=LeoobsSTiUc++mSGivRU4wHaT6qIdCp1saz0+ENDc23tdxCGpFUkXpUKE2rfO1JErG +mVYnGP7mMR8j8OWCaGet1MflW3DZmYD02nmc917u7IkhL0A9nMdji7zhEbuMiNrQJSK qq2gmgSo9htiE6WEZ7zEGfAo7wKB06k3XCE0zsurYbbkU0VMZs6lR9CYXQQ8JtlPhTHF aBsr+qginfY1o6i0TgRHvF/kBfmXhK92U/8okB/t9mtKf/5kMTLPH5oFuLqteSDTd4Hd tSwRjav+aHuyUap7Ncy6XLtCpGsm0ndN5rByVaBj+lWCgPcpbKbea1pJD6tLDV4PNEd1 EeWQ== X-Gm-Message-State: AElRT7GDcKVEdLjcyY6Y4mxnHPck1ucRAL83ThZ9ZJ/hFz+1u6h3UJ4J E74ou0N2/lsjvUXQ/f2K3Q7sEUMuCP+0tE6yjlE= X-Google-Smtp-Source: AIpwx49IsrEN3LKhiwLSq5as7yL6jKEsoxpEtSex0H0SVfb61eFcizMRoidNH7AQy3VsXPgUZ+JgDfiQqICOfxqKgx0= X-Received: by 2002:a24:56d5:: with SMTP id o204-v6mr219382itb.88.1522172358646; Tue, 27 Mar 2018 10:39:18 -0700 (PDT) MIME-Version: 1.0 From: Lee Date: Tue, 27 Mar 2018 13:39:18 -0400 Message-ID: Subject: gcc -fsanitize => cannot find -lubsan To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes 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?? Thanks Lee -- 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