libhal-google / libhal

A collection of interfaces and abstractions for embedded peripherals and devices using modern C++
Apache License 2.0
86 stars 17 forks source link

Figure out how to add ubuntu + clang to CI #657

Open kammce opened 1 year ago

kammce commented 1 year ago

Current doesn't work due to the

-- Using Conan toolchain: /home/runner/work/libhal/libhal/test_package/build/Debug/generators/conan_toolchain.cmake
-- The CXX compiler identification is GNU 11.3.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ - broken
-- Configuring incomplete, errors occurred!
See also "/home/runner/work/libhal/libhal/test_package/build/Debug/CMakeFiles/CMakeOutput.log".
See also "/home/runner/work/libhal/libhal/test_package/build/Debug/CMakeFiles/CMakeError.log".
CMake Error at /home/runner/.local/lib/python3.10/site-packages/cmake/data/share/cmake-3.25/Modules/CMakeTestCXXCompiler.cmake:63 (message):
  The C++ compiler

    "/usr/bin/c++"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /home/runner/work/libhal/libhal/test_package/build/Debug/CMakeFiles/CMakeScratch/TryCompile-xwU2B5

    Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_ddd7a/fast && /usr/bin/gmake  -f CMakeFiles/cmTC_ddd7a.dir/build.make CMakeFiles/cmTC_ddd7a.dir/build
    gmake[1]: Entering directory '/home/runner/work/libhal/libhal/test_package/build/Debug/CMakeFiles/CMakeScratch/TryCompile-xwU2B5'
    Building CXX object CMakeFiles/cmTC_ddd7a.dir/testCXXCompiler.cxx.o
    /usr/bin/c++   -m64 -stdlib=libc++  -o CMakeFiles/cmTC_ddd7a.dir/testCXXCompiler.cxx.o -c /home/runner/work/libhal/libhal/test_package/build/Debug/CMakeFiles/CMakeScratch/TryCompile-xwU2B5/testCXXCompiler.cxx
    c++: error: unrecognized command-line option ‘-stdlib=libc++’
    gmake[1]: *** [CMakeFiles/cmTC_ddd7a.dir/build.make:78: CMakeFiles/cmTC_ddd7a.dir/testCXXCompiler.cxx.o] Error 1
    gmake[1]: Leaving directory '/home/runner/work/libhal/libhal/test_package/build/Debug/CMakeFiles/CMakeScratch/TryCompile-xwU2B5'
    gmake: *** [Makefile:127: cmTC_ddd7a/fast] Error 2