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

Bug 873619

Summary: media-libs/nas-1.9.5 will fail to build with clang16 (error: call to undeclared function 'getpid')
Product: Gentoo Linux Reporter: Ionen Wolkens <ionen>
Component: Current packagesAssignee: Gentoo Sound Team <sound>
Status: CONFIRMED ---    
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.txt

Description Ionen Wolkens gentoo-dev 2022-09-30 07:52:57 UTC
Created attachment 814771 [details]
build.log + emerge --info.txt

Long list of implicit warnings with gcc that will all be failures here.

Also the y.tab.c kind:

y.tab.c:1172:16: error: call to undeclared function 'yylex'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]
      yychar = yylex ();

Some ./configure tests are broken too, e.g.

checking for working snprintf... no
checking for working vsnprintf... no
configure: WARNING: Replacing missing/broken (v)snprintf() with version from http://www.ijs.si/software/snprintf/.

Also imake cpp issues, but will fix that bit myself soon which lets it build clang15 without the -Werror=*
Comment 1 Larry the Git Cow gentoo-dev 2022-09-30 11:02:14 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=efcf37fd016d067e816fd73cf0953c06819f799f

commit efcf37fd016d067e816fd73cf0953c06819f799f
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-09-30 06:59:51 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-09-30 10:48:09 +0000

    media-libs/nas: force gcc -E for imake's generation
    
    Requires traditional cpp support and is broken in all sort of ways
    with clang-cpp / -E.
    
    Bit messier here because of multilib, hopefully this is right and
    doesn't affect other arches. If multilib support is ever removed,
    replace by ":-${CHOST}-gcc -E}" like other ebuilds.
    
    wrt #873619, this is still severely broken with >=clang16
    
    Bug: https://bugs.gentoo.org/873619
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 media-libs/nas/nas-1.9.5.ebuild | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)