Summary: | media-libs/libmp4v2-2.0.0-r1 build fails with GCC 10: error: narrowing conversion | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matt Whitlock <gentoo> |
Component: | Current packages | Assignee: | Gentoo Sound Team <sound> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ao, atoth, jstein, plevine457, waebbl-gentoo |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=706426 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
libmp4v2-2.0.0-narrowing-cast.patch |
Description
Matt Whitlock
2020-05-14 19:44:43 UTC
I'm having the same issue. Temporarily adding -Wno-narrowing to CFLAGS let's the build succeed, but adding -fcommon doesn't help. Created attachment 644612 [details, diff]
libmp4v2-2.0.0-narrowing-cast.patch
Explicitly casts int to unsigned int.
(In reply to Peter Levine from comment #2) > Created attachment 644612 [details, diff] [details, diff] > libmp4v2-2.0.0-narrowing-cast.patch > > Explicitly casts int to unsigned int. Patch fixes build of media-libs/libmp4v2-2.0.0-r2 on ~amd64 with GCC 10.2.0. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=45145f7b3d15af680db938c5a3fd78a68502fad7 commit 45145f7b3d15af680db938c5a3fd78a68502fad7 Author: Jason A. Donenfeld <zx2c4@gentoo.org> AuthorDate: 2020-08-06 13:24:14 +0000 Commit: Jason A. Donenfeld <zx2c4@gentoo.org> CommitDate: 2020-08-06 13:24:14 +0000 media-libs/libmp4v2: fix compilation with recent gcc Closes: https://bugs.gentoo.org/723098 Package-Manager: Portage-3.0.1, Repoman-2.3.23 Signed-off-by: Jason A. Donenfeld <zx2c4@gentoo.org> .../files/libmp4v2-2.0.0-unsigned-int-cast.patch | 96 ++++++++++++++++++++++ media-libs/libmp4v2/libmp4v2-2.0.0-r2.ebuild | 1 + 2 files changed, 97 insertions(+) |