Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 945250 - sys-process/atop-2.11.0 - [ncurses-6.5] [meson] [gcc-15] showprocs.c: error: too many arguments to function curelem.pf->doactiveconvert
Summary: sys-process/atop-2.11.0 - [ncurses-6.5] [meson] [gcc-15] showprocs.c: error: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-28 18:04 UTC by Toralf Förster
Modified: 2025-02-16 12:27 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,20.27 KB, text/plain)
2024-11-28 18:04 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,199.33 KB, text/plain)
2024-11-28 18:04 UTC, Toralf Förster
Details
environment (environment,124.49 KB, text/plain)
2024-11-28 18:04 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.35 KB, application/x-xz)
2024-11-28 18:04 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,24.61 KB, application/x-xz)
2024-11-28 18:04 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,54.58 KB, application/x-xz)
2024-11-28 18:04 UTC, Toralf Förster
Details
sys-process:atop-2.11.0:20241128-134427.log (sys-process:atop-2.11.0:20241128-134427.log,76.75 KB, text/plain)
2024-11-28 18:04 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,28.46 KB, application/x-xz)
2024-11-28 18:04 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-28 18:04:12 UTC
too long lines were shrinked:

drawbar.c:2272:33: warning: ignoring return value of read declared with attribute warn_unused_result [-Wunused-result]
 2272 |                                 read(fdinotify, eventbuf, sizeof eventbuf);
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -I. -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -Wno-stringop-truncation -Wmissing-prototypes -Wmissing-declarations -Wformat-security    -c -o 
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=native -fno-diagnostics-color -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto -I. -Wall -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -Wno-stringop-truncation -Wmissing-prototypes -Wmissing-declarations -Wformat-security    -c -o 
showprocs.c: In function showprocline:
showprocs.c:500:38: error: too many arguments to function curelem.pf->doactiveconvert
  500 |                         printg("%s", curelem.pf->doactiveconvert(curstat,
      |                                      ^~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_hardened-20241124-123002

  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-10
 [2] x86_64-pc-linux-gnu-15 *
clang version 19.1.4
llvm-config: 19.1.4
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.81.0
  [2]   rust-bin-1.82.0
  [3]   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]
4)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 
  [4]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit e61b8ccac261557b581d25135f2634c80815dcbb
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Nov 28 12:50:30 2024 +0000

    2024-11-28 12:50:29 UTC

emerge -qpvO =sys-process/atop-2.11.0
[ebuild  N    ] sys-process/atop-2.11.0  USE="strip -dist-kernel -modules -modules-compress -modules-sign"
Comment 1 Toralf Förster gentoo-dev 2024-11-28 18:04:13 UTC
Created attachment 912418 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-28 18:04:14 UTC
Created attachment 912419 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-11-28 18:04:16 UTC
Created attachment 912420 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-28 18:04:16 UTC
Created attachment 912421 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-28 18:04:17 UTC
Created attachment 912422 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-28 18:04:19 UTC
Created attachment 912423 [details]
qlist-info.txt.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-28 18:04:20 UTC
Created attachment 912424 [details]
sys-process:atop-2.11.0:20241128-134427.log
Comment 8 Toralf Förster gentoo-dev 2024-11-28 18:04:21 UTC
Created attachment 912425 [details]
temp.tar.xz
Comment 9 NHO 2025-02-15 18:43:03 UTC
reported upstream
https://github.com/Atoptool/atop/issues/322
Comment 10 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-15 18:50:19 UTC
(In reply to NHO from comment #9)
> reported upstream
> https://github.com/Atoptool/atop/issues/322

Please include some context for upstreams, e.g. "GCC 15 will default to -std=gnu23. C23 removes unprotoyped functions, so x() now means x(void)."
Comment 11 NHO 2025-02-16 11:18:25 UTC
Investigated what's happening. Unprototyped function is used in hardcore C polymorphism with about four different function signatures stuffed in that poor struct.
I do not feel capable of  re-engineering that. Will leave as a homework for upstream.
-std=c17 it is, for now
Comment 12 NHO 2025-02-16 11:22:06 UTC
It uses GNU extensions, -std=gnu17 it is.
Comment 13 Larry the Git Cow gentoo-dev 2025-02-16 12:11:25 UTC
The bug has been referenced in the following commit(s):

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

commit 6589db140a41f67f8f1fefe3ef0e96090afbd5dd
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-02-16 11:30:20 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-16 12:04:17 +0000

    sys-process/atop: Restrict C version to gnu17
    
    Heavily uses C polymorphism that GCC-15 disallows. Best if fixed upstream
    
    Bug: https://bugs.gentoo.org/945250
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-process/atop/atop-2.11.0-r1.ebuild | 118 +++++++++++++++++++++++++++++++++
 1 file changed, 118 insertions(+)