Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 742419 - sys-process/latencytop-0.5-r2: fsync.c:67:4: error: non-void function 'chain_file' should return a value [-Wreturn-type]
Summary: sys-process/latencytop-0.5-r2: fsync.c:67:4: error: non-void function 'chain_...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: https://src.fedoraproject.org/rpms/la...
Whiteboard:
Keywords: PATCH
: 829891 (view as bug list)
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2020-09-14 05:57 UTC by Agostino Sarubbo
Modified: 2022-10-28 06:36 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,9.05 KB, text/plain)
2020-09-14 05:57 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-09-14 05:57:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-process/latencytop-0.5-r1 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue is strictly related to the LLD linker, please block bug 731004.
This machine uses also GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-14 05:57:21 UTC
Created attachment 660072 [details]
build.log

build log and emerge --info
Comment 2 Andreas Sturmlechner gentoo-dev 2021-03-15 17:55:02 UTC
Fedora are simply removing the code:

"The fsync tracer it depends on was never merged in the kernel.
It also uses 'tracing_enable' which triggers deprecation warnings in the
kernel."

https://src.fedoraproject.org/rpms/latencytop/blob/rawhide/f/latencytop-remove-the-fsync-view.patch
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-12-24 03:17:01 UTC
*** Bug 829891 has been marked as a duplicate of this bug. ***
Comment 4 Agostino Sarubbo gentoo-dev 2022-01-26 06:29:45 UTC
tinderbox has reproduced this issue with version 0.5-r2 - Updating summary.
Comment 5 Larry the Git Cow gentoo-dev 2022-10-28 06:36:41 UTC
The bug has been closed via the following commit(s):

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

commit b68130a395dda5d00c8d558349a5a3f85ff738b0
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-10-28 06:15:48 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-28 06:36:29 +0000

    sys-process/latencytop: fix build with Clang
    
    - Fix build with Clang 16 (-Wimplicit-int)
    - EAPI 8
    - Respect CC, PKG_CONFIG
    - Respect CPPFLAGS
    
    Closes: https://bugs.gentoo.org/742419
    Signed-off-by: Sam James <sam@gentoo.org>

 .../files/latencytop-0.5-Fix-Wimplicit-int.patch   |  16 +
 .../files/latencytop-0.5-fsync-drop.patch          | 460 +++++++++++++++++++++
 .../latencytop-0.5-fsync-fix-implicit-decl.patch   |  28 --
 ...ytop-0.5-r2.ebuild => latencytop-0.5-r3.ebuild} |  31 +-
 4 files changed, 493 insertions(+), 42 deletions(-)