[15/48] x86_64-pc-linux-gnu-gcc -Iplparse/libtotem-plparser.so.18.3.5.p -Iplparse -I../totem-pl-parser-3.26.6/plparse -I. -I../totem-pl-parser-3.26.6 -Ilib -I../totem-pl-parser-3.26.6/lib -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -I/usr/lib64/libffi/include -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/uchardet -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -D_GNU_SOURCE '-DGNOMELOCALEDIR="/usr/share/locale"' -pipe -march=native -fno-diagnostics-color -Og -g -fPIC -pthread -fno-strict-aliasing -Wpointer-arith -Wmissing-declarations -Wimplicit-function-declaration -Wformat=2 -Wformat-nonliteral -Wformat-security -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wold-style-definition -Wundef -Wunused -Wcast-align -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-include-dirs -Wlogical-op -Wno-uninitialized -Wno-shadow -Wno-int-conversion -Wno-discarded-qualifiers -Werror=redundant-decls -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -Werror=empty-body -Werror=write-strings -Werror=maybe-uninitialized '-DLIBEXECDIR="/usr/libexec"' -MD -MQ plparse/libtotem-plparser.so.18.3.5.p/totem-pl-parser-lines.c.o -MF plparse/libtotem-plparser.so.18.3.5.p/totem-pl-parser-lines.c.o.d -o plparse/libtotem-plparser.so.18.3.5.p/totem-pl-parser-lines.c.o -c ../totem-pl-parser-3.26.6/plparse/totem-pl-parser-lines.c ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_developer-j3-20210617-220928 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.1.0 * clang version 12.0.0 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/12/bin /usr/lib/llvm/12 12.0.0 Python 3.9.5 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby30 (with Rubygems) * Available Rust versions: [1] rust-bin-1.53.0 * The following VMs are available for generation-2: 1) IcedTea JDK 3.16.0 [icedtea-bin-8] 2) JamVM JDK 2.0.0 [jamvm] *) AdoptOpenJDK 8.292_p10 [openjdk-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 [2] jamvm [3] openjdk-bin-8 system-vm The Glorious Glasgow Haskell Compilation System, version 8.10.4 [1] php7.3 [2] php7.4 [3] php8.0 * HEAD of ::gentoo commit 807e3d93099732c9b1419096926f4f2718c57fa7 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Sat Jun 26 21:06:22 2021 +0000 2021-06-26 21:06:21 UTC emerge -qpvO dev-libs/totem-pl-parser [ebuild U ] dev-libs/totem-pl-parser-3.26.6 [3.26.5] USE="crypt introspection uchardet%* -archive -gtk-doc -test (-quvi%*)"
Created attachment 719508 [details] emerge-info.txt
Created attachment 719511 [details] dev-libs:totem-pl-parser-3.26.6:20210626-215050.log
Created attachment 719514 [details] emerge-history.txt
Created attachment 719517 [details] environment
Created attachment 719520 [details] etc.portage.tar.bz2
Created attachment 719523 [details] logs.tar.bz2
Created attachment 719526 [details] temp.tar.bz2
Looks like the package is using some -Werror=... flags. Also looks likely to be related to GCC-11, since I don't see this warning with GCC-10.
I can reproduce the bug with GCC 10.3 and CFLAGS="-march=native -Os -pipe" as well. "-Os" is the culprit. If I change my CFLAGS to CFLAGS="-march=native -O2 -pipe", I can install the package without problems. This post helped my to find the culprit: https://forums.gentoo.org/viewtopic-t-1138933.html
Same here with -Os Patch sended to upstream https://gitlab.gnome.org/GNOME/totem-pl-parser/-/merge_requests/43
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=94af43f25e680dd62a77031962ff87936348c551 commit 94af43f25e680dd62a77031962ff87936348c551 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2021-08-04 22:35:28 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2021-08-04 22:36:04 +0000 dev-libs/totem-pl-parser: Add patch to build with gcc-11 Closes: https://bugs.gentoo.org/798864 Signed-off-by: Matt Turner <mattst88@gentoo.org> dev-libs/totem-pl-parser/totem-pl-parser-3.26.6.ebuild | 4 ++++ 1 file changed, 4 insertions(+)
Thanks a bunch for the patch, David!