Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944036 - sci-mathematics/gap-4.13.1-r1 - [ncurses-6.5] [meson] [libtool] [gcc-15] src/bool.c: error: passing argument 1 of InitHandlerFunc from incompatible pointer type [-Wincomp
Summary: sci-mathematics/gap-4.13.1-r1 - [ncurses-6.5] [meson] [libtool] [gcc-15] src/...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Michael Orlitzky
URL: https://github.com/gap-system/gap/iss...
Whiteboard:
Keywords:
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2024-11-19 19:56 UTC by Toralf Förster
Modified: 2025-02-02 23:11 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.18 KB, text/plain)
2024-11-19 19:56 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,65.79 KB, text/plain)
2024-11-19 19:56 UTC, Toralf Förster
Details
environment (environment,30.57 KB, text/plain)
2024-11-19 19:56 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.20 KB, application/x-xz)
2024-11-19 19:56 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,16.86 KB, application/x-xz)
2024-11-19 19:56 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,876.43 KB, application/x-xz)
2024-11-19 19:56 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,159.74 KB, text/plain)
2024-11-19 19:56 UTC, Toralf Förster
Details
sci-mathematics:gap-4.13.1-r1:20241119-185410.log (sci-mathematics:gap-4.13.1-r1:20241119-185410.log,30.87 KB, text/plain)
2024-11-19 19:56 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,9.05 KB, application/x-xz)
2024-11-19 19: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 2024-11-19 19:56:41 UTC
too long lines were shrinked:

    * new object list
sed -e "s;@SYSINFO_GAPROOT@;/var/tmp/portage/sci-mathematics/gap-4.13.1-r1/work/gap-4.13.1;" < cnf/gac.in > gac
chmod a+x gac
x86_64-pc-linux-gnu-gcc  -MQ build/obj/src/bags.c.o -MMD -MP -MF build/deps/src/bags.c.d  -pthread   -O2 -pipe -march=native -fno-diagnostics-color -fPIC -fno-strict-aliasing -Wall -Wextra -Warray-bounds -Wno-cast-function-type -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wformat-nonl
x86_64-pc-linux-gnu-gcc  -MQ build/obj/src/bool.c.o -MMD -MP -MF build/deps/src/bool.c.d  -pthread   -O2 -pipe -march=native -fno-diagnostics-color -fPIC -fno-strict-aliasing -Wall -Wextra -Warray-bounds -Wno-cast-function-type -Wdouble-promotion -Wduplicated-branches -Wduplicated-cond -Wformat-nonl
src/bool.c: In function InitKernel:
src/bool.c:332:22: error: passing argument 1 of InitHandlerFunc from incompatible pointer type [-Wincompatible-pointer-types]
  332 |     InitHandlerFunc( ReturnTrue1, "src/bool.c:ReturnTrue1" );
      |                      ^~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_systemd-20241117-232508

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    Please re-assign to ztrawhcse@ if you cannot reproduced it with regular meson.
  <dev-build/meson-9999
    Issues involving opaque types / incomplete typedefs should block bug 930805
  >=sys-libs/ncurses-6.5

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

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


  HEAD of ::gentoo
commit 3b48d7c59716c354ffb9d7f2093e0cbf1e253609
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Nov 19 18:03:25 2024 +0000

    2024-11-19 18:03:25 UTC

emerge -qpvO =sci-mathematics/gap-4.13.1-r1
[ebuild  N    ] sci-mathematics/gap-4.13.1-r1  USE="readline (-debug) -memcheck -minimal -test -valgrind" CPU_FLAGS_X86="popcnt"
Comment 1 Toralf Förster gentoo-dev 2024-11-19 19:56:42 UTC
Created attachment 910307 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-19 19:56:43 UTC
Created attachment 910308 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-11-19 19:56:44 UTC
Created attachment 910309 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-19 19:56:45 UTC
Created attachment 910310 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-19 19:56:46 UTC
Created attachment 910311 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-19 19:56:48 UTC
Created attachment 910312 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-19 19:56:49 UTC
Created attachment 910313 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2024-11-19 19:56:50 UTC
Created attachment 910314 [details]
sci-mathematics:gap-4.13.1-r1:20241119-185410.log
Comment 9 Toralf Förster gentoo-dev 2024-11-19 19:56:51 UTC
Created attachment 910315 [details]
temp.tar.xz
Comment 10 Michael Orlitzky gentoo-dev 2025-02-02 23:11:04 UTC
There was some discussion about this on another bug (many dev-gap packages have the same problem). GAP has a function pointer type that used to be defined with empty parens for an unspecofied number of arguments. C23 makes that a no-no, and now it seems that neither empty parens nor (...) work, so I am unsure of what to suggest upstream as a fix.

The following example program demonstrates the issue:

#if ( __STDC_VERSION__ < 202300L )
// Works in C17 and earlier
typedef int (* IntFunc)();
#else
// Should work in C23?
typedef int (* IntFunc)(...);
#endif

int run_it(IntFunc f) {
  return f(22);
}

int random_number(int x) {
  return 6;
}

int main(int argc, char** argv) {
  return run_it(random_number);
}


GAP 4.14.0 has been out for a long time, but it doesn't compile with the ~arch gcc or clang any more.