You are not logged in.
Hi all. I don't have a GitLab account to open a bug report.
gcc 16.1.1+r346+g4e03491b401d-1 broke clang 22.1.8-1
I think this is related: Move some libgcc related files to $_libdir
Steps to reproduce:
1. Try compiling lib32-mesa with clang
ecking for function "__builtin_ia32_clflushopt" : NO
Checking if "GCC atomic builtins" compiles: YES
Checking if "GCC atomic builtins required -latomic" links: NO
../mesa-26.1.4/meson.build:1493:20: ERROR: C shared or static library 'atomic' not foundNote: works with gcc 16.1.1+r346+g4e03491b401d-1
2. Try compiling lib32-llvm with clang
- The C compiler identification is Clang 22.1.8
-- The CXX compiler identification is Clang 22.1.8
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /usr/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang - broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:67 (message):
The C compiler
"/usr/bin/clang"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: '~/chroot-pkg/rebuild-llvm/lib32-llvm-all-test/src/build/CMakeFiles/CMakeScratch/TryCompile-kpHcuR'
Run Build Command(s): /usr/bin/ninja -v cmTC_b63e3
[1/2] /usr/bin/clang -m32 -MD -MT CMakeFiles/cmTC_b63e3.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_b63e3.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_b63e3.dir/testCCompiler.c.o -c /home/pasazer/chroot-pkg/rebuild-llvm/lib32-llvm-all-test/src/build/CMakeFiles/CMakeScratch/TryCompile-kpHcuR/testCCompiler.c
[2/2] : && /usr/bin/clang -m32 -fuse-ld=lld -Wl,-O0,-z,relro,-z,now CMakeFiles/cmTC_b63e3.dir/testCCompiler.c.o -o cmTC_b63e3 && :
FAILED: [code=1] cmTC_b63e3
: && /usr/bin/clang -m32 -fuse-ld=lld -Wl,-O0,-z,relro,-z,now CMakeFiles/cmTC_b63e3.dir/testCCompiler.c.o -o cmTC_b63e3 && :
ld.lld: error: unable to find library -lgcc_s
ld.lld: error: unable to find library -lgcc_s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:46 (project)
-- Configuring incomplete, errors occurred!Edit:
Pleas see note_508533
Last edited by blablo (2026-07-04 18:41:43)
Offline