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

[BUG] devcontainer failing to compile cmake test program #1399

Open
DavidElesTheFox opened this issue Aug 16, 2024 · 0 comments
Open

[BUG] devcontainer failing to compile cmake test program #1399

DavidElesTheFox opened this issue Aug 16, 2024 · 0 comments

Comments

@DavidElesTheFox
Copy link
Contributor

I'm planning to suggest a small change around the tbbexec and its base pool.

First I wanted to try out my idea, how it would look like, in the stdexec environment. So, I've loaded the devcontainer but the compiler failed during the first cmake step, when the compiler is checked:

[1/2] /usr/bin/sccache /usr/bin/clang++    -MD -MT CMakeFiles/cmTC_0ee0d.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_0ee0d.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_0ee0d.dir/testCXXCompiler.cxx.o -c /home/coder/stdexec/build/CMakeFiles/CMakeScratch/TryCompile-pUMJrB/testCXXCompiler.cxx
[cmake]     FAILED: CMakeFiles/cmTC_0ee0d.dir/testCXXCompiler.cxx.o 
[cmake]     /usr/bin/sccache /usr/bin/clang++    -MD -MT CMakeFiles/cmTC_0ee0d.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_0ee0d.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_0ee0d.dir/testCXXCompiler.cxx.o -c /home/coder/stdexec/build/CMakeFiles/CMakeScratch/TryCompile-pUMJrB/testCXXCompiler.cxx
[cmake]     sccache: error: Server startup failed: cache storage failed to read: PermissionDenied (permanent) at stat => no valid credential found and anonymous access is not allowed
[cmake]     

The issue is around the sccache usage and authentication. I've found a similar issue with the cccl library. Thus, I've removed the SCCACHE environment variables from the devcontainer.json. It solved the issue.

I wouldn't like to suggest to create a new devcontainer setup for users who has no access to the sccache servers, rather to close this issue as a known issue and with the workarounds, to help others to find a solution.

What do you think? Do you have maybe a better solution for the issue?

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