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

Bug 916722

Summary: app-misc/fastfetch-2.2.1 fails on gcc with -O3
Product: Gentoo Linux Reporter: James McGeehan IV <bivsk>
Component: Current packagesAssignee: Viorel Munteanu <ceamac>
Status: RESOLVED FIXED    
Severity: normal CC: bivsk, esigra, matoro_gentoo
Priority: Normal Keywords: UPSTREAM
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/fastfetch-cli/fastfetch/pull/609
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 260867, 618550    
Attachments: emerge --info
failed build log

Description James McGeehan IV 2023-11-02 19:22:55 UTC
Compile fails with -Werror=uninitialized errors when building with gcc and -O3. 

Build succeeds with gcc/-O2 as well as clang/-O3

Reproducible: Always




gcc useflags: (cxx default-stack-clash-protection fortran graphite hardened lto multilib nptl openmp pgo pie sanitize ssp zstd -ada -cet -custom-cflags -d -debug -default-znow -doc -fixed-point -go -ieee-long-double -jit -libssp -modula2 -nls -objc -objc++ -objc-gc -pch -systemtap -test -valgrind -vanilla -vtv)
Comment 1 James McGeehan IV 2023-11-02 19:24:30 UTC
Created attachment 873933 [details]
emerge --info
Comment 2 James McGeehan IV 2023-11-02 19:25:52 UTC
Created attachment 873934 [details]
failed build log
Comment 3 stefan11111 2023-11-04 09:40:29 UTC
I got the package to build by adding -w to my cflags to inhibit warnings, so that
they don't get turned into errors by -Werror.

To work around this, add CFLAGS="-w ${CFLAGS}" to 
/etc/portage/env/app-misc/fastfetch
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-04 09:48:02 UTC
(In reply to stefan11111 from comment #3)
> I got the package to build by adding -w to my cflags to inhibit warnings, so
> that
> they don't get turned into errors by -Werror.
> 
> To work around this, add CFLAGS="-w ${CFLAGS}" to 
> /etc/portage/env/app-misc/fastfetch

There's already been a patch linked...
Comment 5 Larry the Git Cow gentoo-dev 2023-11-07 05:16:32 UTC
The bug has been closed via the following commit(s):

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

commit 055606ee53a35c423a4f0c025a9f4dbb199a2643
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2023-11-07 05:15:25 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2023-11-07 05:15:25 +0000

    app-misc/fastfetch: add 2.2.2
    
    Closes: https://bugs.gentoo.org/916722
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 app-misc/fastfetch/Manifest               |   1 +
 app-misc/fastfetch/fastfetch-2.2.2.ebuild | 108 ++++++++++++++++++++++++++++++
 2 files changed, 109 insertions(+)