Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881319 - app-misc/delay-1.6-r3 - yylex; ISO C99 and later do not support implicit function declarations
Summary: app-misc/delay-1.6-r3 - yylex; ISO C99 and later do not support implicit func...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Shell Tools project
URL:
Whiteboard:
Keywords:
: 882249 (view as bug list)
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-14 20:55 UTC by Toralf Förster
Modified: 2023-02-12 06:41 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.38 KB, text/plain)
2022-11-14 20:55 UTC, Toralf Förster
Details
app-misc:delay-1.6-r3:20221114-202537.log (app-misc:delay-1.6-r3:20221114-202537.log,10.49 KB, text/plain)
2022-11-14 20:55 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,52.79 KB, application/x-bzip)
2022-11-14 20:55 UTC, Toralf Förster
Details
environment (environment,79.26 KB, text/plain)
2022-11-14 20:56 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,696 bytes, application/x-bzip)
2022-11-14 20:56 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,28.12 KB, application/x-bzip)
2022-11-14 20:56 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.90 KB, application/x-bzip)
2022-11-14 20:56 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,24.40 KB, application/x-bzip)
2022-11-14 20:56 UTC, Toralf Förster
Details
var.tmp.clang.tar.bz2 (var.tmp.clang.tar.bz2,1.30 KB, application/x-bzip)
2022-11-14 20:56 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-11-14 20:55:56 UTC
too long lines were shrinked:

clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"delay\" -DVERSION=\"1.6\" -DYYTEXT_POINTER=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS
clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"delay\" -DVERSION=\"1.6\" -DYYTEXT_POINTER=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS
clang -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"delay\" -DVERSION=\"1.6\" -DYYTEXT_POINTER=1 -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS
/usr/share/bison/bison.simple:595:16: error: call to undeclared function
      'yylex'; ISO C99 and later do not support implicit function declarations
      [-Werror,-Wimplicit-function-declaration]
      yychar = YYLEX;

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_systemd-j4-20221112-220005

  -------------------------------------------------------------------

GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
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.4
Python 3.10.8
Available Ruby profiles:
  [1]   ruby31 *
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]
2)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.352_p08 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 

php cli (if any):

  HEAD of ::gentoo
commit e0484b385a43ace0b96fb91a643fd17f22a34497
Merge: f2401ce11ca3 0c77aadb9830
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 14 17:46:45 2022 +0000

    Merge updates from master

emerge -qpvO app-misc/delay
[ebuild  N    ] app-misc/delay-1.6-r3
Comment 1 Toralf Förster gentoo-dev 2022-11-14 20:55:57 UTC
Created attachment 832563 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-14 20:55:58 UTC
Created attachment 832565 [details]
app-misc:delay-1.6-r3:20221114-202537.log
Comment 3 Toralf Förster gentoo-dev 2022-11-14 20:55:59 UTC
Created attachment 832567 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-11-14 20:56:00 UTC
Created attachment 832569 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-11-14 20:56:01 UTC
Created attachment 832571 [details]
etc.clang.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-14 20:56:03 UTC
Created attachment 832573 [details]
etc.portage.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-11-14 20:56:04 UTC
Created attachment 832575 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-11-14 20:56:05 UTC
Created attachment 832577 [details]
temp.tar.bz2
Comment 9 Toralf Förster gentoo-dev 2022-11-14 20:56:06 UTC
Created attachment 832579 [details]
var.tmp.clang.tar.bz2
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-20 21:21:03 UTC
*** Bug 882249 has been marked as a duplicate of this bug. ***
Comment 11 Larry the Git Cow gentoo-dev 2022-11-24 09:50:52 UTC
The bug has been closed via the following commit(s):

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

commit 19c56f45a25af6da76133b2e27beb40fd5ad78df
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-24 08:50:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-24 09:04:47 +0000

    app-misc/delay: fix build w/ clang 16
    
    Closes: https://bugs.gentoo.org/881319
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/delay/delay-1.6-r3.ebuild           |  1 +
 app-misc/delay/files/delay-1.6-clang16.patch | 12 ++++++++++++
 2 files changed, 13 insertions(+)
