[Debian-med-packaging] Bug#872262: jellyfish FTBFS with gcc 7

Adrian Bunk bunk at debian.org
Tue Aug 15 12:56:06 UTC 2017


Source: jellyfish
Version: 2.2.6-1
Severity: serious
Tags: patch buster sid

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/jellyfish.html

...
/bin/bash ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.  -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/lib/x86_64-linux-gnu/perl/5.26/CORE -I./include -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++0x -g -O3 -Werror -std=c++0x -g -O2 -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -c -o swig/perl5/swig_perl5_jellyfish_la-swig_wrap.lo `test -f 'swig/perl5/swig_wrap.cpp' || echo './'`swig/perl5/swig_wrap.cpp
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/lib/x86_64-linux-gnu/perl/5.26/CORE -I./include -Wdate-time -D_FORTIFY_SOURCE=2 -std=c++0x -g -O3 -Werror -std=c++0x -g -O2 -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -c swig/perl5/swig_wrap.cpp  -fPIC -DPIC -o swig/perl5/.libs/swig_perl5_jellyfish_la-swig_wrap.o
swig/perl5/swig_wrap.cpp:1980:36: error: dynamic exception specifications are deprecated in C++11 [-Werror=deprecated]
     QueryMerFile(const char* path) throw(std::runtime_error) {
                                    ^~~~~
swig/perl5/swig_wrap.cpp:2023:35: error: dynamic exception specifications are deprecated in C++11 [-Werror=deprecated]
     ReadMerFile(const char* path) throw(std::runtime_error) :
                                   ^~~~~
cc1plus: all warnings being treated as errors
Makefile:1655: recipe for target 'swig/perl5/swig_perl5_jellyfish_la-swig_wrap.lo' failed
make[3]: *** [swig/perl5/swig_perl5_jellyfish_la-swig_wrap.lo] Error 1


Fix/Workaround is attached.
-------------- next part --------------
Description: Don't use -Werror
 The SWIG-generated swig/perl5/swig_wrap.cpp gives warnings with
 gcc 7, don't make these fatal with -Werror.
Author: Adrian Bunk <bunk at debian.org>

--- jellyfish-2.2.6.orig/development.mk
+++ jellyfish-2.2.6/development.mk
@@ -1,4 +1,4 @@
-AM_CXXFLAGS += -Werror
+#AM_CXXFLAGS += -Werror
 
 # Count lines of code
 .PHONY: cloc cloc_jellyfish


More information about the Debian-med-packaging mailing list