cc1: some warnings being treated as errors CC=cc; CFLAGS=-pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int; LIBS=; $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5 configure:3285: error: Can't run the compiler - sorry configure: error: Can't run the compiler - sorry ## ---------------- ## ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_systemd-j4-20220916-160005 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12.2.1 * clang/llvm (if any): /usr/lib/llvm/14 14.0.6 Python 3.10.6 Available Rust versions: [1] rust-bin-1.63.0 * php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit 975d806a2a3cb93cc6bc059cdd90d42d84cbe6e1 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Fri Sep 16 15:31:48 2022 +0000 2022-09-16 15:31:48 UTC emerge -qpvO sys-libs/readline [ebuild U ] sys-libs/readline-8.1_p2-r1 [8.1_p2] USE="(split-usr) (unicode) utils* -static-libs -verify-sig" ABI_X86="(64) -32 (-x32)"
Created attachment 805753 [details] emerge-info.txt
Created attachment 805756 [details] emerge-history.txt
Created attachment 805759 [details] environment
Created attachment 805762 [details] etc.portage.tar.bz2
Created attachment 805765 [details] logs.tar.bz2
Created attachment 805768 [details] sys-libs:readline-8.1_p2-r1:20220916-175415.log
checking for library containing strerror... none required conftest.c:9:1: error: return type defaults to 'int' [-Werror=implicit-int] 9 | main(){exit(0);} | ^~~~ conftest.c: In function 'main': conftest.c:9:8: error: implicit declaration of function 'exit' [-Werror=implicit-function-declaration] 9 | main(){exit(0);} | ^~~~ conftest.c:1:1: note: include '<stdlib.h>' or provide a declaration of 'exit' +++ |+#include <stdlib.h> 1 | /* confdefs.h */ conftest.c:9:8: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 9 | main(){exit(0);} | ^~~~ conftest.c:9:8: note: include '<stdlib.h>' or provide a declaration of 'exit' cc1: some warnings being treated as errors CC=cc; CFLAGS=-pipe -march=native -fno-diagnostics-color -O2 -Werror=implicit-function-declaration -Werror=implicit-int; LIBS=; $CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5
The newer version (8.2_p1) only has errors about prototypes: /var/tmp/portage/sys-libs/readline-8.2_p1/work/readline-8.2/text.c:1767:1: error: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype] I have a patch ready for the issues of that version (haven't backported the fix for the error above yet).
Please ignore comment 8, I cannot reproduce both the error in that comment (comment 8) and i also cannot reproduce the error stated in the bug title with clang-common-15.0.6[stricter].