Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916722 - app-misc/fastfetch-2.2.1 fails on gcc with -O3
Summary: app-misc/fastfetch-2.2.1 fails on gcc with -O3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks: werror lto
  Show dependency tree
 
Reported: 2023-11-02 19:22 UTC by James McGeehan IV
Modified: 2023-11-07 05:16 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge--info.txt,19.41 KB, text/plain)
2023-11-02 19:24 UTC, James McGeehan IV
Details
failed build log (buildlog.txt,236.95 KB, text/plain)
2023-11-02 19:25 UTC, James McGeehan IV
Details

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