Skip to content

Static Linux SDK: build errors at cmake build #460

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

Open
xavgru12 opened this issue Apr 5, 2025 · 0 comments · May be fixed by #461
Open

Static Linux SDK: build errors at cmake build #460

xavgru12 opened this issue Apr 5, 2025 · 0 comments · May be fixed by #461

Comments

@xavgru12
Copy link

xavgru12 commented Apr 5, 2025

default access levels after clone in subdir of $HOME:

xaver@xaver-HP-EliteBook-860-16-inch-G10-Notebook-PC:~/code/static-linux-test/swift-ci/sdks/static-linux$ ll
total 36
drwxrwxr-x 5 xaver xaver 4096 Apr  5 14:52 ./
drwxrwxr-x 3 xaver xaver 4096 Apr  5 14:52 ../
-rwxrwxr-x 1 xaver xaver 1266 Apr  5 14:52 build*
-rw-rw-r-- 1 xaver xaver 2616 Apr  5 14:52 Dockerfile
-rw-rw-r-- 1 xaver xaver   16 Apr  5 14:52 .gitignore
-rw-rw-r-- 1 xaver xaver  898 Apr  5 14:52 README.md
drwxrwxr-x 5 xaver xaver 4096 Apr  5 14:52 resources/
drwxrwxr-x 2 xaver xaver 4096 Apr  5 14:52 scripts/

Executing: ./build

results in the following error at cmake build due to missing write access rights of ./source directory inside the docker container:

-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:65 (file):
  file failed to open for writing (No such file or directory):

    /source/swift-project/cmake/build/CMakeFiles/CMakeError.log
Call Stack (most recent call first):
  CMakeLists.txt:12 (project)


CMake Error at /usr/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:12 (project)


-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /source/swift-project/cmake/build/CMakeCache.txt.tmp83767
CMake Error: : System Error: No such file or directory
CMake Error: Unable to open cache file for save. /source/swift-project/cmake/build/CMakeCache.txt
CMake Error: : System Error: No such file or directory
@xavgru12 xavgru12 linked a pull request Apr 5, 2025 that will close this 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

Successfully merging a pull request may close this issue.

1 participant