Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832200 - x11-misc/i3blocks-contrib-2.0.0 fails to compile with clang/lld: cpu_usage2.c:127:25: error: invalid suffix D on floating constant
Summary: x11-misc/i3blocks-contrib-2.0.0 fails to compile with clang/lld: cpu_usage2.c...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2022-01-28 09:56 UTC by Agostino Sarubbo
Modified: 2023-09-27 17:56 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,42.25 KB, text/plain)
2022-01-28 09:56 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 2022-01-28 09:56:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: x11-misc/i3blocks-contrib-2.0.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses CLANG as a compiler and LLD as a linker
Comment 1 Agostino Sarubbo gentoo-dev 2022-01-28 09:56:27 UTC
Created attachment 763789 [details]
build.log

build log and emerge --info
Comment 2 Corentin Rondier 2023-09-26 17:54:19 UTC
Can reproduce the issue on an llvm installation.

The fix is really easy, and I've made a pull-request upstream.
https://github.com/vivien/i3blocks-contrib/pull/505

The project seems dead (no commit since last december), but the fix can at least be pulled and applied on the ebuild
Comment 3 Larry the Git Cow gentoo-dev 2023-09-27 17:56:24 UTC
The bug has been closed via the following commit(s):

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

commit e6f1926d1b73035f496c7bafe11c5c1da9aba041
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2023-09-27 17:20:17 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2023-09-27 17:56:15 +0000

    x11-misc/i3blocks-contrib: fix clang/llvm build
    
    Closes: https://bugs.gentoo.org/832200
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 ...cks-contrib-2.0.0-fix-build-on-clang-llvm.patch | 25 ++++++++++++++++++++++
 .../i3blocks-contrib/i3blocks-contrib-2.0.0.ebuild |  5 ++++-
 2 files changed, 29 insertions(+), 1 deletion(-)