Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 873619 - media-libs/nas-1.9.5 will fail to build with clang16 (error: call to undeclared function 'getpid')
Summary: media-libs/nas-1.9.5 will fail to build with clang16 (error: call to undeclar...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting, clang-16-porting
  Show dependency tree
 
Reported: 2022-09-30 07:52 UTC by Ionen Wolkens
Modified: 2022-09-30 11:02 UTC (History)
0 users

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


Attachments
build.log + emerge --info.txt (build.log-emerge-info.txt,178.30 KB, text/plain)
2022-09-30 07:52 UTC, Ionen Wolkens
Details

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