Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 894348 - sys-fs/lxcfs-5.0.3 fails to compile (MUSL-CLANG-SYSTEM): proc_loadavg.c:606:10: error: incompatible integer to pointer conversion returning int from a function with result type pthread_t (aka struct __pthread ) [-Wint-conversion]
Summary: sys-fs/lxcfs-5.0.3 fails to compile (MUSL-CLANG-SYSTEM): proc_loadavg.c:606:1...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Joonas Niilola
Keywords: PullRequest
Depends on:
Blocks: c99-porting, clang-16-porting
  Show dependency tree
Reported: 2023-02-14 08:53 UTC by Agostino Sarubbo
Modified: 2023-09-05 07:31 UTC (History)
1 user (show)

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

build.log (build.log,71.01 KB, text/plain)
2023-02-14 08:53 UTC, Agostino Sarubbo

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-02-14 08:53:35 UTC

Issue: sys-fs/lxcfs-5.0.3 fails to compile (MUSL-CLANG-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

(MUSL-CLANG-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc + clang16 but this bug MAY or MAY NOT BE related to musl/clang16.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-14 08:53:38 UTC
Created attachment 851062 [details]

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-14 08:53:39 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:

../lxcfs-5.0.3/src/proc_loadavg.c:606:10: error: incompatible integer to pointer conversion returning 'int' from a function with result type 'pthread_t' (aka 'struct __pthread *') [-Wint-conversion]
Comment 3 Larry the Git Cow gentoo-dev 2023-09-05 07:31:12 UTC
The bug has been closed via the following commit(s):

commit cd73ce1d3249c9259abfc8a8b9a74e29a8b3cfa7
Author:     Brahmajit Das <>
AuthorDate: 2023-09-05 04:21:04 +0000
Commit:     Joonas Niilola <>
CommitDate: 2023-09-05 07:30:34 +0000

    sys-fs/lxcfs: Fix incompatible integer to pointer conversion
    Signed-off-by: Brahmajit Das <>
    Signed-off-by: Joonas Niilola <>

 ...5.0.4-fix-incompatible-pointer-conversion.patch | 19 +++++
 sys-fs/lxcfs/lxcfs-5.0.4-r1.ebuild                 | 84 ++++++++++++++++++++++
 2 files changed, 103 insertions(+)