NVIDIA / NVIDIA/stdexec

[BUG] devcontainer failing to compile cmake test program

Open
#1,399 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.