compilation error rev2402

Bug #618766 reported by Sergei Dorofeenko
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Fix Released
Undecided
Unassigned

Bug Description

I have compilation error with rev2402:

In file included from /usr/include/boost/python/instance_holder.hpp:11,
                 from /usr/include/boost/python/object/pointer_holder.hpp:14,
                 from /usr/include/boost/python/to_python_indirect.hpp:10,
                 from /usr/include/boost/python/converter/arg_to_python.hpp:10,
                 from /usr/include/boost/python/call.hpp:15,
                 from /usr/include/boost/python/object_core.hpp:12,
                 from /usr/include/boost/python/args.hpp:25,
                 from /usr/include/boost/python.hpp:11,
                 from /home/sega/build/yade/build-trunk/include/yade-trunk/yade/lib-serialization/Serializable.hpp:22,
                 from /home/sega/build/yade/build-trunk/include/yade-trunk/yade/core/Engine.hpp:13,
                 from /home/sega/build/yade/build-trunk/include/yade-trunk/yade/core/GlobalEngine.hpp:11,
                 from /home/sega/build/yade/build-trunk/include/yade-trunk/yade/pkg-common/PeriodicEngines.hpp:5,
                 from /home/sega/build/yade/build-trunk/include/yade-trunk/yade/pkg-common/Recorder.hpp:3,
                 from /home/sega/work/yade/trunk/pkg/common/Engine/GlobalEngine/Recorder.cpp:2,
                 from /home/sega/build/yade/build-trunk/plugins9.cpp:1:
