-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scan-build from libclang unable to find ccc-analyzer #151367
Comments
You need clang-analyzer before clang in `PATH` since the latter’s scan-build program will not be able to find ccc-analyzer program. NixOS#151367
The llvm code build system is quite convoluted. Otherwise we could have just disabled scan-build from |
You need clang-analyzer before clang in `PATH` since the latter’s scan-build program will not be able to find ccc-analyzer program. NixOS#151367
Possibly will be fixed by #144302 |
Still happening on |
Still happening on Darwin x86_64. Fix please! :) |
And on NixOS x86_64 too :( |
Still happening |
Hello, I have the same issue. So I checked all the files on my system for the binary.
In a flake that I use with both clang-tools and clang-analyzer, I have (2):
However, I have the followings that contains the ccc-analyzer executable from the output of (1), as it has been matched in (2):
Both paths are for the same package. In (2), the PATH just use:
According to the FHS specs it is normal to not find it in path. The issue happened several times in the past with Nix. For example with the #288267. So it seems to be a redundant problem with different packages. I am no expert in how Nix makes the packaging. So I just leave it here, but I guess it may just take the time of adding a few lines of code in a clang-analyzer's conf file somewhere. |
Still having this issue on wsl nixos x86_64 |
Describe the bug
scan-build
program fromlibclang
looks forccc-analyzer
in../libexec
but it is installed into a different output.Steps To Reproduce
Expected behaviour
scan-build
should findccc-analyzer
.Additional context
It works with
scan-build
fromclang-analyzer
:This is bug is especially annoying because when it is first on
PATH
, it shadows the working program.Possible solutions
scan-build
fromlibclang
so it has a canonical home inclang-analyzer
.lib
output.ccc-analyzer
toout
output.Notify maintainers
cc @lovek323 @7c6f434c @dtzWill @primeos (libclang)
cc @thoughtpolice @Mic92 (clang-analyzer)
Metadata
Nixpkgs a2e281f
Maintainer information:
The text was updated successfully, but these errors were encountered: