can't cmake build
wtf am I supposed to do
zrehirs@bazzite:/var/home/zrehirs/Obsidian$ cmake -B build -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/var/home/zrehirs/Obsidian/build/CMakeFiles/CMakeScratch/TryCompile-XgpHtF'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_7c059/fast
/usr/bin/gmake -f CMakeFiles/cmTC_7c059.dir/build.make CMakeFiles/cmTC_7c059.dir/build
gmake[1]: Entering directory '/var/home/zrehirs/Obsidian/build/CMakeFiles/CMakeScratch/TryCompile-XgpHtF'
Building C object CMakeFiles/cmTC_7c059.dir/testCCompiler.c.o
/usr/bin/cc -std=gnu99 -o CMakeFiles/cmTC_7c059.dir/testCCompiler.c.o -c /var/home/zrehirs/Obsidian/build/CMakeFiles/CMakeScratch/TryCompile-XgpHtF/testCCompiler.c
Linking C executable cmTC_7c059
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7c059.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_7c059.dir/testCCompiler.c.o -o cmTC_7c059
collect2: fatal error: cannot find ‘ld’
compilation terminated.
gmake[1]: [CMakeFiles/cmTC_7c059.dir/build.make:99: cmTC_7c059] Error 1
gmake[1]: Leaving directory '/var/home/zrehirs/Obsidian/build/CMakeFiles/CMakeScratch/TryCompile-XgpHtF'
gmake: [Makefile:127: cmTC_7c059/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
source_files/filename_formatter/CMakeLists.txt:5 (project)
-- Configuring incomplete, errors occurred!
zrehirs@bazzite:/var/home/zrehirs/Obsidian$ cmake -B build -DCMAKE_BUILD_TYPE=Release
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/cc"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '/var/home/zrehirs/Obsidian/build/CMakeFiles/CMakeScratch/TryCompile-XgpHtF'
Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_7c059/fast
/usr/bin/gmake -f CMakeFiles/cmTC_7c059.dir/build.make CMakeFiles/cmTC_7c059.dir/build
gmake[1]: Entering directory '/var/home/zrehirs/Obsidian/build/CMakeFiles/CMakeScratch/TryCompile-XgpHtF'
Building C object CMakeFiles/cmTC_7c059.dir/testCCompiler.c.o
/usr/bin/cc -std=gnu99 -o CMakeFiles/cmTC_7c059.dir/testCCompiler.c.o -c /var/home/zrehirs/Obsidian/build/CMakeFiles/CMakeScratch/TryCompile-XgpHtF/testCCompiler.c
Linking C executable cmTC_7c059
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7c059.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_7c059.dir/testCCompiler.c.o -o cmTC_7c059
collect2: fatal error: cannot find ‘ld’
compilation terminated.
gmake[1]: [CMakeFiles/cmTC_7c059.dir/build.make:99: cmTC_7c059] Error 1
gmake[1]: Leaving directory '/var/home/zrehirs/Obsidian/build/CMakeFiles/CMakeScratch/TryCompile-XgpHtF'
gmake: [Makefile:127: cmTC_7c059/fast] Error 2
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
source_files/filename_formatter/CMakeLists.txt:5 (project)
-- Configuring incomplete, errors occurred!