DanielOgorchock / joycond

userspace daemon to combine joy-cons from the hid-nintendo kernel driver
GNU General Public License v3.0
338 stars 68 forks source link

cmake fails Fedora #141

Open FredsMedia opened 3 months ago

FredsMedia commented 3 months ago

Hey all, I am using bazzite on my steam deck (Fedora kinoite but modified) and everything seems to install fine until I run cmake . and I get this:

-- The C compiler identification is GNU 13.2.1
-- The CXX compiler identification is GNU 13.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: '/home/user/joycond/CMakeFiles/CMakeScratch/TryCompile-RsgeEn'
    
    Run Build Command(s): /usr/bin/cmake -E env VERBOSE=1 /usr/bin/gmake -f Makefile cmTC_e711c/fast
    /usr/bin/gmake  -f CMakeFiles/cmTC_e711c.dir/build.make CMakeFiles/cmTC_e711c.dir/build
    gmake[1]: Entering directory '/var/home/user/joycond/CMakeFiles/CMakeScratch/TryCompile-RsgeEn'
    Building C object CMakeFiles/cmTC_e711c.dir/testCCompiler.c.o
    /usr/bin/cc    -o CMakeFiles/cmTC_e711c.dir/testCCompiler.c.o -c /home/user/joycond/CMakeFiles/CMakeScratch/TryCompile-RsgeEn/testCCompiler.c
    Linking C executable cmTC_e711c
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_e711c.dir/link.txt --verbose=1
    /usr/bin/cc CMakeFiles/cmTC_e711c.dir/testCCompiler.c.o -o cmTC_e711c
    collect2: fatal error: cannot find ‘ld’
    compilation terminated.
    gmake[1]: *** [CMakeFiles/cmTC_e711c.dir/build.make:99: cmTC_e711c] Error 1
    gmake[1]: Leaving directory '/var/home/user/joycond/CMakeFiles/CMakeScratch/TryCompile-RsgeEn'
    gmake: *** [Makefile:127: cmTC_e711c/fast] Error 2
    
    

 

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

-- Configuring incomplete, errors occurred!

gcc is installed and both libevdev-devel and libudev-devel are installed.