XawIm.c:1384:23: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 1384 | if (errContext != (XContext)NULL && | ^ yacc -d laygram.y yacc: e - line 17 of "laygram.y", syntax error %code provides { ^ ------------------------------------------------------------------- This is an stable amd64 chroot image at a tinderbox (==build bot) name: 17.1_systemd-j4_stable-20221008-230003 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.3.0 * clang/llvm (if any): clang version 14.0.6 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/14/bin /usr/lib/llvm/14 14.0.6 Python 3.10.8 Available Ruby profiles: [1] ruby27 (with Rubygems) * Available Rust versions: [1] rust-bin-1.64.0 * The following VMs are available for generation-2: 1) IcedTea JDK 3.16.0 [icedtea-bin-8] 2) Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11] *) Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17] 4) Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8] 5) Eclipse Temurin JRE 17.0.3_p7 [openjdk-jre-bin-17] Available Java Virtual Machines: [1] icedtea-bin-8 [2] openjdk-bin-8 [3] openjdk-bin-11 [4] openjdk-bin-17 system-vm [5] openjdk-jre-bin-17 php cli (if any): GNU Make 4.3 HEAD of ::gentoo commit b322f26fb42f6bdf500db297a226bd9b5197bc7a Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Thu Oct 13 10:48:14 2022 +0000 2022-10-13 10:48:13 UTC emerge -qpvO x11-libs/neXtaw [ebuild N ] x11-libs/neXtaw-0.15.1-r4
Created attachment 823871 [details] emerge-info.txt
Created attachment 823873 [details] emerge-history.txt.bz2
Created attachment 823875 [details] environment
Created attachment 823877 [details] etc.portage.tar.bz2
Created attachment 823879 [details] logs.tar.bz2
Created attachment 823881 [details] temp.tar.bz2
Created attachment 823883 [details] x11-libs:neXtaw-0.15.1-r4:20221013-110559.log
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51d79df1c2c83c652ae5da230c51c149e38d4ec1 commit 51d79df1c2c83c652ae5da230c51c149e38d4ec1 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2022-10-13 12:13:18 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2022-10-13 12:16:34 +0000 x11-libs/neXtaw: fix clang16 patch for non-bison yacc Looking at bison mailing lists when don't know yacc is a bad influence. Fixes: bd7aa280e36e37620e378c70aed1f0c04c80969e Closes: https://bugs.gentoo.org/876975 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> x11-libs/neXtaw/files/neXtaw-0.15.1-clang16.patch | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-)
The patch doesn't work for me (clang 14.0.6). I had to move the declaration of `void yyerror(char *s)` to the top of the file. Otherwise, yyerror gets referenced (and implicitly declared) before its first use: diff -ru neXtaw-0.15.1.orig/X11/neXtaw/laygram.y neXtaw-0.15.1/X11/neXtaw/laygram.y --- neXtaw-0.15.1.orig/X11/neXtaw/laygram.y 2022-10-16 17:24:05.888452427 -0700 +++ neXtaw-0.15.1/X11/neXtaw/laygram.y 2022-10-16 17:24:30.675623580 -0700 @@ -12,6 +12,8 @@ static LayoutPtr *dest; +void yyerror(char *s); + %} %union { @@ -251,7 +253,6 @@ ; %% -void yyerror(char *s); int yylex(void); int yywrap ()
Thanks, think I added the wrong patch from experiments -- I'll fix in a bit.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=180ac825ebfad6b0ee3b2508cb51e996faf628c9 commit 180ac825ebfad6b0ee3b2508cb51e996faf628c9 Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2022-10-17 00:50:38 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2022-10-17 00:59:42 +0000 x11-libs/neXtaw: fix clang16 again for /both/ bison and yacc Thought may have pushed wrong patch given had tested it with yacc, but turns out that 1st patch worked with bison but broke dev-util/yacc, and 2nd patch worked with yacc but broke bison (with clang16 that is), and hadn't retried bison. Tried with both this time, hopefully fine. Thanks-to: Markus Peloquin Bug: https://bugs.gentoo.org/876975 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> x11-libs/neXtaw/files/neXtaw-0.15.1-clang16.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)