/usr/include/boost/python/type_id.hpp: In function 'boost::python::type_info boost::python::type_id() [with T = const volatile InteractionPhysics&]':
/usr/include/boost/python/converter/registered.hpp:87: instantiated from 'const boost::python::converter::registration& boost::python::converter::detail::registry_lookup2(T& (*)()) [with T = const volatile InteractionPhysics]'
/usr/include/boost/python/converter/registered.hpp:94: instantiated from 'const boost::python::converter::registration& boost::python::converter::detail::registry_lookup1(boost::type<Target>) [with T = const volatile InteractionPhysics&]'
/usr/include/boost/python/converter/registered.hpp:105: instantiated from 'const boost::python::converter::registration& boost::python::converter::detail::registered_base<const volatile InteractionPhysics&>::converters'
/usr/include/boost/python/to_python_value.hpp:118: instantiated from 'const PyTypeObject* boost::python::detail::shared_ptr_to_python_value<T>::get_pytype(boost::type<boost::shared_ptr<Y>&>*) const [with U = InteractionPhysics, T = boost::shared_ptr<InteractionPhysics>&]'
/usr/include/boost/python/to_python_value.hpp:109: instantiated from 'const PyTypeObject* boost::python::detail::shared_ptr_to_python_value<T>::get_pytype() const [with T = boost::shared_ptr<InteractionPhysics>&]'
/usr/include/boost/python/detail/caller.hpp:102: instantiated from 'static const PyTypeObject* boost::python::detail::converter_target_type<ResultConverter>::get_pytype() [with ResultConverter = boost::python::to_python_value<boost::shared_ptr<InteractionPhysics>&>]'
/usr/include/boost/python/detail/caller.hpp:242: instantiated from 'static boost::python::detail::py_func_sig_info boost::python::detail::caller_arity<1u>::impl<F, Policies, Sig>::signature() [with F = boost::python::detail::member<boost::shared_ptr<InteractionPhysics>, Interaction>, Policies = boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, Sig = boost::mpl::vector2<boost::shared_ptr<InteractionPhysics>&, boost::python::detail::make_getter(D C::*, const Policies&, mpl_::true_, int) [with C = Interaction, D = boost::shared_ptr<InteractionPhysics>, Policies = boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>]::Class&>]'
/usr/include/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::member<boost::shared_ptr<InteractionPhysics>, Interaction>, boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, boost::mpl::vector2<boost::shared_ptr<InteractionPhysics>&, boost::python::detail::make_getter(D C::*, const Policies&, mpl_::true_, int) [with C = Interaction, D = boost::shared_ptr<InteractionPhysics>, Policies = boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>]::Class&> >]'
/home/sega/work/yade/trunk/pkg/common/Engine/PartialEngine/TranslationEngine.cpp:23: instantiated from here
/usr/include/boost/python/type_id.hpp:89: error: invalid use of incomplete type 'struct InteractionPhysics'
/home/sega/build/yade/build-trunk/include/yade-trunk/yade/core/Interaction.hpp:12: error: forward declaration of 'struct InteractionPhysics'
/usr/include/boost/python/type_id.hpp: In function 'boost::python::type_info boost::python::type_id() [with T = const volatile InteractionGeometry&]':
/usr/include/boost/python/converter/registered.hpp:87: instantiated from 'const boost::python::converter::registration& boost::python::converter::detail::registry_lookup2(T& (*)()) [with T = const volatile InteractionGeometry]'
/usr/include/boost/python/converter/registered.hpp:94: instantiated from 'const boost::python::converter::registration& boost::python::converter::detail::registry_lookup1(boost::type<Target>) [with T = const volatile InteractionGeometry&]'
/usr/include/boost/python/converter/registered.hpp:105: instantiated from 'const boost::python::converter::registration& boost::python::converter::detail::registered_base<const volatile InteractionGeometry&>::converters'
/usr/include/boost/python/to_python_value.hpp:118: instantiated from 'const PyTypeObject* boost::python::detail::shared_ptr_to_python_value<T>::get_pytype(boost::type<boost::shared_ptr<Y>&>*) const [with U = InteractionGeometry, T = boost::shared_ptr<InteractionGeometry>&]'
/usr/include/boost/python/to_python_value.hpp:109: instantiated from 'const PyTypeObject* boost::python::detail::shared_ptr_to_python_value<T>::get_pytype() const [with T = boost::shared_ptr<InteractionGeometry>&]'
/usr/include/boost/python/detail/caller.hpp:102: instantiated from 'static const PyTypeObject* boost::python::detail::converter_target_type<ResultConverter>::get_pytype() [with ResultConverter = boost::python::to_python_value<boost::shared_ptr<InteractionGeometry>&>]'
/usr/include/boost/python/detail/caller.hpp:242: instantiated from 'static boost::python::detail::py_func_sig_info boost::python::detail::caller_arity<1u>::impl<F, Policies, Sig>::signature() [with F = boost::python::detail::member<boost::shared_ptr<InteractionGeometry>, Interaction>, Policies = boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, Sig = boost::mpl::vector2<boost::shared_ptr<InteractionGeometry>&, boost::python::detail::make_getter(D C::*, const Policies&, mpl_::true_, int) [with C = Interaction, D = boost::shared_ptr<InteractionGeometry>, Policies = boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>]::Class&>]'
/usr/include/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::member<boost::shared_ptr<InteractionGeometry>, Interaction>, boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>, boost::mpl::vector2<boost::shared_ptr<InteractionGeometry>&, boost::python::detail::make_getter(D C::*, const Policies&, mpl_::true_, int) [with C = Interaction, D = boost::shared_ptr<InteractionGeometry>, Policies = boost::python::return_value_policy<boost::python::return_by_value, boost::python::default_call_policies>]::Class&> >]'
/home/sega/work/yade/trunk/pkg/common/Engine/PartialEngine/TranslationEngine.cpp:23: instantiated from here
/usr/include/boost/python/type_id.hpp:89: error: invalid use of incomplete type 'struct InteractionGeometry'
/home/sega/build/yade/build-trunk/include/yade-trunk/yade/core/Interaction.hpp:11: error: forward declaration of 'struct InteractionGeometry'
In file included from /home/sega/build/yade/build-trunk/plugins9.cpp:2:
/home/sega/work/yade/trunk/pkg/common/Engine/GlobalEngine/Recorder.cpp: At global scope:
/home/sega/work/yade/trunk/pkg/common/Engine/GlobalEngine/Recorder.cpp:3: warning: 'boost::archive::detail::<unnamed>::init_guid<Recorder>::guid_initializer' defined but not used
/home/sega/work/yade/trunk/pkg/common/Engine/PartialEngine/TranslationEngine.cpp:23: warning: 'boost::archive::detail::<unnamed>::init_guid<TranslationEngine>::guid_initializer' defined but not used
scons: *** [/home/sega/build/yade/build-trunk/plugins9.os] Error 1

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 618766] [NEW] compilation error rev2402
Download full text (8.0 KiB)

