Skip to content

cmake fails with clang related errors #213

@ghost

Description

Describe the bug
I upgraded to image version 0E210 and tried to build Filer again from scratch. I checked out the repo, created a build directory and did cmake .. from within, but got this error:

hellochris% cmake ../              
-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.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/local/share/cmake/Modules/CMakeTestCCompiler.cmake:66 (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/chris/Projects/Filer/build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make cmTC_7341e/fast && /usr/bin/make  -f CMakeFiles/cmTC_7341e.dir/build.make CMakeFiles/cmTC_7341e.dir/build
    Building C object CMakeFiles/cmTC_7341e.dir/testCCompiler.c.o
    /usr/bin/cc    -o CMakeFiles/cmTC_7341e.dir/testCCompiler.c.o -c /home/chris/Projects/Filer/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_7341e
    /usr/local/bin/cmake -E cmake_link_script CMakeFiles/cmTC_7341e.dir/link.txt --verbose=1
    /usr/bin/cc CMakeFiles/cmTC_7341e.dir/testCCompiler.c.o -o cmTC_7341e 
    ld: error: unable to find library -lgcc
    ld: error: unable to find library -lgcc
    cc: error: linker command failed with exit code 1 (use -v to see invocation)
    *** Error code 1
    
    Stop.
    make[1]: stopped in /usr/home/chris/Projects/Filer/build/CMakeFiles/CMakeTmp
    *** Error code 1
    
    Stop.
    make: stopped in /usr/home/chris/Projects/Filer/build/CMakeFiles/CMakeTmp
    
    

  

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


-- Configuring incomplete, errors occurred!
See also "/home/chris/Projects/Filer/build/CMakeFiles/CMakeOutput.log".
See also "/home/chris/Projects/Filer/build/CMakeFiles/CMakeError.log".

To Reproduce
Steps to reproduce the behavior:
Install version 0E210, check out Filer, attempt to run cmake

Version
https://github.com/helloSystem/ISO/releases/tag/experimental-12.2
0E210

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions