Hi again,
may I "delegate" the very similar issue of pbbam to you as well. I tried
to find the correct place to add the missing include but somehow failed. :-(
...
[171/228] c++ -Itests/pbbam_test.p -Itests -I../tests -Iinclude -I../include
-fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++14 -g -O2
-fdebug-prefix-map=/build/pbbam-1.6.0+dfsg=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DBOOST_ALL_NO_LIB
-DGTEST_HAS_PTHREAD=1 -Wduplicated-cond -Wduplicated-branches -Wlogical-op
-Wrestrict -Wnull-dereference -Wuseless-cast -Wdouble-promotion -Wshadow
-Wformat=1 -MD -MQ tests/pbbam_test.p/src_test_Pulse2BaseCache.cpp.o -MF
tests/pbbam_test.p/src_test_Pulse2BaseCache.cpp.o.d -o
tests/pbbam_test.p/src_test_Pulse2BaseCache.cpp.o -c
../tests/src/test_Pulse2BaseCache.cpp
[172/228] c++ -Itests/pbbam_test.p -Itests -I../tests -Iinclude -I../include
-fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++14 -g -O2
-fdebug-prefix-map=/build/pbbam-1.6.0+dfsg=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DBOOST_ALL_NO_LIB
-DGTEST_HAS_PTHREAD=1 -Wduplicated-cond -Wduplicated-branches -Wlogical-op
-Wrestrict -Wnull-dereference -Wuseless-cast -Wdouble-promotion -Wshadow
-Wformat=1 -MD -MQ tests/pbbam_test.p/src_test_ReadGroupInfo.cpp.o -MF
tests/pbbam_test.p/src_test_ReadGroupInfo.cpp.o.d -o
tests/pbbam_test.p/src_test_ReadGroupInfo.cpp.o -c
../tests/src/test_ReadGroupInfo.cpp
FAILED: tests/pbbam_test.p/src_test_ReadGroupInfo.cpp.o
c++ -Itests/pbbam_test.p -Itests -I../tests -Iinclude -I../include
-fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++14 -g -O2
-fdebug-prefix-map=/build/pbbam-1.6.0+dfsg=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DBOOST_ALL_NO_LIB
-DGTEST_HAS_PTHREAD=1 -Wduplicated-cond -Wduplicated-branches -Wlogical-op
-Wrestrict -Wnull-dereference -Wuseless-cast -Wdouble-promotion -Wshadow
-Wformat=1 -MD -MQ tests/pbbam_test.p/src_test_ReadGroupInfo.cpp.o -MF
tests/pbbam_test.p/src_test_ReadGroupInfo.cpp.o.d -o
tests/pbbam_test.p/src_test_ReadGroupInfo.cpp.o -c
../tests/src/test_ReadGroupInfo.cpp
In file included from /usr/include/boost/optional/optional.hpp:33,
from /usr/include/boost/optional.hpp:15,
from ../include/pbbam/ReadGroupInfo.h:13,
from ../tests/src/test_ReadGroupInfo.cpp:3:
/usr/include/boost/optional/optional.hpp: In instantiation of
‘std::basic_ostream<_CharT, _Traits>&
boost::operator<<(std::basic_ostream<_CharT, _Traits>&, const
boost::optional_detail::optional_tag&) [with CharType = char; CharTrait =
std::char_traits<char>]’:
/usr/include/gtest/gtest-printers.h:217:9: required from ‘static void
testing::internal::internal_stream_operator_without_lexical_name_lookup::StreamPrinter::PrintValue(const
T&, std::ostream*) [with T = boost::optional<std::pair<short unsigned int,
short unsigned int> >; <template-parameter-1-2> = void;
<template-parameter-1-3> = std::basic_ostream<char>&; std::ostream =
std::basic_ostream<char>]’
/usr/include/gtest/gtest-printers.h:305:22: required from ‘void
testing::internal::PrintWithFallback(const T&, std::ostream*) [with T =
boost::optional<std::pair<short unsigned int, short unsigned int> >;
std::ostream = std::basic_ostream<char>]’
/usr/include/gtest/gtest-printers.h:434:30: required from ‘void
testing::internal::PrintTo(const T&, std::ostream*) [with T =
boost::optional<std::pair<short unsigned int, short unsigned int> >;
std::ostream = std::basic_ostream<char>]’
/usr/include/gtest/gtest-printers.h:630:12: required from ‘static void
testing::internal::UniversalPrinter<T>::Print(const T&, std::ostream*) [with T
= boost::optional<std::pair<short unsigned int, short unsigned int> >;
std::ostream = std::basic_ostream<char>]’
/usr/include/gtest/gtest-printers.h:858:30: required from ‘void
testing::internal::UniversalPrint(const T&, std::ostream*) [with T =
boost::optional<std::pair<short unsigned int, short unsigned int> >;
std::ostream = std::basic_ostream<char>]’
/usr/include/gtest/gtest-printers.h:786:19: [ skipping 2 instantiation
contexts, use -ftemplate-backtrace-limit=0 to disable ]
/usr/include/gtest/gtest-printers.h:327:36: required from ‘static std::string
testing::internal::FormatForComparison<ToPrint, OtherOperand>::Format(const
ToPrint&) [with ToPrint = boost::optional<std::pair<short unsigned int, short
unsigned int> >; OtherOperand = boost::none_t; std::string =
std::__cxx11::basic_string<char>]’
/usr/include/gtest/gtest-printers.h:408:45: required from ‘std::string
testing::internal::FormatForComparisonFailureMessage(const T1&, const T2&)
[with T1 = boost::optional<std::pair<short unsigned int, short unsigned int> >;
T2 = boost::none_t; std::string = std::__cxx11::basic_string<char>]’
/usr/include/gtest/gtest.h:1528:53: required from ‘testing::AssertionResult
testing::internal::CmpHelperEQFailure(const char*, const char*, const T1&,
const T2&) [with T1 = boost::none_t; T2 = boost::optional<std::pair<short
unsigned int, short unsigned int> >]’
/usr/include/gtest/gtest.h:1549:28: required from ‘testing::AssertionResult
testing::internal::CmpHelperEQ(const char*, const char*, const T1&, const T2&)
[with T1 = boost::none_t; T2 = boost::optional<std::pair<short unsigned int,
short unsigned int> >]’
/usr/include/gtest/gtest.h:1572:23: required from ‘static
testing::AssertionResult testing::internal::EqHelper::Compare(const char*,
const char*, const T1&, const T2&) [with T1 = boost::none_t; T2 =
boost::optional<std::pair<short unsigned int, short unsigned int> >; typename
std::enable_if<((! std::is_integral<_Tp>::value) || (!
std::is_pointer<_Dp>::value))>::type* <anonymous> = 0]’
../tests/src/test_ReadGroupInfo.cpp:280:9: required from here
/usr/include/boost/optional/optional.hpp:1591:3: error: static assertion
failed: If you want to output boost::optional, include header
<boost/optional/optional_io.hpp>
1591 | BOOST_STATIC_ASSERT_MSG(sizeof(CharType) == 0, "If you want to output
boost::optional, include header <boost/optional/optional_io.hpp>");
| ^~~~~~~~~~~~~~~~~~~~~~~
[173/228] c++ -Itests/pbbam_test.p -Itests -I../tests -Iinclude -I../include
-fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++14 -g -O2
-fdebug-prefix-map=/build/pbbam-1.6.0+dfsg=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DBOOST_ALL_NO_LIB
-DGTEST_HAS_PTHREAD=1 -Wduplicated-cond -Wduplicated-branches -Wlogical-op
-Wrestrict -Wnull-dereference -Wuseless-cast -Wdouble-promotion -Wshadow
-Wformat=1 -MD -MQ tests/pbbam_test.p/src_test_PacBioIndex.cpp.o -MF
tests/pbbam_test.p/src_test_PacBioIndex.cpp.o.d -o
tests/pbbam_test.p/src_test_PacBioIndex.cpp.o -c
../tests/src/test_PacBioIndex.cpp
[174/228] c++ -Itests/pbbam_test.p -Itests -I../tests -Iinclude -I../include
-fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++14 -g -O2
-fdebug-prefix-map=/build/pbbam-1.6.0+dfsg=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DBOOST_ALL_NO_LIB
-DGTEST_HAS_PTHREAD=1 -Wduplicated-cond -Wduplicated-branches -Wlogical-op
-Wrestrict -Wnull-dereference -Wuseless-cast -Wdouble-promotion -Wshadow
-Wformat=1 -MD -MQ tests/pbbam_test.p/src_test_PbiFilterQuery.cpp.o -MF
tests/pbbam_test.p/src_test_PbiFilterQuery.cpp.o.d -o
tests/pbbam_test.p/src_test_PbiFilterQuery.cpp.o -c
../tests/src/test_PbiFilterQuery.cpp
[175/228] c++ -Itests/pbbam_test.p -Itests -I../tests -Iinclude -I../include
-fdiagnostics-color=always -DNDEBUG -pipe -D_FILE_OFFSET_BITS=64 -Wall
-Winvalid-pch -Wnon-virtual-dtor -Wextra -Wpedantic -std=c++14 -g -O2
-fdebug-prefix-map=/build/pbbam-1.6.0+dfsg=. -fstack-protector-strong -Wformat
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DBOOST_ALL_NO_LIB
-DGTEST_HAS_PTHREAD=1 -Wduplicated-cond -Wduplicated-branches -Wlogical-op
-Wrestrict -Wnull-dereference -Wuseless-cast -Wdouble-promotion -Wshadow
-Wformat=1 -MD -MQ tests/pbbam_test.p/src_test_PbiFilter.cpp.o -MF
tests/pbbam_test.p/src_test_PbiFilter.cpp.o.d -o
tests/pbbam_test.p/src_test_PbiFilter.cpp.o -c ../tests/src/test_PbiFilter.cpp
ninja: build stopped: subcommand failed.
dh_auto_build: error: cd obj-x86_64-linux-gnu && LC_ALL=C.UTF-8 ninja -j4 -v
returned exit code 1
Thanks for your always helping hands
Andreas.
On Thu, Nov 12, 2020 at 04:33:40PM +0100, Andreas Tille wrote:
> Hi Étienne,
>
> On Thu, Nov 12, 2020 at 03:37:57PM +0100, Étienne Mollier wrote:
> > > /usr/include/boost/optional/optional.hpp:1591:3: error: static assertion
> > > failed: If you want to output boost::optional, include header
> > > <boost/optional/optional_io.hpp>
> > > 1591 | BOOST_STATIC_ASSERT_MSG(sizeof(CharType) == 0, "If you want to
> > > output boost::optional, include header <boost/optional/optional_io.hpp>");
> > > | ^~~~~~~~~~~~~~~~~~~~~~~
> >
> > I added boost_optionnal.patch to solve this issue.
>
> Thanks a lot.
>
> > There was
> > also a small change to bring to introduce the libpbcopper1.8.0
> > binary package.
>
> This is the advantage of d-shlibs - it will tell you about this. :-)
>
> > I checked both manually and with piuparts that
> > there were no conflicts with previous libpbcopper versions; I
> > see 1.3.0 and 1.6.0 versions otherwise available.
>
> Thanks a lot for thorough checking!
>
> Kind regards
>
> Andreas.
>
> --
> http://fam-tille.de
--
http://fam-tille.de