[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#667185: gnuift: ftbfs with GCC-4.7



Package: gnuift
Version: 0.1.14-11
Severity: important
Tags: sid wheezy
User: debian-gcc@lists.debian.org
Usertags: ftbfs-gcc-4.7

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

perl-compile-test-program.cc:71:3: error: 'my_perl' was not declared in this scope

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/gnuift_0.1.14-11_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

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

[...]
make[3]: Leaving directory `/«PKGBUILDDIR»/build-tree/gift-0.1.14/libGIFTQuPerl'
Making all in libGIFTAcDistanceMatrix
make[3]: Entering directory `/«PKGBUILDDIR»/build-tree/gift-0.1.14/libGIFTAcDistanceMatrix'
Making all in cc
make[4]: Entering directory `/«PKGBUILDDIR»/build-tree/gift-0.1.14/libGIFTAcDistanceMatrix/cc'
/bin/bash ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAS_BOOL -I../../libMRML/include -I../../libGIFTAcInvertedFile/include -I../../libGIFTAcDistanceMatrix/include -I../../libGIFTAcURL2FTS/include -I../../libGIFTQuBayesian/include -I/«PKGBUILDDIR»/nonexistant/browsing/libGIFTQuBayesian/include  -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -DEF_PROTECT_BELOW=1 -DEF_PROTECT_FREE -DEF_PROTECT_ALIGNMENT=8 -DEF_FILL=42  -I /usr/include/mysql -DHAVE_LIBPTHREAD -D__GIFT_NEW_IS_MALLOC   -D__GIFT_USES_THREADS__ -pthread -c -o CAcDistanceMatrix.lo CAcDistanceMatrix.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I. -I../.. -DHAS_BOOL -I../../libMRML/include -I../../libGIFTAcInvertedFile/include -I../../libGIFTAcDistanceMatrix/include -I../../libGIFTAcURL2FTS/include -I../../libGIFTQuBayesian/include -I/«PKGBUILDDIR»/nonexistant/browsing/libGIFTQuBayesian/include -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -DEF_PROTECT_BELOW=1 -DEF_PROTECT_FREE -DEF_PROTECT_ALIGNMENT=8 -DEF_FILL=42 -I /usr/include/mysql -DHAVE_LIBPTHREAD -D__GIFT_NEW_IS_MALLOC -D__GIFT_USES_THREADS__ -pthread -c CAcDistanceMatrix.cc  -fPIC -DPIC -o .libs/CAcDistanceMatrix.o
In file included from ../../libGIFTAcDistanceMatrix/include/CPersistentTranslatedIndexMatrix.h:33:0,
                 from ../../libGIFTAcDistanceMatrix/include/CDistanceCalculator.h:29,
                 from ../../libGIFTAcDistanceMatrix/include/CAcDistanceMatrix.h:55,
                 from CAcDistanceMatrix.cc:26:
../../libGIFTAcDistanceMatrix/include/CPersistentMatrix.h: In member function 'bool CPersistentMatrix<T>::create(const char*) const':
../../libGIFTAcDistanceMatrix/include/CPersistentMatrix.h:78:65: error: no matching function for call to 'std::basic_fstream<char>::basic_fstream(const char*&, int&)'
../../libGIFTAcDistanceMatrix/include/CPersistentMatrix.h:78:65: note: candidates are:
In file included from ../../libGIFTAcURL2FTS/include/CAcURL2FTS.h:51:0,
                 from ../../libGIFTAcDistanceMatrix/include/CAcDistanceMatrix.h:48,
                 from CAcDistanceMatrix.cc:26:
/usr/include/c++/4.7/fstream:801:7: note: std::basic_fstream<_CharT, _Traits>::basic_fstream(const char*, std::ios_base::openmode) [with _CharT = char; _Traits = std::char_traits<char>; std::ios_base::openmode = std::_Ios_Openmode] <near match>
/usr/include/c++/4.7/fstream:801:7: note:   no known conversion for argument 2 from 'int' to 'std::ios_base::openmode {aka std::_Ios_Openmode}'
/usr/include/c++/4.7/fstream:788:7: note: std::basic_fstream<_CharT, _Traits>::basic_fstream() [with _CharT = char; _Traits = std::char_traits<char>]
/usr/include/c++/4.7/fstream:788:7: note:   candidate expects 0 arguments, 2 provided
/usr/include/c++/4.7/fstream:761:11: note: std::basic_fstream<char>::basic_fstream(const std::basic_fstream<char>&)
/usr/include/c++/4.7/fstream:761:11: note:   candidate expects 1 argument, 2 provided
make[4]: *** [CAcDistanceMatrix.lo] Error 1
make[4]: Leaving directory `/«PKGBUILDDIR»/build-tree/gift-0.1.14/libGIFTAcDistanceMatrix/cc'
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [debian/stamp-makefile-build] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2



Reply to: