helloSystem / ISO

helloSystem Live and installation ISO
https://github.com/helloSystem/
BSD 3-Clause "New" or "Revised" License
806 stars 58 forks source link

cmake fails with clang related errors #213

Closed ghost closed 3 years ago

ghost commented 3 years ago

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

probonopd commented 3 years ago

Before the change above, hello-0.5.0_0E213-FreeBSD-12.2-amd64.iso was 1.28 GB. After the change, hello-0.5.0_0E219-FreeBSD-12.2-amd64.iso is 1.27 GB. Some things I don't understand...

probonopd commented 3 years ago

Thanks for reporting @moochris .

On 0E219+ (without deleting the .a files from the ISO) it compiles again. Probably deleting the .a files from the ISO was causing more hassle than it has advantages.

ghost commented 3 years ago

Oh OK, great - I will update