Bug#777972: libsearch-xapian-perl: ftbfs with GCC-5

Matthias Klose doko at debian.org
Thu Feb 12 10:33:47 UTC 2015


Package: src:libsearch-xapian-perl
Version: 1.2.19.0-1
Severity: normal
Tags: sid stretch
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-5

Please keep this issue open in the bug tracker for the package it
was filed for.  If a fix in another package is required, please
file a bug for the other package (or clone), and add a block in this
package. Please keep the issue open until the package can be built in
a follow-up test rebuild.

The package fails to build in a test rebuild on at least amd64 with
gcc-5/g++-5, but succeeds to build with gcc-4.9/g++-4.9. The
severity of this report may be raised before the stretch release.

The full build log can be found at:
http://people.debian.org/~doko/logs/gcc5-20150205/libsearch-xapian-perl_1.2.19.0-1_unstable_gcc5.log
The last lines of the build log are at the end of this report.

To build with GCC 5, either set CC=gcc-5 CXX=g++-5 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

  apt-get -t experimental install g++ 

Common build failures are C11 as the default C mode, new warnings
resulting in build failures with -Werror turned on, or new/dropped
symbols in Debian symbols files.  For other C/C++ related build failures
see the porting guide at http://gcc.gnu.org/gcc-5/porting_to.html

[...]
cp Xapian/PositionIterator.pm blib/lib/Search/Xapian/PositionIterator.pm
cp Xapian/LogicError.pm blib/lib/Search/Xapian/LogicError.pm
cp Xapian/InternalError.pm blib/lib/Search/Xapian/InternalError.pm
cp Xapian/MultiValueSorter.pm blib/lib/Search/Xapian/MultiValueSorter.pm
cp Xapian/Error.pm blib/lib/Search/Xapian/Error.pm
cp Xapian.pm blib/lib/Search/Xapian.pm
cp Xapian/Document.pm blib/lib/Search/Xapian/Document.pm
cp Xapian/RuntimeError.pm blib/lib/Search/Xapian/RuntimeError.pm
cp Xapian/ESetIterator.pm blib/lib/Search/Xapian/ESetIterator.pm
cp Xapian/RSet.pm blib/lib/Search/Xapian/RSet.pm
cp Xapian/BM25Weight.pm blib/lib/Search/Xapian/BM25Weight.pm
cp Xapian/Query.pm blib/lib/Search/Xapian/Query.pm
cp Xapian/QueryParser.pm blib/lib/Search/Xapian/QueryParser.pm
cp Xapian/MSet.pm blib/lib/Search/Xapian/MSet.pm
cp Xapian/UnimplementedError.pm blib/lib/Search/Xapian/UnimplementedError.pm
cp Xapian/Stopper.pm blib/lib/Search/Xapian/Stopper.pm
cp Xapian/Weight.pm blib/lib/Search/Xapian/Weight.pm
cp Xapian/TermGenerator.pm blib/lib/Search/Xapian/TermGenerator.pm
cp Xapian/WritableDatabase.pm blib/lib/Search/Xapian/WritableDatabase.pm
cp Xapian/SimpleStopper.pm blib/lib/Search/Xapian/SimpleStopper.pm
cp Xapian/SerialisationError.pm blib/lib/Search/Xapian/SerialisationError.pm
cp Xapian/TermIterator.pm blib/lib/Search/Xapian/TermIterator.pm
cp Xapian/Stem.pm blib/lib/Search/Xapian/Stem.pm
cp Xapian/TradWeight.pm blib/lib/Search/Xapian/TradWeight.pm
cp Xapian/ValueIterator.pm blib/lib/Search/Xapian/ValueIterator.pm
Running Mkbootstrap for Search::Xapian ()
chmod 644 Xapian.bs
/usr/bin/perl /usr/share/perl/5.20/ExtUtils/xsubpp  -C++ -typemap /usr/share/perl/5.20/ExtUtils/typemap -typemap perlobject.map -typemap typemap-errorclasses -typemap typemap  Xapian.xs > Xapian.xsc && mv Xapian.xsc Xapian.c
g++ -c   -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fwrapv -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2   -DVERSION=\"1.2.19.0\" -DXS_VERSION=\"1.2.19.0\" -fPIC "-I/usr/lib/x86_64-linux-gnu/perl/5.20/CORE"   Xapian.c
In file included from /usr/include/xapian.h:40:0,
                 from Xapian.xs:3:
/usr/include/xapian/version.h:28:2: error: #error The C++ ABI version of compiler you are using does not match
 #error The C++ ABI version of compiler you are using does not match
  ^
/usr/include/xapian/version.h:29:2: error: #error that of the compiler used to build the library. The versions
 #error that of the compiler used to build the library. The versions
  ^
/usr/include/xapian/version.h:30:2: error: #error must match or your program will not work correctly.
 #error must match or your program will not work correctly.
  ^
/usr/include/xapian/version.h:31:2: error: #error The Xapian library was built with g++ 4.9.1
 #error The Xapian library was built with g++ 4.9.1
  ^
make[1]: *** [Xapian.o] Error 1
Makefile:531: recipe for target 'Xapian.o' failed
make[1]: Leaving directory '/«PKGBUILDDIR»'
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
debian/rules:9: recipe for target 'build-arch' failed
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



More information about the pkg-perl-maintainers mailing list