[BUG] devcontainer failing to compile cmake test program
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.4k
- Forks
- 270
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 39
Description
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?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the devcontainer.json configuration and reproduce the initial CMake compiler check shown in the report. Compare behavior with the SCCACHE environment variables removed; done means the devcontainer can complete configuration for users without sccache server credentials, or the limitation and workaround are clearly recorded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system, developer-experience
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100