Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 908676

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 packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: CONFIRMED ---    
Severity: normal CC: erhard_f
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 906027    
Attachments: build.log.xz
build.log (ppc, 6.4_p20230401)

Description Agostino Sarubbo gentoo-dev 2023-06-17 12:32:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-libs/ncurses-6.4_p20230401 has implicit function declarations in configure logs (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
See also: https://bugs.gentoo.org/898488#c4.
Comment 1 Agostino Sarubbo gentoo-dev 2023-06-17 12:32:56 UTC
Created attachment 864041 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2023-06-17 12:32:57 UTC
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
Comment 3 ernsteiswuerfel archtester 2024-03-07 12:54:41 UTC
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