Menu

#171 Clang-analyzer issue

1.0
open
Alexx83
2015-07-05
2015-07-02
No

Hello,

I have met some issue with clang-analyzer-3.6.1-2 build for mingw64 and mingw32. Maybe I missed something but it seems not working.
When I try to pass mingw32-make command it will always say to me that:
C:/msys64/mingw64/bin/bin/clang: No such file or directory at C:/msys64/mingw64/bin/scan-build line 1599.

I guess the issue with this doubled /bin/bin, but I am not sure that I can fix it by myself.

Could you advise me what to do?

Discussion

  • Ray Donnelly

    Ray Donnelly - 2015-07-02

    Please list exact reproduction steps.

     
  • Vladimir Petrigo

    Nothing special, even when I type scan-build --help it gives:

    $ scan-build --help
    C:/msys64/mingw64/bin/bin/clang: No such file or directory at C:/msys64/mingw64/bin/scan-build line 1599.
    

    Output of 'uname -a':

    MINGW64_NT-6.1 2.1.0(0.287/5/3) 2015-06-28 14:17 x86_64 Msys

     

    Last edit: Vladimir Petrigo 2015-07-02
  • Alexx83

    Alexx83 - 2015-07-05

    This is clang scan-build script issue I think. I'm not expert in perl but I see next:

    use FindBin qw($RealBin);
    ...
    $Clang = Cwd::realpath("$RealBin/bin/clang"); <==== This is line 1599
    if (!defined $Clang || ! -x $Clang) {
    $Clang = Cwd::realpath("$RealBin/clang");
    }
    ...

    As I understand FindBin return path to script directory (http://perldoc.perl.org/FindBin.html)

     

    Last edit: Alexx83 2015-07-05
    • Vladimir Petrigo

      Hello Alex,

      Thank for your reply and sorry for delay. I changed the line 1599 to

      $Clang = Cwd::realpath("$RealBin/bin/clang");
      to
      $Clang = Cwd::realpath("$RealBin/clang");

      and after that it says that it missed ccc-analyzer and c++-analyzer. After I took it from here for c++-analyzer and for ccc-analyzer it seems to be working correctly. But I wonder why these files missed after the clang-analyzer package installed.