[Bug 746] New: build error with boost 1.41 on mac os x

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=746

Summary: build error with boost 1.41 on mac os x
Product: RTT
Version: 2.0-mainline
Platform: Intel 64bit
OS/Version: Mac OS X
Status: NEW
Severity: normal
Priority: P3
Component: Real-Time Toolkit (RTT)
AssignedTo: orocos-dev [..] ...
ReportedBy: klaas [dot] gadeyne [..] ...
CC: orocos-dev [..] ...
Estimated Hours: 0.0

[ 88%] Building CXX object
src/CMakeFiles/orocos-rtt-dynamic_macosx.dir/scripting/ProgramGraphParser.o
In file included from
/Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/parser-types.hpp:40,
from
/Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/ProgramGraphParser.hpp:41,
from
/Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/ProgramGraphParser.cpp:30:
/opt/local/include/boost/spirit.hpp:18:4: warning: #warning "This header is
deprecated. Please use: boost/spirit/include/classic.hpp"
/opt/local/include/boost/iterator/iterator_adaptor.hpp: In function ‘void
boost::detail::iterator_adaptor_assert_traversal() [with Tr1 =
boost::forward_traversal_tag, Tr2 = boost::random_access_traversal_tag]’:
/opt/local/include/boost/iterator/iterator_adaptor.hpp:335: instantiated from
‘void boost::iterator_adaptor<Derived, Base, Value, Traversal, Reference,
Difference>::advance(typename boost::detail::iterator_adaptor_base<Derived,
Base, Value, Traversal, Reference, Difference>::type::difference_type) [with
Derived = boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
std::basic_string boost::spirit::file_position_base<std::basic_string std::char_traits __gnu_cxx::__normal_iterator<char*, std::basic_string std::char_traits = boost::forward_traversal_tag, Reference = boost::use_default, Difference =
boost::use_default]’
/opt/local/include/boost/iterator/iterator_facade.hpp:546: instantiated from
‘static void boost::iterator_core_access::advance(Facade&, typename
Facade::difference_type) [with Facade =
boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
std::basic_string boost::spirit::file_position_base<std::basic_string std::char_traits /opt/local/include/boost/iterator/iterator_facade.hpp:694: instantiated from
‘Derived& boost::iterator_facade<I, V, TC, R, D>::operator+=(Difference) [with
Derived = boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
std::basic_string boost::spirit::file_position_base<std::basic_string std::char_traits = const char, CategoryOrTraversal = boost::forward_traversal_tag, Reference =
const char&, Difference = long int]’
/Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/PeerParser.cpp:68:
instantiated from here
/opt/local/include/boost/iterator/iterator_adaptor.hpp:230: error: invalid
application of ‘sizeof’ to incomplete type
‘boost::STATIC_ASSERTION_FAILURE<false>’

--
Configure bugmail: https://www.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

[Bug 746] build error with boost 1.41 on mac os x

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=746

Klaas Gadeyne <klaas [dot] gadeyne [..] ...> changed:

What |Removed |Added
----------------------------------------------------------------------------
Resolution| |FIXED
Status|NEW |RESOLVED

--- Comment #3 from Klaas Gadeyne <klaas [dot] gadeyne [..] ...> 2010-02-23 23:00:37 ---
Update:

After pulling the changes from the last to month (and disabling rt malloc, see
bug #758), compile error is gone!

[Bug 746] build error with boost 1.41 on mac os x

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=746

--- Comment #2 from Klaas Gadeyne <klaas [dot] gadeyne [..] ...> 2010-02-23 19:52:36 ---
(In reply to comment #1)
> (In reply to comment #0)
> > [ 88%] Building CXX object
> > src/CMakeFiles/orocos-rtt-dynamic_macosx.dir/scripting/ProgramGraphParser.o
> > In file included from
> > /Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/parser-types.hpp:40,
> > from
> > /Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/ProgramGraphParser.hpp:41,
> > from
> > /Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/ProgramGraphParser.cpp:30:
> > /opt/local/include/boost/spirit.hpp:18:4: warning: #warning "This header is
> > deprecated. Please use: boost/spirit/include/classic.hpp"
> > /opt/local/include/boost/iterator/iterator_adaptor.hpp: In function ‘void
> > boost::detail::iterator_adaptor_assert_traversal() [with Tr1 =
> > boost::forward_traversal_tag, Tr2 = boost::random_access_traversal_tag]’:
> > /opt/local/include/boost/iterator/iterator_adaptor.hpp:335: instantiated from
> > ‘void boost::iterator_adaptor<Derived, Base, Value, Traversal, Reference,
> > Difference>::advance(typename boost::detail::iterator_adaptor_base<Derived,
> > Base, Value, Traversal, Reference, Difference>::type::difference_type) [with
> > Derived = boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
> > std::basic_string<char, std::char_traits > > boost::spirit::file_position_base<std::basic_string > > std::char_traits<char>, std::allocator<char> > >, boost::spirit::nil_t>, Base =
> > __gnu_cxx::__normal_iterator<char*, std::basic_string > > std::char_traits<char>, std::allocator<char> > >, Value = const char, Traversal
> > = boost::forward_traversal_tag, Reference = boost::use_default, Difference =
> > boost::use_default]’
> > /opt/local/include/boost/iterator/iterator_facade.hpp:546: instantiated from
> > ‘static void boost::iterator_core_access::advance(Facade&, typename
> > Facade::difference_type) [with Facade =
> > boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
> > std::basic_string<char, std::char_traits > > boost::spirit::file_position_base<std::basic_string > > std::char_traits<char>, std::allocator<char> > >, boost::spirit::nil_t>]’
> > /opt/local/include/boost/iterator/iterator_facade.hpp:694: instantiated from
> > ‘Derived& boost::iterator_facade<I, V, TC, R, D>::operator+=(Difference) [with
> > Derived = boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
> > std::basic_string<char, std::char_traits > > boost::spirit::file_position_base<std::basic_string > > std::char_traits<char>, std::allocator<char> > >, boost::spirit::nil_t>, Value =
> > const char, CategoryOrTraversal = boost::forward_traversal_tag, Reference =
> > const char&, Difference = long int]’
> > /Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/PeerParser.cpp:68:
> > instantiated from here
> > /opt/local/include/boost/iterator/iterator_adaptor.hpp:230: error: invalid
> > application of ‘sizeof’ to incomplete type
> > ‘boost::STATIC_ASSERTION_FAILURE<false>’
>
> This bug means: compiles on macosx with boost 1.40, but not with boost 1.41 ?

It means, it does not compile with boost 1.41 on mac os x, it was the first
time I tried compiling 2.x mainline, so I don't know about 1.40

Unfortunately, I don't even have version 1.41 anymore. Macports Boost upgraded
to 1.42 meanwhile, and it still doesn't compile, although the error is slightly
different though

[ 87%] Building CXX object
src/CMakeFiles/orocos-rtt-dynamic_macosx.dir/scripting/PeerParser.o
In file included from
/Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/parser-types.hpp:40,
from
/Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/PeerParser.hpp:43,
from
/Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/PeerParser.cpp:40:
/opt/local/include/boost/spirit.hpp:18:4: warning: #warning "This header is
deprecated. Please use: boost/spirit/include/classic.hpp"
/opt/local/include/boost/iterator/iterator_adaptor.hpp: In function ‘void
boost::detail::iterator_adaptor_assert_traversal() [with Tr1 =
boost::forward_traversal_tag, Tr2 = boost::random_access_traversal_tag]’:
/opt/local/include/boost/iterator/iterator_adaptor.hpp:335: instantiated from
‘void boost::iterator_adaptor<Derived, Base, Value, Traversal, Reference,
Difference>::advance(typename boost::detail::iterator_adaptor_base<Derived,
Base, Value, Traversal, Reference, Difference>::type::difference_type) [with
Derived = boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
std::basic_string boost::spirit::file_position_base<std::basic_string std::char_traits __gnu_cxx::__normal_iterator<char*, std::basic_string std::char_traits = boost::forward_traversal_tag, Reference = boost::use_default, Difference =
boost::use_default]’
/opt/local/include/boost/iterator/iterator_facade.hpp:546: instantiated from
‘static void boost::iterator_core_access::advance(Facade&, typename
Facade::difference_type) [with Facade =
boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
std::basic_string boost::spirit::file_position_base<std::basic_string std::char_traits /opt/local/include/boost/iterator/iterator_facade.hpp:694: instantiated from
‘Derived& boost::iterator_facade<I, V, TC, R, D>::operator+=(Difference) [with
Derived = boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
std::basic_string boost::spirit::file_position_base<std::basic_string std::char_traits = const char, CategoryOrTraversal = boost::forward_traversal_tag, Reference =
const char&, Difference = long int]’
/Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/PeerParser.cpp:68:
instantiated from here
/opt/local/include/boost/iterator/iterator_adaptor.hpp:230: error: invalid
application of ‘sizeof’ to incomplete type
‘boost::STATIC_ASSERTION_FAILURE<false>’
make[2]: ***
[src/CMakeFiles/orocos-rtt-dynamic_macosx.dir/scripting/PeerParser.o] Error 1
make[1]: *** [src/CMakeFiles/orocos-rtt-dynamic_macosx.dir/all] Error 2

Note that the 1.x series compile fine.

--
Configure bugmail: https://www.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev

[Bug 746] build error with boost 1.41 on mac os x

https://www.fmtc.be/bugzilla/orocos/show_bug.cgi?id=746

--- Comment #1 from Peter Soetens <peter [..] ...> 2010-02-22 12:16:45 ---
(In reply to comment #0)
> [ 88%] Building CXX object
> src/CMakeFiles/orocos-rtt-dynamic_macosx.dir/scripting/ProgramGraphParser.o
> In file included from
> /Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/parser-types.hpp:40,
> from
> /Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/ProgramGraphParser.hpp:41,
> from
> /Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/ProgramGraphParser.cpp:30:
> /opt/local/include/boost/spirit.hpp:18:4: warning: #warning "This header is
> deprecated. Please use: boost/spirit/include/classic.hpp"
> /opt/local/include/boost/iterator/iterator_adaptor.hpp: In function ‘void
> boost::detail::iterator_adaptor_assert_traversal() [with Tr1 =
> boost::forward_traversal_tag, Tr2 = boost::random_access_traversal_tag]’:
> /opt/local/include/boost/iterator/iterator_adaptor.hpp:335: instantiated from
> ‘void boost::iterator_adaptor<Derived, Base, Value, Traversal, Reference,
> Difference>::advance(typename boost::detail::iterator_adaptor_base<Derived,
> Base, Value, Traversal, Reference, Difference>::type::difference_type) [with
> Derived = boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
> std::basic_string<char, std::char_traits > boost::spirit::file_position_base<std::basic_string > std::char_traits<char>, std::allocator<char> > >, boost::spirit::nil_t>, Base =
> __gnu_cxx::__normal_iterator<char*, std::basic_string > std::char_traits<char>, std::allocator<char> > >, Value = const char, Traversal
> = boost::forward_traversal_tag, Reference = boost::use_default, Difference =
> boost::use_default]’
> /opt/local/include/boost/iterator/iterator_facade.hpp:546: instantiated from
> ‘static void boost::iterator_core_access::advance(Facade&, typename
> Facade::difference_type) [with Facade =
> boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
> std::basic_string<char, std::char_traits > boost::spirit::file_position_base<std::basic_string > std::char_traits<char>, std::allocator<char> > >, boost::spirit::nil_t>]’
> /opt/local/include/boost/iterator/iterator_facade.hpp:694: instantiated from
> ‘Derived& boost::iterator_facade<I, V, TC, R, D>::operator+=(Difference) [with
> Derived = boost::spirit::position_iterator<__gnu_cxx::__normal_iterator<char*,
> std::basic_string<char, std::char_traits > boost::spirit::file_position_base<std::basic_string > std::char_traits<char>, std::allocator<char> > >, boost::spirit::nil_t>, Value =
> const char, CategoryOrTraversal = boost::forward_traversal_tag, Reference =
> const char&, Difference = long int]’
> /Users/klaas/Workspaces/orocos/orocos-rtt.git/src/scripting/PeerParser.cpp:68:
> instantiated from here
> /opt/local/include/boost/iterator/iterator_adaptor.hpp:230: error: invalid
> application of ‘sizeof’ to incomplete type
> ‘boost::STATIC_ASSERTION_FAILURE<false>’

This bug means: compiles on macosx with boost 1.40, but not with boost 1.41 ?

Peter

--
Configure bugmail: https://www.fmtc.be/bugzilla/orocos/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
--
Orocos-Dev mailing list
Orocos-Dev [..] ...
http://lists.mech.kuleuven.be/mailman/listinfo/orocos-dev