Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 942206 - dev-lang/eisl-5.35 - [gcc-15] main.c: error: signal_handler_child undeclared (first use in this function)
Summary: dev-lang/eisl-5.35 - [gcc-15] main.c: error: signal_handler_child undeclared ...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-10-26 08:07 UTC by Toralf Förster
Modified: 2025-01-12 14:29 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,21.00 KB, text/plain)
2024-10-26 08:07 UTC, Toralf Förster
Details
dev-lang:eisl-5.35:20241025-230644.log (dev-lang:eisl-5.35:20241025-230644.log,7.86 KB, text/plain)
2024-10-26 08:07 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,65.34 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
environment (environment,64.68 KB, text/plain)
2024-10-26 08:07 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,30.32 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,19.21 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,72.26 KB, application/x-xz)
2024-10-26 08:07 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,15.61 KB, application/x-xz)
2024-10-26 08:07 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 2024-10-26 08:07:31 UTC
main.c:357:36: error: invalid application of 'sizeof' to incomplete type 'struct sigaction'
  357 |     memset(&child_action, 0, sizeof(child_action));
      |                                    ^
main.c:358:17: error: invalid use of undefined type 'struct sigaction'
  358 |     child_action.sa_sigaction = &signal_handler_child;
      |                 ^
main.c:358:34: error: 'signal_handler_child' undeclared (first use in this function); did you mean 'signal_handler_c'?
  358 |     child_action.sa_sigaction = &signal_handler_child;
      |                                  ^~~~~~~~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_musl_hardened-20241019-170007

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15

  The attached etc.portage.tar.xz has all details.
  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-musl-15 *
clang version 19.1.2
llvm-config: 19.1.2
Python 3.12.7
go version go1.23.2 linux/amd64
  [1]   php8.2
  [2]   php8.3 *
Available Ruby profiles:
  [1]   ruby32 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.82.0
  [2]   rust-1.82.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.25_p9 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
Available Java Virtual Machines:
  [1]   openjdk-bin-11 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 76a80a779a3b4980927ed48597fd17c2fc57d6b5
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Fri Oct 25 22:18:29 2024 +0000

    2024-10-25 22:18:28 UTC

emerge -qpvO =dev-lang/eisl-5.35
[ebuild  N    ] dev-lang/eisl-5.35
Comment 1 Toralf Förster gentoo-dev 2024-10-26 08:07:32 UTC
Created attachment 906774 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-10-26 08:07:32 UTC
Created attachment 906775 [details]
dev-lang:eisl-5.35:20241025-230644.log
Comment 3 Toralf Förster gentoo-dev 2024-10-26 08:07:34 UTC
Created attachment 906776 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2024-10-26 08:07:35 UTC
Created attachment 906777 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-10-26 08:07:35 UTC
Created attachment 906778 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-10-26 08:07:36 UTC
Created attachment 906779 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-10-26 08:07:37 UTC
Created attachment 906780 [details]
logs.tar.xz
Comment 8 Toralf Förster gentoo-dev 2024-10-26 08:07:38 UTC
Created attachment 906781 [details]
qlist-info.txt.xz
Comment 9 Toralf Förster gentoo-dev 2024-10-26 08:07:39 UTC
Created attachment 906782 [details]
temp.tar.xz
Comment 10 Toralf Förster gentoo-dev 2024-10-26 08:08:01 UTC
pls see bug 938121 and bug 934218
Comment 11 NHO 2025-01-11 15:34:56 UTC
https://bugs.gentoo.org/942371 and https://bugs.gentoo.org/942607 are duplicates of this bug.
Upstream bug: https://github.com/sasagawa888/eisl/issues/335
ncurses6-config provides -D_DEFAULT_SOURCE on glibc, but doesn't do that on MUSL, that gates off content of signal.h and compilation fails
Comment 12 Larry the Git Cow gentoo-dev 2025-01-12 14:26:00 UTC
The bug has been referenced in the following commit(s):

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

commit 1f41d6b722590a98ab8ad0de3e93c4a538bec7d9
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-12 14:12:15 +0000
Commit:     Maciej Barć <xgqt@gentoo.org>
CommitDate: 2025-01-12 14:25:55 +0000

    dev-lang/eisl: add 5.41
    
    With backported upstream patch to fix build with C23.
    Patch would be unneeded next upstream release.
    
    Bug: https://bugs.gentoo.org/942206
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Closes: https://github.com/gentoo/gentoo/pull/40102
    Signed-off-by: Maciej Barć <xgqt@gentoo.org>

 dev-lang/eisl/Manifest                       |  1 +
 dev-lang/eisl/eisl-5.41.ebuild               | 57 ++++++++++++++++++++++++++++
 dev-lang/eisl/files/eisl-5.41-makefile.patch | 52 +++++++++++++++++++++++++
 3 files changed, 110 insertions(+)