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

Bug 908754

Summary: sys-libs/musl-1.2.4 fails to compile (MUSL-CLANG16-SYSTEM): getent.c:179:9: error: call to undeclared library function 'strlcpy' with type 'unsigned long (char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declaratio
Product: Gentoo Linux Reporter: David Carlos Manuelda <StormByte>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: build.log
emerge --info

Description David Carlos Manuelda 2023-06-18 07:48:41 UTC
When trying musl I found that it does not compile with Clang16 with at least 2 errors:

/tmp/portage/sys-libs/musl-1.2.4/work/misc/getconf.c:182:27: error: use of undeclared identifier 'LONG_BIT'
{ "LONG_BIT",                   CONSTANT,       LONG_BIT                },
                                                ^
/tmp/portage/sys-libs/musl-1.2.4/work/misc/getconf.c:194:27: error: use of undeclared identifier 'WORD_BIT'
{ "WORD_BIT",                   CONSTANT,       WORD_BIT                }

and

getent.c:179:9: error: call to undeclared library function 'strlcpy' with type 'unsigned long (char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

Reproducible: Always
Comment 1 David Carlos Manuelda 2023-06-18 07:52:40 UTC
Created attachment 864116 [details]
build.log

Full build log
Comment 2 David Carlos Manuelda 2023-06-18 07:52:56 UTC
Created attachment 864117 [details]
emerge --info
Comment 3 David Carlos Manuelda 2023-06-18 08:06:56 UTC
My fault, did not do the bootstrap first