Opened 13 years ago

Closed 13 years ago

#3232 closed Bugs (fixed)

boost::program_options fails to compile on AIX

Reported by: Frank Meerkötter <frank@…> Owned by: Vladimir Prus
Milestone: Boost 1.40.0 Component: program_options
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

common.mkdir bin.v2/libs/program_options/build/vacpp common.mkdir bin.v2/libs/program_options/build/vacpp/release common.mkdir bin.v2/libs/program_options/build/vacpp/release/link-static common.mkdir bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi vacpp.compile.c++ bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi/cmdline.o

1500-029: (W) WARNING: subprogram std::vector<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::allocator<std::basic_string<char,std::char_traits<char>,std::allocator<char> > > >::_Construct<const char * const *>(const char * const *, const char * const *, input_iterator_tag) could not be inlined into boost::program_options::detail::cmdline::cmdline(int, const char * const *).

vacpp.compile.c++ bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi/config_file.o vacpp.compile.c++ bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi/options_description.o

1500-029: (W) WARNING: subprogram std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Assign<std::_Ptrit<char,long,const char *,const char &,char *,char &> >(_Ptrit<char,long,const char *,const char &,char *,char &>, _Ptrit<char,long,const char *,const char &,char *,char &>, input_iterator_tag) could not be inlined into boost::char_separator<char,std::char_traits<char> >::operator() <std::_Ptrit<char,long,const char *,const char &,char *,char &>,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >(_Ptrit<char,long,const char *,const char &,char *,char &> &, _Ptrit<char,long,const char *,const char &,char *,char &>, basic_string<char,std::char_traits<char>,std::allocator<char> > &). 1500-029: (W) WARNING: subprogram std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Assign<std::_Ptrit<char,long,const char *,const char &,char *,char &> >(_Ptrit<char,long,const char *,const char &,char *,char &>, _Ptrit<char,long,const char *,const char &,char *,char &>, input_iterator_tag) could not be inlined into boost::char_separator<char,std::char_traits<char> >::operator() <std::_Ptrit<char,long,const char *,const char &,char *,char &>,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >(_Ptrit<char,long,const char *,const char &,char *,char &> &, _Ptrit<char,long,const char *,const char &,char *,char &>, basic_string<char,std::char_traits<char>,std::allocator<char> > &).

vacpp.compile.c++ bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi/parsers.o "./boost/function/function_template.hpp", line 564.9: 1540-1118 (S) The declaration of "assign_functor<boost::program_options::<unnamed>::prefix_name_mapper>" uses the undefined class "boost::program_options::<unnamed>::prefix_name_mapper" when the class must be complete. "./boost/function/function_template.hpp", line 564.9: 1540-0700 (I) The previous message was produced while processing "boost::detail::function::basic_vtable1<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::assign_functor<boost::program_options::<unnamed>::prefix_name_mapper>(prefix_name_mapper, function_buffer &, true_)". "./boost/function/function_template.hpp", line 476.15: 1540-0700 (I) The previous message was produced while processing "struct boost::detail::function::basic_vtable1<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >". "./boost/function/function_template.hpp", line 1010.5: 1540-0700 (I) The previous message was produced while processing "boost::function1<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >::operator()(std::basic_string<char,std::char_traits<char>,std::allocator<char> >) const". "libs/program_options/src/parsers.cpp", line 160.45: 1540-0700 (I) The previous message was produced while processing "boost::program_options::parse_environment(const options_description &, const function1<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,std::basic_string<char,std::char_traits<char>,std::allocator<char> > > &)".

xlC_r -c -DBOOST_ALL_NO_LIB=1 -DNDEBUG -qcpluscmt -O3 -qstrict -qfuncsect -qeh -qrtti -I"." -o "bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi/parsers.o" "libs/program_options/src/parsers.cpp"

...failed vacpp.compile.c++ bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi/parsers.o... vacpp.compile.c++ bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi/variables_map.o vacpp.compile.c++ bin.v2/libs/program_options/build/vacpp/release/link-static/threading-multi/value_semantic.o

1500-029: (W) WARNING: subprogram std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_Assign<char *>(char *, char *, input_iterator_tag) could not be inlined into boost::detail::lexical_cast<std::basic_string<char,std::char_traits<char>,std::allocator<char> >,bool,0,char>(param_type, char *, size_t).

I am using version V7.0 of the xlC_r visual age c++ compiler.

Change History (3)

comment:1 by Frank Meerkötter <frank@…>, 13 years ago

The boost version used is the boost-trunk of today svn info Path: . URL: http://svn.boost.org/svn/boost/trunk Repository Root: http://svn.boost.org/svn/boost Repository UUID: b8fc166d-592f-0410-95f2-cb63ce0dd405 Revision: 54497 Node Kind: directory Schedule: normal Last Changed Author: rogeeff Last Changed Rev: 54495 Last Changed Date: 2009-06-29 05:44:38 +0200 (Mon, 29 Jun 2009)

comment:2 by Steven Watanabe, 13 years ago

Component: Noneprogram_options
Owner: set to Vladimir Prus

comment:3 by Vladimir Prus, 13 years ago

Resolution: fixed
Status: newclosed

(In [55773]) Avoid unnamed namespace, to please vacpp.

Closes #3232.

Note: See TracTickets for help on using tickets.