Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 871051 - gnome-base/libgtop-2.40.0-r1 - main.c: error: incompatible pointer to integer conversion passing
Summary: gnome-base/libgtop-2.40.0-r1 - main.c: error: incompatible pointer to integer...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard: fixed in 2.40.0-r2
Keywords: PATCH
Depends on:
Blocks: c99-porting
  Show dependency tree
 
Reported: 2022-09-17 19:46 UTC by Toralf Förster
Modified: 2024-10-26 22:19 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.64 KB, text/plain)
2022-09-17 19:46 UTC, Toralf Förster
Details
clang.tar.bz2 (clang.tar.bz2,6.68 KB, application/x-bzip)
2022-09-17 19:46 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,79.72 KB, text/plain)
2022-09-17 19:46 UTC, Toralf Förster
Details
environment (environment,115.25 KB, text/plain)
2022-09-17 19:46 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,14.08 KB, application/x-bzip)
2022-09-17 19:46 UTC, Toralf Förster
Details
gnome-base:libgtop-2.40.0-r1:20220917-191958.log (gnome-base:libgtop-2.40.0-r1:20220917-191958.log,94.24 KB, text/plain)
2022-09-17 19:46 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,19.00 KB, application/x-bzip)
2022-09-17 19:46 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,44.08 KB, application/x-bzip)
2022-09-17 19:46 UTC, Toralf Förster
Details
patch which fixes compile on clang (file_871051.txt,467 bytes, patch)
2022-10-28 08:25 UTC, toukoamg
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(+)