This update broke gcc/g++:
-- The CXX compiler identification is GNU 12.1.1
-- 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/Modules/CMakeTestCXXCompiler.cmake:62 (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/ave/Documents/oss/wors_tracer/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_6166d && [1/2] Building CXX object CMakeFiles/cmTC_6166d.dir/testCXXCompiler.cxx.o
[2/2] Linking CXX executable cmTC_6166d
FAILED: cmTC_6166d
: && /usr/bin/c++ CMakeFiles/cmTC_6166d.dir/testCXXCompiler.cxx.o -o cmTC_6166d && :
/usr/bin/ld: /usr/lib/libm.so.6: unknown type [0x13] section `.relr.dyn'
/usr/bin/ld: skipping incompatible /usr/lib/libm.so.6 when searching for /usr/lib/libm.so.6
/usr/bin/ld: cannot find /usr/lib/libm.so.6
/usr/bin/ld: /usr/lib/libm.so.6: unknown type [0x13] section `.relr.dyn'
/usr/bin/ld: skipping incompatible /usr/lib/libm.so.6 when searching for /usr/lib/libm.so.6
/usr/bin/ld: /usr/lib/libmvec.so.1: unknown type [0x13] section `.relr.dyn'
/usr/bin/ld: skipping incompatible /usr/lib/libmvec.so.1 when searching for /usr/lib/libmvec.so.1
/usr/bin/ld: cannot find /usr/lib/libmvec.so.1
/usr/bin/ld: /usr/lib/libmvec.so.1: unknown type [0x13] section `.relr.dyn'
/usr/bin/ld: skipping incompatible /usr/lib/libmvec.so.1 when searching for /usr/lib/libmvec.so.1
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
Or is the issue deeper than I can see?
❯ pacman -F /usr/lib/libm.so.6
usr/lib/libm.so.6 is owned by core/glibc 2.35-6
❯ pacman -Qi glibc
Name : glibc
Version : 2.36-1
So why is libm owned by an old glibc? Wasn’t it supposed to be upgraded?..
Anyways, downgrading gcc, gcc-libs, glibc and lib32-glibc, clang, llvm, llvm-libs helped. Please fix.