Hi,
I am not sure, it is the same bug, but I cant also compile the r2402

Thanks

=====================================================
C pkg/common/DataClass/VelocityBins.cpp
In file included from /usr/include/boost/python/instance_holder.hpp:11,
                 from
/usr/include/boost/python/object/pointer_holder.hpp:14,
                 from /usr/include/boost/python/to_python_indirect.hpp:10,
                 from
/usr/include/boost/python/converter/arg_to_python.hpp:10,
                 from /usr/include/boost/python/call.hpp:15,
                 from /usr/include/boost/python/object_core.hpp:12,
                 from /usr/include/boost/python/args.hpp:25,
                 from /usr/include/boost/python.hpp:11,
                 from
/home/anton/dem/yade/cleanCompNewQT4/build-cleanCompNew/include/yade-cleanCompNew/yade/lib-serialization/Serializable.hpp:22,
                 from
/home/anton/dem/yade/cleanCompNewQT4/build-cleanCompNew/include/yade-cleanCompNew/yade/core/Interaction.hpp:5,
                 from pkg/common/DataClass/VelocityBins.hpp:4,
                 from pkg/common/DataClass/VelocityBins.cpp:4:
/usr/include/boost/python/type_id.hpp: In function 'boost::python::type_info
boost::python::type_id() [with T = const volatile InteractionPhysics&]':
/usr/include/boost/python/converter/registered.hpp:87: instantiated from
'const boost::python::converter::registration&
boost::python::converter::detail::registry_lookup2(T& (*)()) [with T = const
volatile InteractionPhysics]'
/usr/include/boost/python/converter/registered.hpp:94: instantiated from
'const boost::python::converter::registration&
boost::python::converter::detail::registry_lookup1(boost::type<Target>)
[with T = const volatile InteractionPhysics&]'
/usr/include/boost/python/converter/registered.hpp:105: instantiated from
'const boost::python::converter::registration&
boost::python::converter::detail::registered_base<const volatile
InteractionPhysics&>::converters'
/usr/include/boost/python/to_python_value.hpp:118: instantiated from
'const PyTypeObject*
boost::python::detail::shared_ptr_to_python_value<T>::get_pytype(boost::type<boost::shared_ptr<Y>&>*)
const [with U = InteractionPhysics, T =
boost::shared_ptr<InteractionPhysics>&]'
/usr/include/boost/python/to_python_value.hpp:109: instantiated from
'const PyTypeObject*
boost::python::detail::shared_ptr_to_python_value<T>::get_pytype() const
[with T = boost::shared_ptr<InteractionPhysics>&]'
/usr/include/boost/python/detail/caller.hpp:102: instantiated from 'static
const PyTypeObject*
boost::python::detail::converter_target_type<ResultConverter>::get_pytype()
[with ResultConverter =
boost::python::to_python_value<boost::shared_ptr<InteractionPhysics>&>]'
/usr/include/boost/python/detail/caller.hpp:242: instantiated from 'static
boost::python::detail::py_func_sig_info
boost::python::detail::caller_arity<1u>::impl<F, Policies, Sig>::signature()
[with F =
boost::python::detail::member<boost::shared_ptr<InteractionPhysics>,
Interaction>, Policies =
boost::python::return_value_policy<boost::python::return_by_value,
boost::python::default_call_policies>, Sig =
boost::mpl::vector2<boost::shared_ptr<InteractionPhy...

Read more...

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Fixed in r2403, thanks for spotting that.

Changed in yade:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.