Summary: | sys-libs/ncurses-6.4_p20230401 has implicit function declarations in configure logs (MUSL-SYSTEM) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Gentoo's Team for Core System packages <base-system> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | erhard_f, eschwartz |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | fixed in 6.4_p20240414 | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 906027 | ||
Attachments: |
build.log.xz
build.log (ppc, 6.4_p20230401) |
Description
Agostino Sarubbo
![]() Created attachment 864041 [details]
build.log.xz
build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Found the following implicit function declarations in configure logs: config.log:719 - wcwidth config.log:1926 - posix_openpt config.log:1708 - posix_openpt config.log:719 - wcwidth config.log:1904 - posix_openpt config.log:1686 - posix_openpt Created attachment 886900 [details]
build.log (ppc, 6.4_p20230401)
Fails to build with GCC 14 on ppc/musl:
[...]
powerpc-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -DBUILDING_NCURSES -I../ncurses -I. -I/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses -I../include -I/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/../include -D_POSIX_C_SOURCE=199506L -DNDEBUG -Os -mcpu=7450 -mtune=7450 -pipe --param max-inline-insns-single=1200 -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wextra -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wno-inline -Wignored-qualifiers -Wlogical-op -Wvarargs -Wwrite-strings -Wno-unknown-pragmas -Wswitch-enum -fPIC -DUSE_TERMLIB -c /var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/tinfo/lib_acs.c -o ../obj_s/lib_acs.o
/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/tinfo/lib_acs.c: In function '_nc_wacs_width':
/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/tinfo/lib_acs.c:321:18: error: implicit declaration of function 'wcwidth' [-Wimplicit-function-declaration]
321 | result = wcwidth(ch);
| ^~~~~~~
/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/tinfo/lib_acs.c:321:18: warning: nested extern declaration of 'wcwidth' [-Wnested-externs]
make[1]: *** [Makefile:1016: ../obj_s/lib_acs.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4-.ppc/ncursesw/ncurses'
make: *** [Makefile:135: all] Error 2
After various changes upstream: - The original reported version 6.4_p20230401 (as present in the ::gentoo tree) has this issue. - The slightly more recent stable version 6.4_p20240414 (as present in the ::gentoo tree) no longer has this issue. The ppc issue may be something else as ncurses has different CHOST matching, please report it separately if it still happens. Especially given that the ppc issue appears to have been a compile time error rather than a configure check misfiring! The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d4ab80153ce19c68f801378f027b810cdc3ee821 commit d4ab80153ce19c68f801378f027b810cdc3ee821 Author: Andreas K. Hüttel <dilfridge@gentoo.org> AuthorDate: 2024-11-03 21:43:07 +0000 Commit: Andreas K. Hüttel <dilfridge@gentoo.org> CommitDate: 2024-11-03 21:43:07 +0000 sys-libs/ncurses: drop 6.4_p20230401 Bug: https://bugs.gentoo.org/908676 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> sys-libs/ncurses/Manifest | 1 - sys-libs/ncurses/ncurses-6.4_p20230401.ebuild | 420 -------------------------- 2 files changed, 421 deletions(-) |