Sounds like they need to disable the option that says indentation is an error.
--Greg On Wed, Jan 20, 2016 at 6:40 AM, Peter Von Kaehne <ref...@gmx.net> wrote: > I received this email on a different mailing list. It remarks re various > flaws gcc6 will complain about when compiling libsword. > >> Gesendet: Mittwoch, 20. Januar 2016 um 00:09 Uhr >> Von: "Martin Michlmayr" <t...@hpe.com> >> An: sub...@bugs.debian.org >> Betreff: [Pkg-crosswire-devel] Bug#811602: FTBFS with GCC 6: multiple errors >> >> Package: sword >> Version: 1.7.3+dfsg-7 >> Severity: important >> User: debian-...@lists.debian.org >> Usertags: ftbfs-gcc-6 gcc-6-misleading-indentation gcc-6-address >> >> This package fails to build with GCC 6. GCC 6 has not been released >> yet, but it's expected that GCC 6 will become the default compiler for >> stretch. >> >> Note that only the first error is reported; there might be more. You >> can find a snapshot of GCC 6 in experimental. To build with GCC 6, >> you can set CC=gcc-6 CXX=g++-6 explicitly. >> >> > sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux >> ... >> > /usr/bin/c++ -DCLUCENE2 -DCURLAVAILABLE -DCURLSFTPAVAILABLE >> > -DGLOBCONFPATH=\"/etc/sword.conf\" -DUSELUCENE -D_FTPLIB_NO_COMPAT -D_ICU_ >> > -I/<<BUILDDIR>>/sword-1.7.3+dfsg/obj-x86_64-linux-gnu/include >> > -I/<<BUILDDIR>>/sword-1.7.3+dfsg/include -I/usr/lib/x86_64-linux-gnu >> > -I/usr/include/x86_64-linux-gnu -g -O2 -fstack-protector-strong -Wformat >> > -Werror=format-security -Wall -Werror -Wno-error=deprecated-declarations >> > -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o >> > CMakeFiles/sword_static.dir/src/mgr/remotetrans.cpp.o -c >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/mgr/remotetrans.cpp >> > /usr/bin/c++ -DCLUCENE2 -DCURLAVAILABLE -DCURLSFTPAVAILABLE >> > -DGLOBCONFPATH=\"/etc/sword.conf\" -DUSELUCENE -D_FTPLIB_NO_COMPAT -D_ICU_ >> > -Dsword_EXPORTS >> > -I/<<BUILDDIR>>/sword-1.7.3+dfsg/obj-x86_64-linux-gnu/include >> > -I/<<BUILDDIR>>/sword-1.7.3+dfsg/include -I/usr/lib/x86_64-linux-gnu >> > -I/usr/include/x86_64-linux-gnu -g -O2 -fstack-protector-strong -Wformat >> > -Werror=format-security -Wall -Werror -Wno-error=deprecated-declarations >> > -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -o >> > CMakeFiles/sword.dir/src/mgr/encfiltmgr.cpp.o -c >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/mgr/encfiltmgr.cpp >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp: In member function >> > 'virtual void sword::TreeKeyIdx::remove()': >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp:264:7: error: >> > statement is indented as if it were guarded by... >> > [-Werror=misleading-indentation] >> > if (iterator.next > -1) { >> > ^~ >> > >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp:262:6: note: >> > ...this 'while' clause, but it is not >> > while ((iterator.next != target) && (iterator.next > -1)) >> > ^~~~~ >> > >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp: In member function >> > 'virtual void sword::TreeKeyIdx::remove()': >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp:264:7: error: >> > statement is indented as if it were guarded by... >> > [-Werror=misleading-indentation] >> > if (iterator.next > -1) { >> > ^~ >> > >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp:262:6: note: >> > ...this 'while' clause, but it is not >> > while ((iterator.next != target) && (iterator.next > -1)) >> > ^~~~~ >> > >> > In file included from /<<BUILDDIR>>/sword-1.7.3+dfsg/include/swkey.h:28:0, >> > from /<<BUILDDIR>>/sword-1.7.3+dfsg/include/treekey.h:27, >> > from >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/include/treekeyidx.h:27, >> > from >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp:24: >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp: In member function >> > 'virtual int sword::TreeKeyIdx::compare(const sword::SWKey&)': >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/include/swobject.h:30:128: error: the >> > compiler can assume that the address of 'ikey' will always evaluate to >> > 'true' [-Werror=address] >> > #define SWDYNAMIC_CAST(className, object) (className >> > *)((object)?((object->getClass()->isAssignableFrom(#className))?object:0):0) >> > >> > ^ >> > >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp:575:24: note: in >> > expansion of macro 'SWDYNAMIC_CAST' >> > TreeKeyIdx *treeKey = SWDYNAMIC_CAST(TreeKeyIdx, (&ikey)); >> > ^~~~~~~~~~~~~~ >> > >> > In file included from /<<BUILDDIR>>/sword-1.7.3+dfsg/include/swkey.h:28:0, >> > from /<<BUILDDIR>>/sword-1.7.3+dfsg/include/treekey.h:27, >> > from >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/include/treekeyidx.h:27, >> > from >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp:24: >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp: In member function >> > 'virtual int sword::TreeKeyIdx::compare(const sword::SWKey&)': >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/include/swobject.h:30:128: error: the >> > compiler can assume that the address of 'ikey' will always evaluate to >> > 'true' [-Werror=address] >> > #define SWDYNAMIC_CAST(className, object) (className >> > *)((object)?((object->getClass()->isAssignableFrom(#className))?object:0):0) >> > >> > ^ >> > >> > /<<BUILDDIR>>/sword-1.7.3+dfsg/src/keys/treekeyidx.cpp:575:24: note: in >> > expansion of macro 'SWDYNAMIC_CAST' >> > TreeKeyIdx *treeKey = SWDYNAMIC_CAST(TreeKeyIdx, (&ikey)); >> > ^~~~~~~~~~~~~~ >> > >> >> -- >> Martin Michlmayr >> Linux for HPE Helion, Hewlett Packard Enterprise >> >> _______________________________________________ >> Pkg-crosswire-devel mailing list >> pkg-crosswire-de...@lists.alioth.debian.org >> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-crosswire-devel >> > > _______________________________________________ > sword-devel mailing list: sword-devel@crosswire.org > http://www.crosswire.org/mailman/listinfo/sword-devel > Instructions to unsubscribe/change your settings at above page _______________________________________________ sword-devel mailing list: sword-devel@crosswire.org http://www.crosswire.org/mailman/listinfo/sword-devel Instructions to unsubscribe/change your settings at above page