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!
Solution:
Yeah, run all of that in the box.
Jump to solution
16 Replies
Kyle Gospo
Kyle Gospo3mo ago
Use distrobox
Hawk
HawkOP3mo ago
I got boxbuddy
Kyle Gospo
Kyle Gospo3mo ago
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
Hawk
HawkOP3mo ago
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
Kyle Gospo
Kyle Gospo3mo ago
Yeah, run all of that in the box.
Kyle Gospo
Kyle Gospo3mo ago
You're doing it on the host in your example, which is why you don't have LD
Hawk
HawkOP3mo ago
[zrehirs@debian zrehirs]$ cmake --version bash: cmake: command not found
Kyle Gospo
Kyle Gospo3mo ago
Install it
Hawk
HawkOP3mo ago
I'll mark this as done once I confirm it compiles, but so far dependencies are being installed with no problem
Kyle Gospo
Kyle Gospo3mo ago
Given the nature of this tool once it's done, you can install it and export it from the box
Hawk
HawkOP3mo ago
export it from?
Kyle Gospo
Kyle Gospo3mo ago
The box, so it shows up as an application on the host
Hawk
HawkOP3mo ago
I mean I could still run it on the host? right?
Kyle Gospo
Kyle Gospo3mo ago
Yeah, but there's no reason to
Hawk
HawkOP3mo ago
all good
Hawk
HawkOP3mo ago
No description
Want results from more Discord servers?
Add your server