Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 930501

Summary: dev-libs/foma-0.10.0_p20220612-r1 - /.../sigma.c: error: incompatible function pointer types initializing int ( )(void) with an expression of type int
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Joonas Niilola <juippis>
Status: RESOLVED FIXED    
Severity: normal Keywords: PullRequest
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/36783
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
dev-libs:foma-0.10.0_p20220612-r1:20240423-105948.log
emerge-history.txt
environment
etc.clang.tar.xz
etc.portage.tar.xz
qlist-info.txt.xz
var.tmp.clang.tar.xz

Description Toralf Förster gentoo-dev 2024-04-23 11:08:48 UTC
too long lines were shrinked:

      |                 ~~~~~~~~~ ^ ~~~~~~~~~~~
3 warnings generated.
[16/69] /var/tmp/portage/dev-libs/foma-0.10.0_p20220612-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -I/var/tmp/portage/dev-libs/foma-0.10.0_p20220612-r1/work/foma-9e8c3df573015a26c84e113ba710ef3d57c8e777/foma  -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werro
[17/69] /var/tmp/portage/dev-libs/foma-0.10.0_p20220612-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -I/var/tmp/portage/dev-libs/foma-0.10.0_p20220612-r1/work/foma-9e8c3df573015a26c84e113ba710ef3d57c8e777/foma  -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werro
FAILED: CMakeFiles/foma-static.dir/sigma.c.o 
/var/tmp/portage/dev-libs/foma-0.10.0_p20220612-r1/temp/clang-wrappers/clang -D_GNU_SOURCE -I/var/tmp/portage/dev-libs/foma-0.10.0_p20220612-r1/work/foma-9e8c3df573015a26c84e113ba710ef3d57c8e777/foma  -O2 -pipe -march=native -fno-diagnostics-color -Werror=implicit-function-declaration -Werror=implic
/var/tmp/portage/dev-libs/foma-0.10.0_p20220612-r1/work/foma-9e8c3df573015a26c84e113ba710ef3d57c8e777/foma/sigma.c:372:8: error: incompatible function pointer types initializing 'int (*)(void)' with an expression of type 'int (struct ssort *, struct ssort *)' [-Wincompatible-function-pointer-types]
  372 |   int(*comp)() = ssortcmp;
      |        ^         ~~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 23.0_llvm-20240418-200202

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 18.1.4+libcxx
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/18/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/18
18.1.4+libcxx
Python 3.11.9
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.77.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.10_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.2_p13 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.402_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.22.2 linux/amd64

  HEAD of ::gentoo
commit ddfaad106864ccf34e99267e1d94060d4eafd25d
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Apr 23 10:19:37 2024 +0000

    2024-04-23 10:19:36 UTC

emerge -qpvO dev-libs/foma
[ebuild  N    ] dev-libs/foma-0.10.0_p20220612-r1
Comment 1 Toralf Förster gentoo-dev 2024-04-23 11:08:49 UTC
Created attachment 891522 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2024-04-23 11:08:50 UTC
Created attachment 891523 [details]
dev-libs:foma-0.10.0_p20220612-r1:20240423-105948.log
Comment 3 Toralf Förster gentoo-dev 2024-04-23 11:08:52 UTC
Created attachment 891524 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2024-04-23 11:08:53 UTC
Created attachment 891525 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2024-04-23 11:08:54 UTC
Created attachment 891526 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2024-04-23 11:08:54 UTC
Created attachment 891527 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2024-04-23 11:08:56 UTC
Created attachment 891528 [details]
qlist-info.txt.xz
Comment 8 Toralf Förster gentoo-dev 2024-04-23 11:08:56 UTC
Created attachment 891529 [details]
var.tmp.clang.tar.xz
Comment 9 Larry the Git Cow gentoo-dev 2024-05-23 05:54:12 UTC
The bug has been closed via the following commit(s):

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

commit 3b8e04c9b5b518427ad9f0954f601c0cbf46e2df
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2024-05-22 22:35:32 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2024-05-23 05:53:49 +0000

    dev-libs/foma: fix incompatible function pointer types
    
    * In addition put patches into an array and run tests.
    
    Closes: https://bugs.gentoo.org/930501
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/36783
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 ...2-fix-incompatible-function-pointer-types.patch | 71 ++++++++++++++++++++++
 dev-libs/foma/foma-0.10.0_p20220612-r2.ebuild      | 43 +++++++++++++
 2 files changed, 114 insertions(+)