Comment 12 Larry the Git Cow gentoo-dev 2022-11-24 09:53:48 UTC
The bug has been referenced in the following commit(s):

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

commit a3d95937e32bce79678a081ab53c863ef9244e0a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-24 09:53:32 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-24 09:53:32 +0000

    app-misc/delay: revbump for Clang 16 fix
    
    Bug: https://bugs.gentoo.org/881319
    Fixes: 19c56f45a25af6da76133b2e27beb40fd5ad78df
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/delay/{delay-1.6-r3.ebuild => delay-1.6-r4.ebuild} | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
Comment 13 Larry the Git Cow gentoo-dev 2022-11-25 11:53:39 UTC
The bug has been referenced in the following commit(s):

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

commit 6c7fb619c8661e72230fe3669d6e238288132430
Author:     Ionen Wolkens <ionen@gentoo.org>
AuthorDate: 2022-11-25 11:48:15 +0000
Commit:     Ionen Wolkens <ionen@gentoo.org>
CommitDate: 2022-11-25 11:52:45 +0000

    app-misc/delay: remove broken clang16 patch for now
    
    It breaks e.g. `delay until now + 5 minutes` with segfault.
    
    Need to figure out the proper fix to get the right declaration
    that YYLEX macro will use (seems yylex can get arguments?).
    
    Haven't looked at it more, hardly know yacc/lex.
    
    Bug: https://bugs.gentoo.org/881319
    Signed-off-by: Ionen Wolkens <ionen@gentoo.org>

 app-misc/delay/{delay-1.6-r4.ebuild => delay-1.6-r5.ebuild} |  1 -
 app-misc/delay/files/delay-1.6-clang16.patch                | 12 ------------
 2 files changed, 13 deletions(-)
Comment 14 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-11-25 17:33:07 UTC
thanks, I'll take another look later (thought I'd been checking for these!)
Comment 15 Larry the Git Cow gentoo-dev 2023-02-12 02:04:34 UTC
The bug has been closed via the following commit(s):

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

commit bee5b20ba22f21c8b3ae0fd0d6282717456605c3
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-11 23:45:17 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-12 02:04:14 +0000

    app-misc/delay: fix clang 16 (again)
    
    We reverted the previous fix (19c56f45a25af6da76133b2e27beb40fd5ad78df) in
    6c7fb619c8661e72230fe3669d6e238288132430 as it led to a segfault at runtime, but
    not for the reason I expected.
    
    Our clang16 patch forces regeneration of the yacc files and going from
    an ancient bison to a modern one makes 'delay until now + 5 minutes'
    segfault. It happens even if the patch is empty, as the regeneration
    is the breaking part. So, just force byacc, as it seems to work, and
    this is a package with no active upstream.
    
    Closes: https://bugs.gentoo.org/881319
    See: 19c56f45a25af6da76133b2e27beb40fd5ad78df
    See: 6c7fb619c8661e72230fe3669d6e238288132430
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/delay/delay-1.6-r6.ebuild           | 43 ++++++++++++++++++++++++++++
 app-misc/delay/files/delay-1.6-clang16.patch | 12 ++++++++
 2 files changed, 55 insertions(+)
Comment 16 Larry the Git Cow gentoo-dev 2023-02-12 06:41:58 UTC
The bug has been referenced in the following commit(s):

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

commit 4c6cc2b2ad15acc3a2be7b60b10c42c47b53e1bf
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-12 06:31:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-02-12 06:41:41 +0000

    app-misc/delay: add smoketests in src_test
    
    No official test suite available so let's add some quick smoketests which
    would've caught the segfault mentioned in bug #881319.
    
    Bug: https://bugs.gentoo.org/881319
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/delay/delay-1.6-r6.ebuild | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)