Re: C++ help needed (Was: Bug#777922: jellyfish: ftbfs with GCC-5)

2015-07-03 Thread Jakub Wilk

* Andreas Tille andr...@an3as.eu, 2015-07-03, 06:10:

 CXX  unit_tests/bin_test_all-test_main.o
In file included from ./unit_tests/gtest/gtest.h:308:0,
from unit_tests/test_main.cc:20:
/usr/include/c++/5/sstream:335:7: error: 'struct std::basic_stringbuf_CharT, 
_Traits, _Alloc::__xfer_bufptrs' redeclared with different access
  struct __xfer_bufptrs
  ^
make[3]: *** [unit_tests/bin_test_all-test_main.o] Error 1


Unfortunately, the build system hides compiler flags, and they are 
crucial for understanding what happened here.


Apparently tests are compiled with private redefined as public:

bin_test_all_CPPFLAGS = -Dprotected=public -Dprivate=public 
-DJSON_IS_AMALGAMATION=1

This breaks the sstream header:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65899

--
Jakub Wilk


--
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150703110559.ga9...@jwilk.net



C++ help needed (Was: Bug#777922: jellyfish: ftbfs with GCC-5)

2015-07-02 Thread Andreas Tille
Hi,

again I have no idea how to fix this issue and need to ask some c++ experts.

Thanks for any help

  Andreas.

On Thu, Feb 12, 2015 at 10:32:46AM +, Matthias Klose wrote:
 Package: src:jellyfish
 Version: 2.1.4-1
 Severity: normal
 Tags: sid stretch
 User: debian-...@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/jellyfish_2.1.4-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
 
 [...]
 jellyfish/merge_files.cc:50:14: warning: 'templateclass class 
 std::auto_ptr' is deprecated [-Wdeprecated-declarations]
  typedef std::auto_ptrRectangularBinaryMatrix matrix_ptr;
   ^
 In file included from /usr/include/c++/5/bits/locale_conv.h:41:0,
  from /usr/include/c++/5/locale:43,
  from /usr/include/c++/5/iomanip:43,
  from ./include/jellyfish/err.hpp:21,
  from ./jellyfish/merge_files.hpp:21,
  from jellyfish/merge_files.cc:17:
 /usr/include/c++/5/bits/unique_ptr.h:49:28: note: declared here
templatetypename class auto_ptr;
 ^
   CXXLDbin/jellyfish
 make[3]: Leaving directory '/??PKGBUILDDIR??'
 make[2]: Leaving directory '/??PKGBUILDDIR??'
 make[1]: Leaving directory '/??PKGBUILDDIR??'
dh_auto_test -a
 make[1]: Entering directory '/??PKGBUILDDIR??'
 make  check-am
 make[2]: Entering directory '/??PKGBUILDDIR??'
 make  libgtest.la libgtest_main.la bin/generate_sequence bin/test_all
 make[3]: Entering directory '/??PKGBUILDDIR??'
   CXX  unit_tests/gtest/src/libgtest_la-gtest-all.lo
   CXXLDlibgtest.la
   CXX  unit_tests/gtest/src/libgtest_main_la-gtest_main.lo
   CXXLDlibgtest_main.la
   CXX  jellyfish/generate_sequence.o
   CXX  jellyfish/mersenne.o
   CXX  jellyfish/backtrace.o
   CXX  jellyfish/dbg.o
   CXXLDbin/generate_sequence
   CXX  unit_tests/bin_test_all-test_main.o
 In file included from ./unit_tests/gtest/gtest.h:308:0,
  from unit_tests/test_main.cc:20:
 /usr/include/c++/5/sstream:335:7: error: 'struct std::basic_stringbuf_CharT, 
 _Traits, _Alloc::__xfer_bufptrs' redeclared with different access
struct __xfer_bufptrs
^
 make[3]: *** [unit_tests/bin_test_all-test_main.o] Error 1
 Makefile:1285: recipe for target 'unit_tests/bin_test_all-test_main.o' failed
 make[3]: Leaving directory '/??PKGBUILDDIR??'
 make[2]: *** [check-am] Error 2
 Makefile:2163: recipe for target 'check-am' failed
 make[2]: Leaving directory '/??PKGBUILDDIR??'
 make[1]: *** [check] Error 2
 Makefile:2166: recipe for target 'check' failed
 make[1]: Leaving directory '/??PKGBUILDDIR??'
 dh_auto_test: make -j1 check returned exit code 2
 make: *** [build-arch] Error 2
 debian/rules:8: recipe for target 'build-arch' failed
 dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
 

 ___
 Debian-med-packaging mailing list
 debian-med-packag...@lists.alioth.debian.org
 http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-packaging


-- 
http://fam-tille.de

- End forwarded message -

-- 
http://fam-tille.de


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20150703041030.ga3...@an3as.eu