Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 881087 - sys-devel/smatch-1.72 - smatch_untracked_param.c: error: incompatible function pointer types
Summary: sys-devel/smatch-1.72 - smatch_untracked_param.c: error: incompatible functio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard: ~arch only
Keywords: PullRequest
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-11-12 10:40 UTC by Toralf Förster
Modified: 2025-02-10 08:56 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.66 KB, text/plain)
2022-11-12 10:40 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,51.73 KB, text/plain)
2022-11-12 10:40 UTC, Toralf Förster
Details
environment (environment,62.65 KB, text/plain)
2022-11-12 10:40 UTC, Toralf Förster
Details
etc.clang.tar.bz2 (etc.clang.tar.bz2,702 bytes, application/x-bzip)
2022-11-12 10:40 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,10.75 KB, application/x-bzip)
2022-11-12 10:40 UTC, Toralf Förster
Details
sys-devel:smatch-1.72:20221112-062628.log (sys-devel:smatch-1.72:20221112-062628.log,100.97 KB, text/plain)
2022-11-12 10:40 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.34 KB, application/x-bzip)
2022-11-12 10:40 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 2022-11-12 10:40:43 UTC
too long lines were shrinked:

  CC      smatch_untracked_param.o
clang -fno-strict-aliasing -Wall -Wwrite-strings -Wno-switch -Wno-psabi -DGCC_BASE=\"/usr/lib/llvm/15/bin/../../../../lib/clang/15.0.4/\" -DMULTIARCH_TRIPLET=\"x86_64-linux-gnu\"   -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=impl
  CC      check_scheduling_in_atomic.o
clang -fno-strict-aliasing -Wall -Wwrite-strings -Wno-switch -Wno-psabi -DGCC_BASE=\"/usr/lib/llvm/15/bin/../../../../lib/clang/15.0.4/\" -DMULTIARCH_TRIPLET=\"x86_64-linux-gnu\"   -pipe -march=native -fno-diagnostics-color -O2 -D_GLIBCXX_ASSERTIONS -Werror=implicit-function-declaration -Werror=impl
smatch_untracked_param.c:266:45: error: incompatible function pointer types
      passing 'void (*)(struct expression *, int, const char *, const char *)'
      to parameter of type 'return_implies_hook *' (aka 'void (*)(struct

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_hardened-j4-20221111-181859

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
CC=clang
CXX=clang++
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.4
Python 3.10.8
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.65.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.5_p8 [openjdk-bin-17]
Available Java Virtual Machines:
  [1]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit 8bc3a9c31bcaf1e95c8d04231704a37e48c6d1d6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Nov 12 05:31:50 2022 +0000

    2022-11-12 05:31:49 UTC

emerge -qpvO sys-devel/smatch
[ebuild  N    ] sys-devel/smatch-1.72
Comment 1 Toralf Förster gentoo-dev 2022-11-12 10:40:44 UTC
Created attachment 831851 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-11-12 10:40:45 UTC
Created attachment 831853 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2022-11-12 10:40:46 UTC
Created attachment 831855 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-11-12 10:40:47 UTC
Created attachment 831857 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-11-12 10:40:48 UTC
Created attachment 831859 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-11-12 10:40:50 UTC
Created attachment 831861 [details]
sys-devel:smatch-1.72:20221112-062628.log
Comment 7 Toralf Förster gentoo-dev 2022-11-12 10:40:51 UTC
Created attachment 831863 [details]
temp.tar.bz2
Comment 9 NHO 2025-01-30 15:24:03 UTC
But needs modifications for backporting.
Comment 10 Larry the Git Cow gentoo-dev 2025-02-10 08:56:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=183d0c261597f9bb247f19174f224bd307edc71c

commit 183d0c261597f9bb247f19174f224bd307edc71c
Author:     NHOrus <jy6x2b32pie9@yahoo.com>
AuthorDate: 2025-01-30 14:47:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-02-10 08:51:46 +0000

    sys-devel/smatch: update EAPI 7 -> 8, fix build failures with C23
    
    Non-deterministic build, usage of unreachable() with completely
    different meaning than C23 intends, incompatible function pointer
    types.
    
    Add cgcc wrapper for "build and check project" process documented in
    sparse.rst, replace sparse readme with smatch.rst readme
    
    Closes: https://bugs.gentoo.org/944322
    Closes: https://bugs.gentoo.org/881087
    Closes: https://bugs.gentoo.org/882047
    Signed-off-by: NHOrus <jy6x2b32pie9@yahoo.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 sys-devel/smatch/files/smatch-1.72-C23.patch       | 20 ++++++++
 .../files/smatch-1.72-function-prototype.patch     | 54 ++++++++++++++++++++++
 sys-devel/smatch/files/smatch-1.72-make-deps.patch | 14 ++++++
 .../{smatch-1.72.ebuild => smatch-1.72-r1.ebuild}  | 19 +++++---
 4 files changed, 100 insertions(+), 7 deletions(-)