Boost logo

Boost-Build :

Subject: Re: [Boost-build] Error Compiling Test in Function
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-11-06 11:35:10


On Thursday 06 November 2008 18:48:00 Michael Jackson wrote:
> I am working through the CMake based build system and I have hit a
> compile error that I can not really track down. The compile is in the
> Functional_Types/test/custom_ccs/member_ccs.cpp file when it is
> compiled. The compile should exit cleanly in order for the test to
> pass. Mine does not. Here is the complete compile line and errors.
> Running COMPILE TEST 'member_ccs' in project function_types
> cd /Users/Shared/OpenSource/boost/libs/function_types/test && /usr/bin/
> python2.5 /Users/Shared/OpenSource/Build-Boost/CMakeFiles/passthru.py /
> Users/Shared/OpenSource/Build-Boost/libs/function_types/function_types-
> test compile member_ccs /usr/bin/c++ -I/Users/Shared/OpenSource/boost -
> I/Users/Shared/OpenSource/boost/libs/function_types/include -I/Users/
> Shared/OpenSource/boost/libs/mpl/include -I/Users/Shared/OpenSource/
> boost/libs/detail/include -I/Users/Shared/OpenSource/boost/libs/
> preprocessor/include -I/Users/Shared/OpenSource/boost/libs/config/
> include -I/Users/Shared/OpenSource/boost/libs/integer/include -I/Users/
> Shared/OpenSource/boost/libs/utility/include -I/Users/Shared/
> OpenSource/boost/libs/iterator/include -I/Users/Shared/OpenSource/
> boost/libs/exception/include -I/Users/Shared/OpenSource/boost/libs/
> type_traits/include -I/Users/Shared/OpenSource/boost/libs/function/
> include -I/Users/Shared/OpenSource/boost/libs/concept_check/include -I/
> Users/Shared/OpenSource/boost/libs/smart_ptr/include -I/Users/Shared/
> OpenSource/boost/libs/tuple/include -I/Users/Shared/OpenSource/boost/
> libs/static_assert/include -I/Users/Shared/OpenSource/boost/libs/
> concept/include -I/Users/Shared/OpenSource/boost/libs/test/include -I/
> Users/Shared/OpenSource/boost/libs/timer/include -I/Users/Shared/
> OpenSource/boost/libs/io/include -I/Users/Shared/OpenSource/boost/libs/
> bind/include -c custom_ccs/member_ccs.cpp -o /Users/Shared/OpenSource/
> Build-Boost/libs/function_types/function_types-test/function_types-
> member_ccs-compile.o
> custom_ccs/member_ccs.cpp:27: error: ‘type’ is not a member of
> ‘boost
> ::function_types::member_function_pointer<boost::mpl::vector<int, C&,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na>, cc>’
> custom_ccs/member_ccs.cpp:27: error: ‘type’ is not a member of
> ‘boost
> ::function_types::member_function_pointer<boost::mpl::vector<int, C&,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na>, cc>’
> custom_ccs/member_ccs.cpp:27: error: template argument 1 is invalid
> /Users/Shared/OpenSource/boost/libs/mpl/include/boost/mpl/assert.hpp:
> In instantiation of ‘mpl_::assert_arg_pred_not<int>’:
> custom_ccs/member_ccs.cpp:27: instantiated from here
> /Users/Shared/OpenSource/boost/libs/mpl/include/boost/mpl/assert.hpp:
> 148: error: ‘int’ is not a class, struct, or union type
> /Users/Shared/OpenSource/boost/libs/mpl/include/boost/mpl/assert.hpp:
> 149: error: ‘int’ is not a class, struct, or union type
> /Users/Shared/OpenSource/boost/libs/mpl/include/boost/mpl/assert.hpp:
> 149: error: ‘value’ is not a member of ‘<declaration error>’
> custom_ccs/member_ccs.cpp:33: error: ‘type’ is not a member of
> ‘boost
> ::function_types::member_function_pointer<boost::mpl::vector<int,
> const C&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, cc>’
> custom_ccs/member_ccs.cpp:33: error: ‘type’ is not a member of
> ‘boost
> ::function_types::member_function_pointer<boost::mpl::vector<int,
> const C&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, cc>’
> custom_ccs/member_ccs.cpp:33: error: template argument 1 is invalid
> custom_ccs/member_ccs.cpp:39: error: ‘type’ is not a member of
> ‘boost
> ::function_types::member_function_pointer<boost::mpl::vector<int,
> volatile C&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, cc>’
> custom_ccs/member_ccs.cpp:39: error: ‘type’ is not a member of
> ‘boost
> ::function_types::member_function_pointer<boost::mpl::vector<int,
> volatile C&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, cc>’
> custom_ccs/member_ccs.cpp:39: error: template argument 1 is invalid
> custom_ccs/member_ccs.cpp:45: error: ‘type’ is not a member of
> ‘boost
> ::function_types::member_function_pointer<boost::mpl::vector<int,
> const volatile C&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, cc>’
> custom_ccs/member_ccs.cpp:45: error: ‘type’ is not a member of
> ‘boost
> ::function_types::member_function_pointer<boost::mpl::vector<int,
> const volatile C&, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na,
> mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, cc>’
> custom_ccs/member_ccs.cpp:45: error: template argument 1 is invalid
>
> make[3]: *** [libs/function_types/function_types-test/function_types-
> member_ccs-compile..o] Error 1
> make[2]: *** [libs/function_types/function_types-test/CMakeFiles/
> function_types-member_ccs-compile.dir/all] Error 2
> make[1]: *** [libs/function_types/function_types-test/CMakeFiles/
> function_types-member_ccs-compile.dir/rule] Error 2
> make: *** [libs/function_types/function_types-test/CMakeFiles/
> function_types-member_ccs-compile.dir/rule] Error 2
>
> I believe that I have all proper includes. Maybe a library missing? I
> looked at the jam file and I seem to be mirroring it as best I can.
>
> Any one want to point out what might be the problem?

I have no idea, sorry. If the compile command issued by Boost.Build works,
and your command does not, then you command has a bug, which presumably
can be found by comparing the command lines.

- Volodya


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk