Summary: | sys-libs/readline-8.1_p2-r1:0/8[utils] - conftest.c:9:1: error: return type defaults to 'int' [-Werror=implicit-int] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | max |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=919256 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 sys-libs:readline-8.1_p2-r1:20220916-175415.log build.log (8.1_p2-r1) |
Description
Toralf Förster
2022-09-16 17:58:29 UTC
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]. Created attachment 868978 [details]
build.log (8.1_p2-r1)
Builds just fine with current clang-16 toolchain.
Probably obsolete?
I confirm that "-utils" works like a workaround for this c99 bug in readline. Thanks to Sam James in https://bugs.gentoo.org/919256 |