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

boost : no match for call to boost::factory



Dear mentors,

I'm trying to package the new upstream release of FW4SPL for the debian-med project. But I get this strange error during the build :

[ 19%] Building CXX object fwCoreTest/CMakeFiles/fwCoreTest.dir/tu/src/FactoryRegistryTest.cpp.o
cd /build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwCoreTest && /usr/bin/c++   -DBOOST_ALL_DYN_LINK -DBOOST_DEBUG_PYTHON -DBOOST_LINKING_PYTHON -DBOOST_THREAD_DONT_PROVIDE_DEPRECATED_FEATURES_SINCE_V3_0_0 -DBOOST_THREAD_PROVIDES_FUTURE -DBOOST_THREAD_VERSION=2 -DFWCORETEST_VER=\"0-0\" -DQT_NO_KEYWORDS -DSPYLOG_LEVEL=2 -DWXUSINGDLL -D__WXGTK__ -I/build/fw4spl-0.10.2.2/SrcLib/core/fwCore/test/tu/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwCore/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwCore/include -I/build/fw4spl-0.10.2.2/SrcLib/tests/fwTest/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwTest/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwComEd/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwComEd/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwCom/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwCom/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwThread/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwThread/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwData/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwData/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwCamp/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwCamp/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwMemory/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwMemory/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwTools/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwTools/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwMedData/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwMedData/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwRuntime/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwRuntime/include -I/usr/include/libxml2 -I/build/fw4spl-0.10.2.2/SrcLib/core/fwServices/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwServices/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwActivities/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwActivities/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwMath/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwMath/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwDataCamp/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwDataCamp/include -I/build/fw4spl-0.10.2.2/SrcLib/core/fwDataTools/include -I/build/fw4spl-0.10.2.2/obj-x86_64-linux-gnu/fwDataTools/include  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -Wall -Wextra -Wconversion -Wno-unused-parameter -Wno-ignored-qualifiers -fvisibility=hidden --std=c++11   -o CMakeFiles/fwCoreTest.dir/tu/src/FactoryRegistryTest.cpp.o -c /build/fw4spl-0.10.2.2/SrcLib/core/fwCore/test/tu/src/FactoryRegistryTest.cpp
In file included from /usr/include/boost/function/detail/maybe_include.hpp:18:0,
                 from /usr/include/boost/function/detail/function_iterate.hpp:14,
                 from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:52,
                 from /usr/include/boost/function.hpp:64,
                 from /build/fw4spl-0.10.2.2/SrcLib/core/fwCore/include/fwCore/util/FactoryRegistry.hpp:13,
                 from /build/fw4spl-0.10.2.2/SrcLib/core/fwCore/test/tu/src/FactoryRegistryTest.cpp:10:
/usr/include/boost/function/function_template.hpp: In instantiation of 'static R boost::detail::function::function_obj_invoker1<FunctionObj, R, T0>::invoke(boost::detail::function::function_buffer&, T0) [with FunctionObj = boost::factory<std::shared_ptr<fwCore::ut::ObjectTest> >; R = std::shared_ptr<fwCore::ut::ObjectTest>; T0 = std::__cxx11::basic_string<char>]':
/usr/include/boost/function/function_template.hpp:940:38:   required from 'void boost::function1<R, T1>::assign_to(Functor) [with Functor = boost::factory<std::shared_ptr<fwCore::ut::ObjectTest> >; R = std::shared_ptr<fwCore::ut::ObjectTest>; T0 = std::__cxx11::basic_string<char>]'
/usr/include/boost/function/function_template.hpp:728:7:   required from 'boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = boost::factory<std::shared_ptr<fwCore::ut::ObjectTest> >; R = std::shared_ptr<fwCore::ut::ObjectTest>; T0 = std::__cxx11::basic_string<char>; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]'
/usr/include/boost/function/function_template.hpp:1077:16:   required from 'boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type) [with Functor = boost::factory<std::shared_ptr<fwCore::ut::ObjectTest> >; R = std::shared_ptr<fwCore::ut::ObjectTest>; T0 = std::__cxx11::basic_string<char>; typename boost::enable_if_c<boost::type_traits::ice_not<boost::is_integral<Functor>::value>::value, int>::type = int]'
/build/fw4spl-0.10.2.2/SrcLib/core/fwCore/test/tu/src/FactoryRegistryTest.cpp:178:84:   required from here
/usr/include/boost/function/function_template.hpp:138:22: error: no match for call to '(boost::factory<std::shared_ptr<fwCore::ut::ObjectTest> >) (std::__cxx11::basic_string<char>)'
           return (*f)(BOOST_FUNCTION_ARGS);

 I tried to build the package with gcc-5, gcc-4.8 and clang-3.6/3.7, but each time, the same error occurs.

/usr/include/boost/function/function_template.hpp:138:22: error: no match for call to '(boost::factory<std::shared_ptr<...

Is someone have any idea about the cause of this issue ?
The concerned lines of FW4SPL haven't changed, and I didn't have any problem in the past, with an older boost version.


Thank you for your help,

Best regards,


Corentin

Reply to: