[C++-sig] Problem with boost.python 1.35.0

Nikolay Mladenov nickm at sitius.com
Wed Apr 9 18:28:57 CEST 2008


Hi Grant,

This seems to be related to the documentation patch I submitted some
time ago.

Could you try defining BOOST_PYTHON_NO_PY_SIGNATURES and see if this
helps?
Or could you provide small example, that duplicates the problem?

What is the compiler version?


Nikolay Mladenov

Grant Tang wrote:
> 
> My application works fine with previous versions of boost.python. But
> I
> tried to compile it with the boost.python 1.35.0, it fails with the
> compilation. Can some one help me?
> 
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/type_traits/detail/cv_traits_impl.hpp:
> 
> In instantiation of 'const bool
> boost::detail::cv_traits_imp<<unnamed>::EMAN_Aligner_Wrapper*>::is_const':
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/type_traits/is_const.hpp:53:
> 
> instantiated from 'boost::is_const<<unnamed>::EMAN_Aligner_Wrapper>'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/detail/cv_category.hpp:31:
> 
> instantiated from
> 'boost::python::detail::cv_category<<unnamed>::EMAN_Aligner_Wrapper>'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/detail/unwind_type.hpp:58:
> 
> instantiated from 'typename Generator::result_type
> boost::python::detail::unwind_ptr_type(U*, Generator*) [with Generator
> =
> boost::python::converter::detail::unwind_type_id_helper, U =
> <unnamed>::EMAN_Aligner_Wrapper]'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/detail/unwind_type.hpp:127:
> 
> instantiated from 'static typename Generator::result_type
> boost::python::detail::unwind_helper2<2>::execute(U& (*)(),
> Generator*)
> [with Generator =
> boost::python::converter::detail::unwind_type_id_helper, U
> = <unnamed>::EMAN_Aligner_Wrapper]'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/detail/unwind_type.hpp:165:
> 
> instantiated from 'typename Generator::result_type
> boost::python::detail::unwind_type(boost::type<U>*, Generator*) [with
> Generator = boost::python::converter::detail::unwind_type_id_helper, U
> =
> <unnamed>::EMAN_Aligner_Wrapper&]'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/converter/pytype_function.hpp:45:
> 
> instantiated from 'boost::python::type_info
> boost::python::converter::detail::unwind_type_id_(boost::type<Target>*,
> 
> mpl_::false_*) [with T = <unnamed>::EMAN_Aligner_Wrapper&]'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/converter/pytype_function.hpp:68:
> 
> instantiated from 'static const PyTypeObject*
> boost::python::converter::expected_pytype_for_arg<T>::get_pytype()
> [with T =
> <unnamed>::EMAN_Aligner_Wrapper&]'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/detail/signature.hpp:98:
> 
> instantiated from 'static const
> boost::python::detail::signature_element*
> boost::python::detail::signature_arity<5u>::impl<Sig>::elements()
> [with Sig
> = boost::mpl::v_item<void,
> boost::mpl::v_item<<unnamed>::EMAN_Aligner_Wrapper&,
> boost::mpl::v_mask<boost::mpl::v_mask<boost::mpl::vector6<EMAN::EMData*,
> 
> EMAN::Aligner&, EMAN::EMData*, EMAN::EMData*, const std::string&,
> const
> EMAN::Dict&>, 1>, 1>, 1>, 1>]'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/detail/caller.hpp:232:
> 
> instantiated from 'static boost::python::detail::py_func_sig_info
> boost::python::detail::caller_arity<5u>::impl<F, Policies,
> Sig>::signature()
> [with F = boost::python::detail::nullary_function_adaptor<void (*)()>,
> 
> Policies = boost::python::default_call_policies, Sig =
> boost::mpl::v_item<void,
> boost::mpl::v_item<<unnamed>::EMAN_Aligner_Wrapper&,
> boost::mpl::v_mask<boost::mpl::v_mask<boost::mpl::vector6<EMAN::EMData*,
> 
> EMAN::Aligner&, EMAN::EMData*, EMAN::EMData*, const std::string&,
> const
> EMAN::Dict&>, 1>, 1>, 1>, 1>]'
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/python/object/py_function.hpp:48:
> 
> instantiated from 'boost::python::detail::py_func_sig_info
> boost::python::objects::caller_py_function_impl<Caller>::signature()
> const
> [with Caller =
> boost::python::detail::caller<boost::python::detail::nullary_function_adaptor<void
> 
> (*)()>, boost::python::default_call_policies, boost::mpl::v_item<void,
> 
> boost::mpl::v_item<<unnamed>::EMAN_Aligner_Wrapper&,
> boost::mpl::v_mask<boost::mpl::v_mask<boost::mpl::vector6<EMAN::EMData*,
> 
> EMAN::Aligner&, EMAN::EMData*, EMAN::EMData*, const std::string&,
> const
> EMAN::Dict&>, 1>, 1>, 1>, 1> >]'
> /home/g/EMAN2/src/eman2/libpyEM/libpyAligner2.cpp:358:
> instantiated from here
> /home/g/library/boost_1_35_py2.5.ucs4/include/boost-1_35/boost/type_traits/detail/cv_traits_impl.hpp:37:
> 
> internal compiler error: in make_rtl_for_nonlocal_decl, at
> cp/decl.c:5067
> Please submit a full bug report, with preprocessed source if
> appropriate.
> See <URL:http://bugzilla.redhat.com/bugzilla> for instructions.
> Preprocessed source stored into /tmp/cc2yhNUv.out file, please attach
> this
> to your bugreport.
> make[2]: *** [libpyEM/CMakeFiles/pyAligner2.dir/libpyAligner2.o] Error
> 1
> make[1]: *** [libpyEM/CMakeFiles/pyAligner2.dir/all] Error 2
> make: *** [all] Error 2
> 
> Grant
> 
>     ---------------------------------------------------------------
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig




More information about the Cplusplus-sig mailing list