Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 876975 - x11-libs/neXtaw-0.15.1-r4 - yacc: e - line 17 of laygram.y, syntax error
Summary: x11-libs/neXtaw-0.15.1-r4 - yacc: e - line 17 of laygram.y, syntax error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-13 11:57 UTC by Toralf Förster
Modified: 2022-10-17 01:02 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.30 KB, text/plain)
2022-10-13 11:57 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,93.63 KB, application/x-bzip)
2022-10-13 11:57 UTC, Toralf Förster
Details
environment (environment,77.51 KB, text/plain)
2022-10-13 11:57 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,38.05 KB, application/x-bzip)
2022-10-13 11:58 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,7.17 KB, application/x-bzip)
2022-10-13 11:58 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,25.37 KB, application/x-bzip)
2022-10-13 11:58 UTC, Toralf Förster
Details
x11-libs:neXtaw-0.15.1-r4:20221013-110559.log (x11-libs:neXtaw-0.15.1-r4:20221013-110559.log,120.70 KB, text/plain)
2022-10-13 11:58 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2022-10-13 11:57:55 UTC
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
Comment 1 Toralf Förster gentoo-dev 2022-10-13 11:57:56 UTC
Created attachment 823871 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-10-13 11:57:58 UTC
Created attachment 823873 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-10-13 11:57:59 UTC
Created attachment 823875 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-10-13 11:58:00 UTC
Created attachment 823877 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-10-13 11:58:01 UTC
Created attachment 823879 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-10-13 11:58:03 UTC
Created attachment 823881 [details]
temp.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-10-13 11:58:04 UTC
Created attachment 823883 [details]
x11-libs:neXtaw-0.15.1-r4:20221013-110559.log
Comment 8 Larry the Git Cow gentoo-dev 2022-10-13 12:17:13 UTC
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(-)
Comment 9 Markus Peloquin 2022-10-17 00:36:16 UTC
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 ()
Comment 10 Ionen Wolkens gentoo-dev 2022-10-17 00:46:54 UTC
Thanks, think I added the wrong patch from experiments -- I'll fix in a bit.
Comment 11 Larry the Git Cow gentoo-dev 2022-10-17 01:02:14 UTC
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(-)