Skip to content
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

clang coverage test compile error with precompile headers #2275

Open
yestyle opened this issue Oct 25, 2024 · 0 comments
Open

clang coverage test compile error with precompile headers #2275

yestyle opened this issue Oct 25, 2024 · 0 comments

Comments

@yestyle
Copy link

yestyle commented Oct 25, 2024

Hi,

Similar to #1652, I got a build error when a combination of clang + test coverage + precompile headers:

sccache: encountered fatal error
sccache: error: failed to zip up compiler outputs
sccache: caused by: failed to zip up compiler outputs
sccache: caused by: failed to open file `"/home/yestyle/code/sccache-clang-pch/build_clang/CMakeFiles/main.dir/cmake_pch.hxx.gcno"`
sccache: caused by: failed to open file `/home/yestyle/code/sccache-clang-pch/build_clang/CMakeFiles/main.dir/cmake_pch.hxx.gcno`
sccache: caused by: No such file or directory (os error 2)

sccache version is 0.8.2 and no issues when building with g++.

Minimum reproducible example can be found in https://github.com/yestyle/sccache-clang-pch (build steps in build.sh).

Also similar to the fix for #1652, I tested a local build of sccache by changing optional to true here and it works. Not sure if there are any better solutions. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant