This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: scan-build symlink from llvm/clang does not work in GNU Make (ACTUALLY Make problem with symlinks)

On 2012-02-13, Christopher Faylor wrote:
> Could you try winnowing that down to a simple test case which
> illustrates the problem?

My first fault that I have 'scan-build' from old manual install. I clean my

Next problem come from GNU Make and does not related to LLVM/Clang. Make can
not resolve relative symlink:

  $ ls -l `which scan-build`

  lrwxrwxrwx 1 user root 45 фев 13 12:34 /usr/bin/scan-build -> ../share/clang-analyzer/scan-build/scan-build

  $ cat Makefile

  SHELL = /bin/sh
      echo $(CC)
      $$(realpath $$(which scan-build)) make -e -f Makefile all
      scan-build make -e -f Makefile all

  $ make clang-good

  $(realpath $(which scan-build)) make -e -f Makefile all
  scan-build: 'clang' executable not found in '/usr/share/clang-analyzer/scan-build/bin'.
  scan-build: Using 'clang' from path: /usr/bin/clang
  make[1]: Entering directory `/cygdrive/d/home/tmp'
  echo /usr/share/clang-analyzer/scan-build/ccc-analyzer
  make[1]: Leaving directory `/cygdrive/d/home/tmp'
  scan-build: Removing directory '/tmp/scan-build-2012-02-14-1' because it contains no reports.

  $ make clang-bad

  scan-build make -e -f Makefile all
  make: scan-build: Command not found
  Makefile:7: recipe for target `clang-bad' failed

> And, please send the cygcheck output as requested by
> .

Attachment: cygcheck.out
Description: cygcheck -s -v -r

Best regards!

Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]