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)
Created attachment 873933 [details] emerge --info
Created attachment 873934 [details] failed build log
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
(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...
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(+)