serial
serial copied to clipboard
make command broken out of the box
Steps to reproduce (from the README):
$ git clone https://github.com/wjwwood/serial.git
$ cd serial
$ make
Output:
cd build && cmake -DCMAKE_INSTALL_PREFIX=/tmp/usr/local ..
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 2.8.12 will be removed from a future version of
CMake.
Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.
-- The C compiler identification is GNU 12.3.0
-- The CXX compiler identification is Clang 15.0.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/gcc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
CMake Error at /usr/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/loup/projects/_ext/serial/build/CMakeFiles/CMakeScratch/TryCompile-kBMdvf
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_11a87/fast && gmake[1]: Entering directory '/home/loup/projects/_ext/serial/build/CMakeFiles/CMakeScratch/TryCompile-kBMdvf'
/usr/bin/gmake -f CMakeFiles/cmTC_11a87.dir/build.make CMakeFiles/cmTC_11a87.dir/build
gmake[2]: Entering directory '/home/loup/projects/_ext/serial/build/CMakeFiles/CMakeScratch/TryCompile-kBMdvf'
Building CXX object CMakeFiles/cmTC_11a87.dir/testCXXCompiler.cxx.o
/usr/bin/c++ -MD -MT CMakeFiles/cmTC_11a87.dir/testCXXCompiler.cxx.o -MF CMakeFiles/cmTC_11a87.dir/testCXXCompiler.cxx.o.d -o CMakeFiles/cmTC_11a87.dir/testCXXCompiler.cxx.o -c /home/loup/projects/_ext/serial/build/CMakeFiles/CMakeScratch/TryCompile-kBMdvf/testCXXCompiler.cxx
Linking CXX executable cmTC_11a87
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_11a87.dir/link.txt --verbose=1
/usr/bin/c++ -rdynamic CMakeFiles/cmTC_11a87.dir/testCXXCompiler.cxx.o -o cmTC_11a87
/usr/bin/ld: cannot find -lstdc++: No such file or directory
clang: error: linker command failed with exit code 1 (use -v to see invocation)
gmake[2]: *** [CMakeFiles/cmTC_11a87.dir/build.make:100: cmTC_11a87] Error 1
gmake[2]: Leaving directory '/home/loup/projects/_ext/serial/build/CMakeFiles/CMakeScratch/TryCompile-kBMdvf'
gmake[1]: *** [Makefile:127: cmTC_11a87/fast] Error 2
gmake[1]: Leaving directory '/home/loup/projects/_ext/serial/build/CMakeFiles/CMakeScratch/TryCompile-kBMdvf'
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/loup/projects/_ext/serial/build/CMakeFiles/CMakeOutput.log".
See also "/home/loup/projects/_ext/serial/build/CMakeFiles/CMakeError.log".
make: *** [Makefile:36: serial] Error 1
Running on the Ubuntu 23.04, with the following versions:
$ cmake --version
cmake version 3.25.1
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ /usr/bin/c++ --version
Ubuntu clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
Did I miss something?
same problem anyone can help?