Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908754 - 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
Summary: sys-libs/musl-1.2.4 fails to compile (MUSL-CLANG16-SYSTEM): getent.c:179:9: e...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2023-06-18 07:48 UTC by David Carlos Manuelda
Modified: 2023-06-18 08:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log.bz2,22.01 KB, application/x-bzip)
2023-06-18 07:52 UTC, David Carlos Manuelda
Details
emerge --info (emergeinfo.txt,20.20 KB, text/plain)
2023-06-18 07:52 UTC, David Carlos Manuelda
Details

Note You need to log in before you can comment on or make changes to this bug.
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