Summary: | dev-libs/totem-pl-parser-3.26.6 - ../.../totem-pl-parser.c: error: ret may be used uninitialized in this function [-Werror=maybe-u | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo Linux Gnome Desktop Team <gnome> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | adamcarter3 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 260867, 732706 | ||
Attachments: |
emerge-info.txt
dev-libs:totem-pl-parser-3.26.6:20210626-215050.log emerge-history.txt environment etc.portage.tar.bz2 logs.tar.bz2 temp.tar.bz2 |
Description
Toralf Förster
2021-06-27 08:40:51 UTC
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! |