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

Bug 871051

Summary: gnome-base/libgtop-2.40.0-r1 - main.c: error: incompatible pointer to integer conversion passing
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED FIXED    
Severity: normal CC: sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 870412    
Attachments: emerge-info.txt
clang.tar.bz2
emerge-history.txt
environment
etc.portage.tar.bz2
gnome-base:libgtop-2.40.0-r1:20220917-191958.log
logs.tar.bz2
temp.tar.bz2
patch which fixes compile on clang

Description Toralf Förster gentoo-dev 2022-09-17 19:46:24 UTC
main.c:78:5: warning: format specifies type 'unsigned long long' but the
      argument has type 'guint64' (aka 'unsigned long') [-Wformat]
                                cmnd->data_size);
                                ^~~~~~~~~~~~~~~
main.c:226:35: error: incompatible pointer to integer conversion passing
      'char[8192]' to parameter of type 'pid_t' (aka 'int') [-Wint-conversion]
                (server, &resp->u.data.proc_io, parameter);

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-j4-20220916-220004

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-12.2.1 *
clang/llvm (if any):
clang version 15.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
/usr/lib/llvm/15
15.0.0
Python 3.10.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-bin-1.63.0 *
The following VMs are available for generation-2:
*)	Eclipse Temurin JDK 17.0.4.1_p1 [openjdk-bin-17]
2)	Eclipse Temurin JDK 8.345_p01 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17  system-vm

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

  HEAD of ::gentoo
commit cae144bf93fd795deac860e17b464cefe0130eee
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sat Sep 17 18:46:59 2022 +0000

    2022-09-17 18:46:59 UTC

emerge -qpvO gnome-base/libgtop
[ebuild  N    ] gnome-base/libgtop-2.40.0-r1  USE="introspection"
Comment 1 Toralf Förster gentoo-dev 2022-09-17 19:46:25 UTC
Created attachment 809488 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-09-17 19:46:26 UTC
Created attachment 809491 [details]
clang.tar.bz2
Comment 3 Toralf Förster gentoo-dev 2022-09-17 19:46:27 UTC
Created attachment 809494 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-09-17 19:46:29 UTC
Created attachment 809497 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-09-17 19:46:30 UTC
Created attachment 809500 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-09-17 19:46:31 UTC
Created attachment 809503 [details]
gnome-base:libgtop-2.40.0-r1:20220917-191958.log
Comment 7 Toralf Förster gentoo-dev 2022-09-17 19:46:32 UTC
Created attachment 809506 [details]
logs.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-09-17 19:46:33 UTC
Created attachment 809509 [details]
temp.tar.bz2
Comment 9 toukoamg 2022-10-28 08:25:44 UTC
Created attachment 825669 [details, diff]
patch which fixes compile on clang

Found it on mail-archive.com/openembedded-devel@lists.openembedded.org/msg84376.html, searx works wonders
Comment 10 Larry the Git Cow gentoo-dev 2022-11-18 02:45:18 UTC
The bug has been closed via the following commit(s):

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

commit f5a9dda8c78d73cd1d9395f3682ae78a1f691ce0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-11-18 02:42:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-11-18 02:42:56 +0000

    gnome-base/libgtop: fix build w/ clang 15
    
    Closes: https://bugs.gentoo.org/871051
    Signed-off-by: Sam James <sam@gentoo.org>

 gnome-base/libgtop/files/2.40.0-clang.patch | 135 ++++++++++++++++++++++++++++
 gnome-base/libgtop/libgtop-2.40.0-r2.ebuild |  46 ++++++++++
 2 files changed, 181 insertions(+)