Skip to content
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

cmake fails Fedora #141

Open
FredsMedia opened this issue Mar 30, 2024 · 1 comment
Open

cmake fails Fedora #141

FredsMedia opened this issue Mar 30, 2024 · 1 comment

Comments

@FredsMedia
Copy link

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.

@doublespoonco
Copy link

Try installing gcc-c++

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

No branches or pull requests

2 participants