Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618434 - media-libs/kvazaar-1.0.0 builds with Werror
Summary: media-libs/kvazaar-1.0.0 builds with Werror
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: werror
  Show dependency tree
 
Reported: 2017-05-14 10:39 UTC by Alessandro Barbieri
Modified: 2024-04-07 23:35 UTC (History)
2 users (show)

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


Attachments
media-libs:kvazaar-1.0.0:20170501-050646.log (media-libs:kvazaar-1.0.0:20170501-050646.log,127.45 KB, text/plain)
2017-05-14 10:40 UTC, Alessandro Barbieri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2017-05-14 10:39:52 UTC
for example

/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I/var/tmp/notmpfs/portage/media-libs/kvazaar-1.0.0/work/kvazaar-1.0.0/src -I..   -DKVZ_DLL_EXPORTS   -msse4.1 -Werror -pthread -Wall -Wtype-limits -Wvla -I/var/tmp/notmpfs/portage/media-libs/kvazaar-1.0.0/work/kvazaar-1.0.0/src -I/var/tmp/notmpfs/portage/media-libs/kvazaar-1.0.0/work/kvazaar-1.0.0/src/extras -ftree-vectorize -fvisibility=hidden -Os -pipe -march=native -mtune=native -fomit-frame-pointer -mfpmath=sse -Wl,-O1 -Wl,--as-needed -Wl,-O2 -Wl,-z,now -Wl,-z,relro -lpthread -lgomp -fweb -fgcse-after-reload -fivopts -fopenmp -Wno-error=implicit-function-declaration -pthread -D_REENTRANT
-c -o strategies/sse41/libsse41_la-picture-sse41.lo `test -f 'strategies/sse41/picture-sse41.c' || echo '/var/tmp/notmpfs/portage/media-libs/kvazaar-1.0.0/work/kvazaar-1.0.0/src/'`strategies/sse41/picture-sse41.c
Comment 1 Alessandro Barbieri 2017-05-14 10:40:56 UTC
Created attachment 472568 [details]
media-libs:kvazaar-1.0.0:20170501-050646.log

build log
Comment 2 Alexis Ballier gentoo-dev 2017-06-16 09:44:48 UTC
commit 019c44a86ad017ea54703b7594b076cb0b840707 (HEAD -> master, origin/master, origin/HEAD)
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Fri Jun 16 11:44:01 2017 +0200

    media-libs/kvazaar: Do not build with Werror, bug #618434
    

thanks
Comment 3 Larry the Git Cow gentoo-dev 2024-04-07 23:35:21 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6308710dff6e3e7469e536d5e947494ca080fd4

commit e6308710dff6e3e7469e536d5e947494ca080fd4
Author:     Eli Schwartz <eschwartz93@gmail.com>
AuthorDate: 2024-04-07 22:24:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-04-07 23:33:45 +0000

    media-libs/kvazaar: don't manually enable -Werror
    
    autotools is genius software. When you add a flag called
    --disable-werror, it isn't actually a flag called --disable-werror. It's
    a flag called AC_ARG_ENABLE(werror), which expands "code if argument
    was passed on the command line" and "code if argument was not passed on
    the command line" blocks. When you say "--disable-werror" all you
    actually do is add a formatted help text, which is otherwise totally
    ignored by autoconf.
    
    kvazaar had an AC_ARG_ENABLE that defined an
    action-if-argument-was-defined-on-the-command-line of nothing, and an
    action-if-argument-was-excluded-on-the-command-line of adding -Werror to
    CFLAGS.
    
    Back in commit 019c44a86ad017ea54703b7594b076cb0b840707, this was then
    used to work around the default addition of -Werror. Logical.
    
    In the very next release, upstream changed the help text to advertise
    the --enable-* form, and switched it to
    action-if-argument-was-defined-on-the-command-line of adding -Werror,
    action-if-argument-was-excluded-on-the-command-line of nothing.
    
    See:
    https://github.com/ultravideo/kvazaar/commit/033bc6bc45b0c6b200a4227208d2fa6263e09166
    
    This naturally meant that passing --disable-werror would add -Werror, in
    addition to setting the ignored shell variable enable_werror=no. So for
    seven years, we've been building with -Werror. Yay!
    
    During that very version bump, --disable-werror was never removed.
    Instead, append-flags was used to add an additional gcc switch back off,
    per the redundancy requirements of the Department of Redundancy Department's
    required approach to redundantly specifying redundant flags.
    
    This also appears to tickle edge cases in LTO due to libtool dropping
    some, but not all flags... sometimes. Leading to LTO being performed
    with global -Werror.
    
    Bug: https://bugs.gentoo.org/618434
    Closes: https://bugs.gentoo.org/907263
    Closes: https://bugs.gentoo.org/924296
    Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/kvazaar/kvazaar-2.1.0.ebuild    | 5 +----
 media-libs/kvazaar/kvazaar-2.2.0.ebuild    | 5 +----
 media-libs/kvazaar/kvazaar-2.3.0-r1.ebuild | 3 ---
 media-libs/kvazaar/kvazaar-9999.ebuild     | 3 ---
 4 files changed, 2 insertions(+), 14 deletions(-)