131 | %yacc | ^~~~~ <command line>:1: note: previous declaration /var/tmp/portage/media-libs/libaacs-0.11.1-r1/work/libaacs-0.11.1/src/file/keydbcfg-parser.y: warning: fix-its can be applied. Rerun with option '--update'. [-Wother] updating src/file/keydbcfg-parser.h * ERROR: media-libs/libaacs-0.11.1-r1::gentoo failed (compile phase): * emake failed * * If you need support, post the output of `emerge --info '=media-libs/libaacs-0.11.1-r1::gentoo'`, ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop-j4-20221217-100005 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-12 * clang/llvm (if any): clang version 15.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/15/bin Configuration file: /etc/clang/clang.cfg /usr/lib/llvm/15 15.0.6 Python 3.10.9 Available Rust versions: [1] rust-bin-1.65.0 * The following VMs are available for generation-2: 1) Eclipse Temurin JDK 11.0.17_p8 [openjdk-bin-11] *) Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17] 3) Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8] Available Java Virtual Machines: [1] openjdk-bin-8 [2] openjdk-bin-11 [3] openjdk-bin-17 system-vm The Glorious Glasgow Haskell Compilation System, version 9.0.2 php cli (if any): HEAD of ::gentoo commit 968f969fa36d7526879dc79a67e0bc32925139ca Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sun Dec 18 21:17:07 2022 +0000 2022-12-18 21:17:07 UTC emerge -qpvO media-libs/libaacs [ebuild N ] media-libs/libaacs-0.11.1-r1 ABI_X86="(64) -32 (-x32)"
Created attachment 843579 [details] emerge-info.txt
Created attachment 843581 [details] emerge-history.txt
Created attachment 843583 [details] environment
Created attachment 843585 [details] etc.clang.tar.bz2
Created attachment 843587 [details] etc.portage.tar.bz2
Created attachment 843589 [details] logs.tar.bz2
Created attachment 843591 [details] media-libs:libaacs-0.11.1-r1:20221218-222448.log
Created attachment 843593 [details] temp.tar.bz2
Only a problem if byacc is used via app-alternatives/yacc. Builds fine when bison is used as default.
OP is probably using the reference implementation? byacc works better, but libaacs' ylwrap script is building a file that won't compile (clang 15). I don't know if it's related to what ylwrap does (I think it's *trying* to work with multiple yaccs): -------------------- /bin/sh ./libtool --tag=CC --mode=compile clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libaacs-0.11.1-r1/work/libaacs-0.11.1 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -I/var/tmp/portage/media-libs/libaacs-0.11.1-r1/work/libaacs-0.11.1/src -I./src/libaacs -std=c99 -march=btver1 -O3 -pipe -flto=thin -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrit e-strings -Wtype-limits -Wundef -Wmissing-prototypes -Wshadow -Werror=implicit-function-declaration -Wextra -Winline -c -o src/file/keydbcfg-parser.lo src/file/keydbcfg-parser.c libtool: compile: clang -DHAVE_CONFIG_H -I. -I/var/tmp/portage/media-libs/libaacs-0.11.1-r1/work/libaacs-0.11.1 -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112L -I/var/tmp/portage/media-libs/libaacs-0.11.1-r1/work/libaacs-0.11.1/src -I./src/libaacs -std=c99 -march=btver1 -O3 -pipe -flto=thin -Wall -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wcast-qual -Wwrite-strings -Wtype-limits -Wunde f -Wmissing-prototypes -Wshadow -Werror=implicit-function-declaration -Wextra -Winline -c src/file/keydbcfg-parser.c -fPIC -DPIC -o src/file/.libs/keydbcfg-parser.o src/file/keydbcfg-parser.c:168:12: error: unknown type name 'config_file' extern int YYPARSE_DECL(); ^ src/file/keydbcfg-parser.c:144:48: note: expanded from macro 'YYPARSE_DECL' # define YYPARSE_DECL() yyparse(void *scanner, config_file *cf, parser_state *ps) ^ src/file/keydbcfg-parser.c:168:12: error: unknown type name 'parser_state' src/file/keydbcfg-parser.c:144:65: note: expanded from macro 'YYPARSE_DECL' # define YYPARSE_DECL() yyparse(void *scanner, config_file *cf, parser_state *ps) ^ src/file/keydbcfg-parser.c:1186:14: warning: variable 'libaacs_yynerrs' set but not used [-Wunused-but-set-variable] int yynerrs; ^ src/file/keydbcfg-parser.c:49:20: note: expanded from macro 'yynerrs' #define yynerrs libaacs_yynerrs ^ 1 warning and 2 errors generated. -------------------- Reading the configure output, it says something like 'checking for bison... byacc', so I'm inclined to say that the libaacs developers don't use yacc/byacc.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=992efc9c9c56d8c02db7b4fe94de8d910dcaefdd commit 992efc9c9c56d8c02db7b4fe94de8d910dcaefdd Author: Sam James <sam@gentoo.org> AuthorDate: 2023-01-29 10:14:03 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-01-29 10:19:52 +0000 media-libs/libaacs: force bison+flex See upstream MR but it's very much not compatible with the POSIX variants. Closes: https://bugs.gentoo.org/887071 Signed-off-by: Sam James <sam@gentoo.org> media-libs/libaacs/libaacs-0.11.1-r1.ebuild | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-)