Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 944170 - sys-fs/snapraid-12.3 - [ncurses-6.5] [gcc-15] raid/tag.c: error: initialization of void ( )(void) from incompatible pointer type void ( )(int, size_t, void ) {aka void (
Summary: sys-fs/snapraid-12.3 - [ncurses-6.5] [gcc-15] raid/tag.c: error: initializati...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-20 16:09 UTC by Toralf Förster
Modified: 2025-02-16 16:36 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.50 KB, text/plain)
2024-11-20 16:09 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,247.70 KB, text/plain)
2024-11-20 16:09 UTC, Toralf Förster
Details
environment (environment,77.02 KB, text/plain)
2024-11-20 16:09 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.19 KB, application/x-xz)
2024-11-20 16:09 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,23.81 KB, application/x-xz)
2024-11-20 16:09 UTC, Toralf Förster
Details
logs.tar.xz (logs.tar.xz,23.87 KB, application/x-xz)
2024-11-20 16:09 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,68.38 KB, application/x-xz)
2024-11-20 16:09 UTC, Toralf Förster
Details
sys-fs:snapraid-12.3:20241120-044651.log (sys-fs:snapraid-12.3:20241120-044651.log,36.38 KB, text/plain)
2024-11-20 16:09 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,19.72 KB, application/x-xz)
2024-11-20 16:09 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-20 16:09:42 UTC
too long lines were shrinked:

make[1]: Leaving directory '/var/tmp/portage/sys-fs/snapraid-12.3/work/snapraid-12.3'
make[1]: Entering directory '/var/tmp/portage/sys-fs/snapraid-12.3/work/snapraid-12.3'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR="\"/etc\""   -O2 -pipe -march=native -fno-diagnostics-color -fno-omit-frame-pointer -fno-inline-functions-called-once -fno-inline-small-functions -rdynamic -fno-common -pthread -Wall -Wextra -Wuninitialized -Wshadow -Wno-zero-length-bounds -c
make[1]: Leaving directory '/var/tmp/portage/sys-fs/snapraid-12.3/work/snapraid-12.3'
make[1]: Entering directory '/var/tmp/portage/sys-fs/snapraid-12.3/work/snapraid-12.3'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I.  -DSYSCONFDIR="\"/etc\""   -O2 -pipe -march=native -fno-diagnostics-color -fno-omit-frame-pointer -fno-inline-functions-called-once -fno-inline-small-functions -rdynamic -fno-common -pthread -Wall -Wextra -Wuninitialized -Wshadow -Wno-zero-length-bounds -c
raid/tag.c:21:19: error: initialization of void (*)(void) from incompatible pointer type void (*)(int,  size_t,  void **) {aka void (*)(int,  long unsigned int,  void **)} [-Wincompatible-pointer-types]
   21 |         { "int8", raid_gen3_int8 },
      |                   ^~~~~~~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_desktop_plasma_systemd-20241112-111005

  UNMASKED:
  <sys-devel/gcc-15.0.9999:15
    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)
  [2]   ruby33 (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 17.0.13_p11 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.5_p11 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.432_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm


  HEAD of ::gentoo
commit 88cd2732789b8722f7356eaea2566328f49ee399
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Nov 20 03:33:27 2024 +0000

    2024-11-20 03:33:27 UTC

emerge -qpvO =sys-fs/snapraid-12.3
[ebuild  N    ] sys-fs/snapraid-12.3  USE="-test"
Comment 1 Toralf Förster gentoo-dev 2024-11-20 16:09:42 UTC
Created attachment 910629 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-11-20 16:09:44 UTC
Created attachment 910630 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2024-11-20 16:09:45 UTC
Created attachment 910631 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2024-11-20 16:09:46 UTC
Created attachment 910632 [details]
etc.clang.tar.xz
Comment 5 Toralf Förster gentoo-dev 2024-11-20 16:09:47 UTC
Created attachment 910633 [details]
etc.portage.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-11-20 16:09:48 UTC
Created attachment 910634 [details]
logs.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-11-20 16:09:49 UTC
Created attachment 910635 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-11-20 16:09:50 UTC
Created attachment 910636 [details]
sys-fs:snapraid-12.3:20241120-044651.log
Comment 9 Toralf Förster gentoo-dev 2024-11-20 16:09:50 UTC
Created attachment 910637 [details]
temp.tar.xz
Comment 10 Li Ze-Lin 2025-01-27 08:02:14 UTC
An upstream fix may have solved the problem. See: https://github.com/amadvance/snapraid/commit/56c4076e23b3b0f5d8111efc241ba51441c7b719

I tested on ncurses-6.5 and gcc-15 development versions, and got failed make for snapraid-12.3 but successful make, installation and tests for snapraid-12.4.
Comment 11 Larry the Git Cow gentoo-dev 2025-02-16 16:36:30 UTC
The bug has been closed via the following commit(s):

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

commit 9bd04b7acff774863bc8267e9b5472a12eaef2b3
Author:     Zelin2001 <lizl2023@ion.ac.cn>
AuthorDate: 2025-01-27 08:39:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-16 16:30:13 +0000

    sys-fs/snapraid: add 12.4
    
    * The updtream change avoids a warning about function pointer conversion.
    
    Closes: https://bugs.gentoo.org/944170
    Signed-off-by: Zelin2001 <lizl2023@ion.ac.cn>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-fs/snapraid/Manifest             |  1 +
 sys-fs/snapraid/snapraid-12.4.ebuild | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions(+)