This is the mail archive of the
mailing list for the Cygwin project.
Re: scan-build symlink from llvm/clang does not work in GNU Make
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 13 Feb 2012 12:19:42 -0500
- Subject: Re: scan-build symlink from llvm/clang does not work in GNU Make
- References: <email@example.com>
- Reply-to: cygwin at cygwin dot com
On Mon, Feb 13, 2012 at 06:40:31PM +0200, Oleksandr Gavenko wrote:
> $ cat Makefile.common
> # -e Override Makefile settings with env var to pass scan-build settings to Make.
> .PHONY: clang
> $$(realpath $$(which scan-build)) make -e -f $(MK_FILE) clean dist
> .PHONY: 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.
Could you try winnowing that down to a simple test case which
illustrates the problem?
And, please send the cygcheck output as requested by
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple