Skip to content

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

Open

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions