|
Boost : |
Subject: Re: [boost] [log] Review-ready version in the Vault
From: Peter Simons (simons_at_[hidden])
Date: 2009-02-10 09:37:24
Hi Andrey,
> For some reason bjam doesn't append -I$(BOOST_ROOT)/libs/log/test/common
> to GCC command line.
now I got it. The parameter was added to the command line, alright, but it
didn't do anything because the assumption that Boost.Log has been copied
into the rest of the Boost source code is wrong, i.e. my "test/common"
directory is not underneath $BOOST_ROOT. The following patch fixes the
problem.
--- a/libs/log/test/Jamfile.v2
+++ b/libs/log/test/Jamfile.v2
@@ -8,7 +8,7 @@ import testing ;
project
: requirements
- <include>$(BOOST_ROOT)/libs/log/test/common
+ <include>common
<toolset>msvc:<define>_SCL_SECURE_NO_DEPRECATE
<toolset>msvc:<define>_CRT_SECURE_NO_DEPRECATE
<library>/boost/log//boost_log
With that change applied, all tests but one succeed -- "attr_attribute_set"
still doesn't seem to compile. The build log is attached to this e-mail. To
you have any idea what the problem might be?
Take care,
Peter
lib.jam: No such file or directory
Building Boost.Regex with the optional Unicode/ICU support disabled.
Note: Please refer to the Boost.Regex documentation for more information
Note: this is a strictly optional feature.
...patience...
...patience...
...found 3851 targets...
...updating 4 targets...
gcc.compile.c++ libs/log/test/bin/attr_attribute_set.test/gcc-4.3.3/debug/link-static/run/attr_attribute_set.o
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/stl_pair.h: In member function "std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >& std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >::operator=(const std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >&)":
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/stl_pair.h:73: instantiated from "void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >, _Alloc = std::allocator<std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> > >]"
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/stl_vector.h:694: instantiated from "void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >, _Alloc = std::allocator<std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> > >]"
libs/log/test/run/attr_attribute_set.cpp:171: instantiated from "void insertion<CharT>::test_method() [with CharT = wchar_t]"
libs/log/test/run/attr_attribute_set.cpp:130: instantiated from "static void insertion_invoker::run(boost::type<Exception>*) [with TestType = wchar_t]"
/usr/local/src/boost-current/boost/test/unit_test_suite_impl.hpp:357: instantiated from "void boost::unit_test::ut_detail::test_case_template_invoker<TestCaseTemplate, TestType>::operator()() [with TestCaseTemplate = insertion_invoker, TestType = wchar_t]"
/usr/local/src/boost-current/boost/test/utils/callback.hpp:56: instantiated from "boost::unit_test::ut_detail::unused boost::unit_test::ut_detail::invoker<boost::unit_test::ut_detail::unused>::invoke(Functor&) [with Functor = boost::unit_test::ut_detail::test_case_template_invoker<insertion_invoker, wchar_t>]"
/usr/local/src/boost-current/boost/test/utils/callback.hpp:89: instantiated from "R boost::unit_test::ut_detail::callback0_impl_t<R, Functor>::invoke() [with R = boost::unit_test::ut_detail::unused, Functor = boost::unit_test::ut_detail::test_case_template_invoker<insertion_invoker, wchar_t>]"
libs/log/test/run/attr_attribute_set.cpp:289: instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/stl_pair.h:73: error: non-static const member "const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> > std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >::first", can't use default assignment operator
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/vector.tcc: In member function "void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >, _Alloc = std::allocator<std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> > >]":
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/vector.tcc:299: note: synthesized method "std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >& std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >::operator=(const std::pair<const boost::log_st::basic_slim_string<wchar_t, std::char_traits<wchar_t> >, boost::shared_ptr<boost::log_st::attribute> >&)" first required here
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/stl_pair.h: In member function "std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >& std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >::operator=(const std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >&)":
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/stl_pair.h:73: instantiated from "void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >, _Alloc = std::allocator<std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> > >]"
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/stl_vector.h:694: instantiated from "void std::vector<_Tp, _Alloc>::push_back(const _Tp&) [with _Tp = std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >, _Alloc = std::allocator<std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> > >]"
libs/log/test/run/attr_attribute_set.cpp:171: instantiated from "void insertion<CharT>::test_method() [with CharT = char]"
libs/log/test/run/attr_attribute_set.cpp:130: instantiated from "static void insertion_invoker::run(boost::type<Exception>*) [with TestType = char]"
/usr/local/src/boost-current/boost/test/unit_test_suite_impl.hpp:357: instantiated from "void boost::unit_test::ut_detail::test_case_template_invoker<TestCaseTemplate, TestType>::operator()() [with TestCaseTemplate = insertion_invoker, TestType = char]"
/usr/local/src/boost-current/boost/test/utils/callback.hpp:56: instantiated from "boost::unit_test::ut_detail::unused boost::unit_test::ut_detail::invoker<boost::unit_test::ut_detail::unused>::invoke(Functor&) [with Functor = boost::unit_test::ut_detail::test_case_template_invoker<insertion_invoker, char>]"
/usr/local/src/boost-current/boost/test/utils/callback.hpp:89: instantiated from "R boost::unit_test::ut_detail::callback0_impl_t<R, Functor>::invoke() [with R = boost::unit_test::ut_detail::unused, Functor = boost::unit_test::ut_detail::test_case_template_invoker<insertion_invoker, char>]"
libs/log/test/run/attr_attribute_set.cpp:289: instantiated from here
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/stl_pair.h:73: error: non-static const member "const boost::log_st::basic_slim_string<char, std::char_traits<char> > std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >::first", can't use default assignment operator
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/vector.tcc: In member function "void std::vector<_Tp, _Alloc>::_M_insert_aux(__gnu_cxx::__normal_iterator<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type::pointer, std::vector<_Tp, _Alloc> >, const _Tp&) [with _Tp = std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >, _Alloc = std::allocator<std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> > >]":
/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/../../../../include/c++/4.3.3/bits/vector.tcc:299: note: synthesized method "std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >& std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >::operator=(const std::pair<const boost::log_st::basic_slim_string<char, std::char_traits<char> >, boost::shared_ptr<boost::log_st::attribute> >&)" first required here
"g++" -ftemplate-depth-128 -O0 -fno-inline -Wall -g -fpermissive -DBOOST_FILESYSTEM_STATIC_LINK=1 -DBOOST_LOG_NO_THREADS -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_TEST_NO_AUTO_LINK=1 -DDATE_TIME_INLINE -I"." -I"/usr/local/src/boost-current" -I"libs/log/test/common" -c -o "libs/log/test/bin/attr_attribute_set.test/gcc-4.3.3/debug/link-static/run/attr_attribute_set.o" "libs/log/test/run/attr_attribute_set.cpp"
...failed gcc.compile.c++ libs/log/test/bin/attr_attribute_set.test/gcc-4.3.3/debug/link-static/run/attr_attribute_set.o...
...skipped <plibs/log/test/bin/attr_attribute_set.test/gcc-4.3.3/debug/link-static>attr_attribute_set for lack of <plibs/log/test/bin/attr_attribute_set.test/gcc-4.3.3/debug/link-static>run/attr_attribute_set.o...
...skipped <plibs/log/test/bin/attr_attribute_set.test/gcc-4.3.3/debug/link-static>attr_attribute_set.run for lack of <plibs/log/test/bin/attr_attribute_set.test/gcc-4.3.3/debug/link-static>attr_attribute_set...
...failed updating 1 target...
...skipped 3 targets...
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk