Hi,

        Basic question for you.  If you passed --with-boost=/usr/local, why is 
it looking for headers in /home/moses/boost/boost_1_50_0 ?  Did you 
hard-code some paths in Jamroot or sanity.jam?

Kenneth

On 07/17/12 20:00, Ben Ma wrote:
> Hello, Guys,
> I tried to use moese with boost1_50.
> I got it compiling successful with the following command.
> sudo ./bjam threading=single --with-boost=/usr/local -j22 -a -q
> However, if I use the default multi threading , it will lead to the
> following error message.
> sudo ./bjam  --with-boost=/usr/local -j22 -a -q
> Do you have any idea how to fix this?
>
> ===error message
> gcc.compile.c++
> contrib/server/bin/gcc-4.4.6/release/debug-symbols-on/link-static/threading-multi/mosesserver.o
> In file included from
> /home/moses/boost/boost_1_50_0/include/boost/chrono/time_point.hpp:33,
>                   from
> /home/moses/boost/boost_1_50_0/include/boost/thread/locks.hpp:18,
>                   from
> /home/moses/boost/boost_1_50_0/include/boost/thread/pthread/mutex.hpp:12,
>                   from
> /home/moses/boost/boost_1_50_0/include/boost/thread/mutex.hpp:16,
>                   from moses/src/StaticData.h:36,
>                   from moses/src/Manager.h:30,
>                   from contrib/server/mosesserver.cpp:11:
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp: In
> function ‘typename
> boost::enable_if<boost::mpl::and_<boost::is_convertible<Rep1, typename
> boost::common_type<Rep1, Rep2, void>::type>, boost::is_convertible<Rep2,
> typename boost::common_type<Rep1, Rep2, void>::type>, mpl_::bool_<true>,
> mpl_::bool_<true>, mpl_::bool_<true> >, boost::chrono::duration<typename
> boost::common_type<Rep1, Rep2, void>::type, Period> >::type
> boost::chrono::operator*(const boost::chrono::duration<Rep, Period>&,
> const Rep2&)’:
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:566:
> error: expected unqualified-id before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:567:
> error: type/value mismatch at argument 1 in template parameter list for
> ‘template<class Rep, class Period> class boost::chrono::duration’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:567:
> error:   expected a type, got ‘'\015'’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:567:
> error: invalid type in declaration before ‘;’ token
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:568:
> error: request for member ‘count’ in ‘(CD)(d)’, which is of non-class
> type ‘CD’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:568:
> error: expected primary-expression before ‘(’ token
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:568:
> error: request for member ‘count’ in ‘(CD)(d)’, which is of non-class
> type ‘CD’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:568:
> error: expected type-specifier before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:568:
> error: expected ‘>’ before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:568:
> error: expected ‘(’ before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp: In
> function ‘typename
> boost::disable_if<boost::chrono::detail::is_duration<Rep2>, typename
> boost::chrono::detail::duration_divide_result<boost::chrono::duration<Rep,
> Period>, Rep2, boost::chrono::detail::is_duration::value>::type>::type
> boost::chrono::operator/(const boost::chrono::duration<Rep, Period>&,
> const Rep2&)’:
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:595:
> error: expected unqualified-id before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:596:
> error: type/value mismatch at argument 1 in template parameter list for
> ‘template<class Rep, class Period> class boost::chrono::duration’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:596:
> error:   expected a type, got ‘'\015'’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:596:
> error: invalid type in declaration before ‘;’ token
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:598:
> error: request for member ‘count’ in ‘(CD)(d)’, which is of non-class
> type ‘CD’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:598:
> error: expected primary-expression before ‘(’ token
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:598:
> error: request for member ‘count’ in ‘(CD)(d)’, which is of non-class
> type ‘CD’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:598:
> error: expected type-specifier before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:598:
> error: expected ‘>’ before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:598:
> error: expected ‘(’ before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp: In
> function ‘typename
> boost::disable_if<boost::chrono::detail::is_duration<Rep2>, typename
> boost::chrono::detail::duration_modulo_result<boost::chrono::duration<Rep,
> Period>, Rep2, boost::chrono::detail::is_duration::value>::type>::type
> boost::chrono::operator%(const boost::chrono::duration<Rep, Period>&,
> const Rep2&)’:
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:636:
> error: expected unqualified-id before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:637:
> error: type/value mismatch at argument 1 in template parameter list for
> ‘template<class Rep, class Period> class boost::chrono::duration’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:637:
> error:   expected a type, got ‘'\015'’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:637:
> error: invalid type in declaration before ‘;’ token
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:639:
> error: request for member ‘count’ in ‘(CD)(d)’, which is of non-class
> type ‘CD’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:639:
> error: expected primary-expression before ‘(’ token
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:639:
> error: request for member ‘count’ in ‘(CD)(d)’, which is of non-class
> type ‘CD’
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:639:
> error: expected type-specifier before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:639:
> error: expected ‘>’ before '\xd'
> /home/moses/boost/boost_1_50_0/include/boost/chrono/duration.hpp:639:
> error: expected ‘(’ before '\xd'
> contrib/server/mosesserver.cpp: In member function ‘void
> Updater::updateORLM()’:
> contrib/server/mosesserver.cpp:88: warning: comparison between signed
> and unsigned integer expressions
> contrib/server/mosesserver.cpp:104: warning: comparison between signed
> and unsigned integer expressions
>
> ===========
> Thanks a lot.
> Best regards,
> Ben
>
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to