[aspectc-user] Build errors and slow build times
Yang Zhang
yanghatespam at gmail.com
Wed Feb 18 22:23:01 CET 2009
Hi, I can't seem to get ag++ to work with the boost libraries (using
v1.38). Is AC++ incompatible with boost?
yang at yang-xps410 ~/sandbox/cc
$ cat acpp_boost.cc
#include <boost/archive/binary_iarchive.hpp>
#include <boost/archive/binary_oarchive.hpp>
#include <boost/bind.hpp>
#include <boost/program_options.hpp>
#include <boost/range/iterator_range.hpp>
#include <boost/scoped_array.hpp>
#include <boost/shared_ptr.hpp>
int main() { return 0; }
yang at yang-xps410 ~/sandbox/cc
$ ag++ acpp_boost.cc
/opt/armed/include/boost/mpl/aux_/config/compiler.hpp:40: error:
Unexpected token `# else'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/mpl/list.hpp:36: error: Empty file name in
`#include'
/opt/armed/include/boost/mpl/aux_/include_preprocessed.hpp:37: error:
Empty file name in `#include'
/opt/armed/include/boost/function.hpp:64: error: `#include' expects
"filename" or <filename>
/opt/armed/include/boost/function.hpp:64: error: `#include' expects
"filename" or <filename>
/opt/armed/include/boost/mpl/aux_/numeric_cast_utils.hpp:32: error:
`apply_wrap2' undeclared here
/opt/armed/include/boost/mpl/aux_/numeric_cast_utils.hpp:58: error:
`apply_wrap2' undeclared here
/opt/armed/include/boost/serialization/tracking.hpp:49: error: invalid
member declaration near token `<'
/opt/armed/include/boost/mpl/sequence_tag.hpp:107: error: invalid
declaration near token `template'
/opt/armed/include/boost/mpl/sequence_tag.hpp:120: error: expression
expected
/opt/armed/include/boost/mpl/sequence_tag.hpp:120: error: invalid
declaration near token `template'
/opt/armed/include/boost/mpl/empty.hpp:25: error: invalid declaration
near token `template'
/opt/armed/include/boost/archive/detail/iserializer.hpp:351: error:
`mpl::equal_to' undeclared here
/opt/armed/include/boost/archive/binary_iarchive.hpp:91: error:
`boost::mpl::apply1' undeclared here
/opt/armed/include/boost/archive/detail/oserializer.hpp:254: error:
`mpl::equal_to' undeclared here
/opt/armed/include/boost/archive/detail/oserializer.hpp:513: error:
invalid member declaration near token `<'
/opt/armed/include/boost/archive/binary_oarchive.hpp:53: error:
`boost::mpl::apply1' undeclared here
/opt/armed/include/boost/mpl/size_t_fwd.hpp:23: error: wrong use of `size_t'
/opt/armed/include/boost/mpl/size_t_fwd.hpp:26: error: `size_t' is not a
member of `::mpl_'
/opt/armed/include/boost/utility/base_from_member.hpp:75: error: invalid
member declaration near token `template'
/opt/armed/include/boost/iterator/iterator_categories.hpp:158: error:
invalid type in declaration of parameter `%anon19950'
/opt/armed/include/boost/iterator/interoperable.hpp:34: error: invalid
declaration near token `template'
/opt/armed/include/boost/type_traits/is_function.hpp:56: error: invalid
declaration near token `template'
/opt/armed/include/boost/type_traits/is_function.hpp:97: error:
`::boost::detail::is_function_impl' undeclared here
/opt/armed/include/boost/detail/indirect_traits.hpp:60: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:72: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:96: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:115: error:
`is_reference_to_function_pointer_aux' undeclared here
/opt/armed/include/boost/detail/indirect_traits.hpp:120: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:136: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:154: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:159: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:164: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:169: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:174: error: invalid
declaration near token `template'
/opt/armed/include/boost/detail/indirect_traits.hpp:188: error: invalid
declaration near token `template'
/opt/armed/include/boost/iterator/detail/facade_iterator_category.hpp:58:
error: invalid declaration near token `template'
/opt/armed/include/boost/iterator/detail/facade_iterator_category.hpp:89:
error: `mpl::and_' undeclared here
/opt/armed/include/boost/iterator/detail/facade_iterator_category.hpp:117:
error: invalid declaration near token `template'
/opt/armed/include/boost/iterator/detail/facade_iterator_category.hpp:151:
error: `mpl_assertion_in_line_141' already defined
/opt/armed/include/boost/iterator/detail/facade_iterator_category.hpp:145:
previously defined here
/opt/armed/include/boost/iterator/detail/facade_iterator_category.hpp:166:
error: invalid member declaration near token `enum'
/opt/armed/include/boost/iterator/detail/facade_iterator_category.hpp:189:
error: `is_iterator_category' undeclared here
/opt/armed/include/boost/iterator/detail/enable_if.hpp:66: error:
invalid declaration near token `template'
/opt/armed/include/boost/iterator/iterator_facade.hpp:62: error: invalid
declaration near token `template'
/opt/armed/include/boost/iterator/iterator_facade.hpp:102: error:
invalid member declaration near token `typename'
/opt/armed/include/boost/iterator/iterator_facade.hpp:272: error:
`mpl::and_' undeclared here
/opt/armed/include/boost/iterator/iterator_facade.hpp:375: error:
`mpl::and_' undeclared here
/opt/armed/include/boost/iterator/iterator_facade.hpp:379: error:
`iterator_writability_disabled' undeclared here
/opt/armed/include/boost/iterator/iterator_facade.hpp:388: error:
`use_operator_brackets_proxy' undeclared here
/opt/armed/include/boost/iterator/iterator_facade.hpp:484: error:
invalid member declaration near token `template'
/opt/armed/include/boost/iterator/iterator_facade.hpp:616: error: cannot
declare `boost::detail::iterator_facade_types' within `iterator_facade'
/opt/armed/include/boost/iterator/iterator_facade.hpp:724: error:
invalid declaration near token `template'
/opt/armed/include/boost/iterator/iterator_adaptor.hpp:148: error:
invalid declaration near token `template'
/opt/armed/include/boost/iterator/iterator_adaptor.hpp:207: error:
`iterator_traversal' undeclared here
/opt/armed/include/boost/iterator/iterator_adaptor.hpp:208: error:
cannot declare `::type' within `iterator_adaptor_base'
/opt/armed/include/boost/iterator/iterator_adaptor.hpp:259: error:
invalid declaration near token `template'
/opt/armed/include/boost/iterator/reverse_iterator.hpp:20: error:
invalid declaration near token `template'
/opt/armed/include/boost/iterator/reverse_iterator.hpp:61: error:
invalid declaration near token `template'
/opt/armed/include/boost/range/reverse_iterator.hpp:32: error: invalid
member declaration near token `<'
error: Execution failed: "ac++" --config "/tmp/agxx_pcfgFqhTIn" -p. -c
"acpp_boost.cc" -o "/tmp/acpp_boost.cc_agxx_cAwBb5"
--
Yang Zhang
http://www.mit.edu/~y_z/
More information about the aspectc-user
mailing list