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!
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!
16 Replies
Use distrobox
I got boxbuddy
Good, make a box of your choosing and build in there
As long as the required dependencies are installed, it would build the exact same way it would on the actual distro
GitHub
Obsidian/COMPILING.md at obsidian · obsidian-level-maker/Obsidian
A community continuation of the OBLIGE Level Maker, originally by Andrew Apted, combined with ObAddon. - obsidian-level-maker/Obsidian
Solution
Yeah, run all of that in the box.
You're doing it on the host in your example, which is why you don't have LD
[zrehirs@debian zrehirs]$ cmake --version
bash: cmake: command not found
Install it
I'll mark this as done once I confirm it compiles, but so far dependencies are being installed with no problem
Given the nature of this tool once it's done, you can install it and export it from the box
export it from?
The box, so it shows up as an application on the host
I mean I could still run it on the host?
right?
Yeah, but there's no reason to
all good