delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,RCVD_NUMERIC_HELO,SPF_HELO_PASS,TW_LR,TW_RW,TW_WX,TW_XR,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Oleksandr Gavenko <gavenko AT bifit DOT com DOT ua> |
Subject: | scan-build symlink from llvm/clang does not work in GNU Make |
Date: | Mon, 13 Feb 2012 18:40:31 +0200 |
Lines: | 33 |
Message-ID: | <84wr7q1ybk.fsf@bifit.com.ua> |
Mime-Version: | 1.0 |
User-Agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (windows-nt) |
X-IsSubscribed: | yes |
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 |
$ cat Makefile.common # -e Override Makefile settings with env var to pass scan-build settings to Make. .PHONY: clang clang: $$(realpath $$(which scan-build)) make -e -f $(MK_FILE) clean dist .PHONY: clang2 clang2: scan-build make -e -f $(MK_FILE) clean dist If you run scan-build directly from Make you get: $ make -f Makefile.win-gcc-npapi clang2 /cygdrive/d/home/devel/llvm/tools/clang/tools/scan-build/bin/clang: No such file or directory at /cygdrive/d/home/devel/llvm/tools/clang/tools/scan-build/scan-build line 84 Makefile.common-pre:234: recipe for target `clang2' failed If you resolve path to 'scan-build' (as this done in 'clang' target, see above) all work ok. $ ls -l `which scan-build` lrwxrwxrwx 1 user root 45 τεβ 13 12:34 /usr/bin/scan-build -> ../share/clang-analyzer/scan-build/scan-build GNU Make from Cygwin. -- Best regards! -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |