Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 798864 - dev-libs/totem-pl-parser-3.26.6 - ../.../totem-pl-parser.c: error: ret may be used uninitialized in this function [-Werror=maybe-u
Summary: dev-libs/totem-pl-parser-3.26.6 - ../.../totem-pl-parser.c: error: ret may be...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
Depends on:
Blocks: werror gcc-11
  Show dependency tree
Reported: 2021-06-27 08:40 UTC by Toralf Förster
Modified: 2021-08-04 22:36 UTC (History)
1 user (show)

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

emerge-info.txt (emerge-info.txt,19.53 KB, text/plain)
2021-06-27 08:40 UTC, Toralf Förster
dev-libs:totem-pl-parser-3.26.6:20210626-215050.log (dev-libs:totem-pl-parser-3.26.6:20210626-215050.log,30.49 KB, text/plain)
2021-06-27 08:40 UTC, Toralf Förster
emerge-history.txt (emerge-history.txt,485.61 KB, text/plain)
2021-06-27 08:40 UTC, Toralf Förster
environment (environment,98.06 KB, text/plain)
2021-06-27 08:40 UTC, Toralf Förster
etc.portage.tar.bz2 (etc.portage.tar.bz2,23.36 KB, application/x-bzip)
2021-06-27 08:40 UTC, Toralf Förster
logs.tar.bz2 (logs.tar.bz2,4.51 KB, application/x-bzip)
2021-06-27 08:41 UTC, Toralf Förster
temp.tar.bz2 (temp.tar.bz2,25.80 KB, application/x-bzip)
2021-06-27 08:41 UTC, Toralf Förster

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-06-27 08:40:51 UTC
[15/48] x86_64-pc-linux-gnu-gcc -Iplparse/ -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/ -MF plparse/ -o plparse/ -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
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 <>
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%*)"
Comment 1 Toralf Förster gentoo-dev 2021-06-27 08:40:52 UTC
Created attachment 719508 [details]
Comment 2 Toralf Förster gentoo-dev 2021-06-27 08:40:53 UTC
Created attachment 719511 [details]
Comment 3 Toralf Förster gentoo-dev 2021-06-27 08:40:55 UTC
Created attachment 719514 [details]
Comment 4 Toralf Förster gentoo-dev 2021-06-27 08:40:57 UTC
Created attachment 719517 [details]
Comment 5 Toralf Förster gentoo-dev 2021-06-27 08:40:58 UTC
Created attachment 719520 [details]
Comment 6 Toralf Förster gentoo-dev 2021-06-27 08:41:00 UTC
Created attachment 719523 [details]
Comment 7 Toralf Förster gentoo-dev 2021-06-27 08:41:01 UTC
Created attachment 719526 [details]
Comment 8 Matt Turner gentoo-dev 2021-07-06 23:41:49 UTC
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.
Comment 9 Michael Hofmann 2021-07-10 22:43:42 UTC
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:
Comment 10 David 2021-07-11 21:00:59 UTC
Same here with -Os

Patch sended to upstream
Comment 11 Larry the Git Cow gentoo-dev 2021-08-04 22:36:15 UTC
The bug has been closed via the following commit(s):

commit 94af43f25e680dd62a77031962ff87936348c551
Author:     Matt Turner <>
AuthorDate: 2021-08-04 22:35:28 +0000
Commit:     Matt Turner <>
CommitDate: 2021-08-04 22:36:04 +0000

    dev-libs/totem-pl-parser: Add patch to build with gcc-11
    Signed-off-by: Matt Turner <>

 dev-libs/totem-pl-parser/totem-pl-parser-3.26.6.ebuild | 4 ++++
 1 file changed, 4 insertions(+)
Comment 12 Matt Turner gentoo-dev 2021-08-04 22:36:45 UTC
Thanks a bunch for the patch, David!