Public bug reported:
On ubuntu:devel / Clang 21.1.8, all cmake fails with:
```
-- The CXX compiler identification is Clang 21.1.8
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - failed
-- Check for working CXX compiler: /usr/bin/clang++
CMake Error at /usr/share/cmake-4.2/Modules/CMakeTestCXXCompiler.cmake:73
(message):
-- Check for working CXX compiler: /usr/bin/clang++ - broken
The C++ compiler
"/usr/bin/clang++"
is not able to compile a simple test program.
It fails with the following output:
Change Dir:
'/__w/votca/votca/builddir/CMakeFiles/CMakeScratch/TryCompile-2qi2C4'
Run Build Command(s): /usr/bin/ninja -v cmTC_74085
[1/2] /usr/bin/clang++ -MD -MT
CMakeFiles/cmTC_74085.dir/testCXXCompiler.cxx.o -MF
CMakeFiles/cmTC_74085.dir/testCXXCompiler.cxx.o.d -o
CMakeFiles/cmTC_74085.dir/testCXXCompiler.cxx.o -c
/__w/votca/votca/builddir/CMakeFiles/CMakeScratch/TryCompile-2qi2C4/testCXXCompiler.cxx
[2/2] : && /usr/bin/clang++
CMakeFiles/cmTC_74085.dir/testCXXCompiler.cxx.o -o cmTC_74085 && :
FAILED: [code=1] cmTC_74085
: && /usr/bin/clang++ CMakeFiles/cmTC_74085.dir/testCXXCompiler.cxx.o -o
cmTC_74085 && :
/usr/bin/x86_64-linux-gnu-ld.bfd: cannot find -lstdc++: No such file or
directory
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
ninja: build stopped: subcommand failed.
```
For details see: https://github.com/votca/votca/issues/1233
** Affects: clang (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2144697
Title:
clang++ is not able to compile a simple test program
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/clang/+bug/2144697/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs