Ignore:
Timestamp:
03/03/15 18:26:31 (9 years ago)
Author:
Kana Sugimoto
Message:

New Development: Yes

JIRA Issue: Yes (CAS-6929)

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): asap as a whole

Description: committing Darrell's changes to make asap work with merged casacore.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/python_asap.cpp

    r2921 r3029  
    126126  casa::pyrap::register_convert_std_vector<double>();
    127127  casa::pyrap::register_convert_std_vector<std::string>();
     128//////////////see error below//////////////////////////////
    128129  casa::pyrap::register_convert_std_vector<bool>();
     130///////////////////////////////////////////////////////////
    129131  casa::pyrap::register_convert_casa_valueholder();
    130132  casa::pyrap::register_convert_casa_record();
     
    132134#endif
    133135}
     136//[ 79%] Building CXX object src/CMakeFiles/_asap.dir/python_asap.cpp.o
     137//cd ...trunk/asap/build/src && /usr/bin/clang++   -DAIPS_AUTO_STL -DAIPS_DEBUG -DAIPS_STDLIB -DCASACORE_NEEDS_RETHROW -DCASA_USECASAPATH -DENABLE_PLOTTER2 -DHAVE_LIBPYRAP -DNOPKSMS -DUSE_CASAPY -DWITHOUT_ACS -D_GNU_SOURCE -D_asap_EXPORTS -pipe -Wall -Wextra -Wno-non-template-friend -Wcast-align -Wno-comment -ggdb3 -O0 -fno-omit-frame-pointer -fPIC -I...trunk/darwin/include/casacore -I...trunk/darwin/include/casacore/.. -I/opt/casa/01/include -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/include -I/opt/casa/01/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/numpy/core/include -I...trunk/asap/src -I...trunk/asap/external-alma -I...trunk/asap/external/libpyrap/pyrap-0.3.2    -o CMakeFiles/_asap.dir/python_asap.cpp.o -c ...trunk/asap/src/python_asap.cpp
     138//warning: unknown warning option '-Wno-non-template-friend'; did you mean '-Wno-unsupported-friend'? [-Wunknown-warning-option]
     139//In file included from ...trunk/asap/src/python_asap.cpp:32:
     140//In file included from /opt/casa/01/include/boost/python.hpp:29:
     141//In file included from /opt/casa/01/include/boost/python/exec.hpp:9:
     142///opt/casa/01/include/boost/python/str.hpp:185:57: warning: unused parameter 'end' [-Wunused-parameter]
     143//    long count(T1 const& sub,T2 const& start, T3 const& end) const
     144//                                                        ^
     145//In file included from ...trunk/asap/src/python_asap.cpp:32:
     146//In file included from /opt/casa/01/include/boost/python.hpp:49:
     147///opt/casa/01/include/boost/python/opaque_pointer_converter.hpp:172:1: warning: missing field 'tp_version_tag' initializer [-Wmissing-field-initializers]
     148//};
     149//^
     150//In file included from ...trunk/asap/src/python_asap.cpp:32:
     151//In file included from /opt/casa/01/include/boost/python.hpp:52:
     152//In file included from /opt/casa/01/include/boost/python/overloads.hpp:11:
     153///opt/casa/01/include/boost/python/detail/defaults_def.hpp:92:30: warning: unused parameter 'kw' [-Wunused-parameter]
     154//      , keyword_range const& kw // ignored
     155//                             ^
     156//In file included from ...trunk/asap/src/python_asap.cpp:46:
     157//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:95:9: warning: cast from
     158//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'boost::python::converter::rvalue_from_python_storage<String> *' increases required alignment
     159//      from 8 to 16 [-Wcast-align]
     160//        (boost::python::converter::rvalue_from_python_storage<String>*)
     161//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     162//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
     163//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<asap::ScantableWrapper,
     164//      std::__1::allocator<asap::ScantableWrapper> > > *' increases required alignment from 8 to 16 [-Wcast-align]
     165//        (rvalue_from_python_storage<ContainerType>*)
     166//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     167//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
     168//      'casa::pyrap::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >,
     169//      casa::pyrap::stl_variable_capacity_policy>::construct' requested here
     170//        &construct,
     171//         ^
     172//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
     173//      'casa::pyrap::from_python_sequence<std::__1::vector<asap::ScantableWrapper, std::__1::allocator<asap::ScantableWrapper> >,
     174//      casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here
     175//        from_python_sequence < std::vector < T >,
     176//        ^
     177//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
     178//      'casa::pyrap::convert_std_vector<asap::ScantableWrapper>::reg' requested here
     179//    { convert_std_vector<T>::reg(); }
     180//                             ^
     181//...trunk/asap/src/python_asap.cpp:122:16: note: in instantiation of function template specialization
     182//      'casa::pyrap::register_convert_std_vector<asap::ScantableWrapper>' requested here
     183//  casa::pyrap::register_convert_std_vector<asap::ScantableWrapper>();
     184//               ^
     185//In file included from ...trunk/asap/src/python_asap.cpp:46:
     186//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
     187//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<int, std::__1::allocator<int> > > *' increases
     188//      required alignment from 8 to 16 [-Wcast-align]
     189//        (rvalue_from_python_storage<ContainerType>*)
     190//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     191//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
     192//      'casa::pyrap::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here
     193//        &construct,
     194//         ^
     195//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
     196//      'casa::pyrap::from_python_sequence<std::__1::vector<int, std::__1::allocator<int> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence'
     197//      requested here
     198//        from_python_sequence < std::vector < T >,
     199//        ^
     200//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
     201//      'casa::pyrap::convert_std_vector<int>::reg' requested here
     202//    { convert_std_vector<T>::reg(); }
     203//                             ^
     204//...trunk/asap/src/python_asap.cpp:123:16: note: in instantiation of function template specialization
     205//      'casa::pyrap::register_convert_std_vector<int>' requested here
     206//  casa::pyrap::register_convert_std_vector<int>();
     207//               ^
     208//In file included from ...trunk/asap/src/python_asap.cpp:46:
     209//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
     210//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >
     211//      > *' increases required alignment from 8 to 16 [-Wcast-align]
     212//        (rvalue_from_python_storage<ContainerType>*)
     213//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     214//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
     215//      'casa::pyrap::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >, casa::pyrap::stl_variable_capacity_policy>::construct'
     216//      requested here
     217//        &construct,
     218//         ^
     219//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
     220//      'casa::pyrap::from_python_sequence<std::__1::vector<unsigned int, std::__1::allocator<unsigned int> >,
     221//      casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here
     222//        from_python_sequence < std::vector < T >,
     223//        ^
     224//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
     225//      'casa::pyrap::convert_std_vector<unsigned int>::reg' requested here
     226//    { convert_std_vector<T>::reg(); }
     227//                             ^
     228//...trunk/asap/src/python_asap.cpp:124:16: note: in instantiation of function template specialization
     229//      'casa::pyrap::register_convert_std_vector<unsigned int>' requested here
     230//  casa::pyrap::register_convert_std_vector<uint>();
     231//               ^
     232//In file included from ...trunk/asap/src/python_asap.cpp:46:
     233//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
     234//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<float, std::__1::allocator<float> > > *'
     235//      increases required alignment from 8 to 16 [-Wcast-align]
     236//        (rvalue_from_python_storage<ContainerType>*)
     237//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     238//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
     239//      'casa::pyrap::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here
     240//        &construct,
     241//         ^
     242//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
     243//      'casa::pyrap::from_python_sequence<std::__1::vector<float, std::__1::allocator<float> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence'
     244//      requested here
     245//        from_python_sequence < std::vector < T >,
     246//        ^
     247//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
     248//      'casa::pyrap::convert_std_vector<float>::reg' requested here
     249//    { convert_std_vector<T>::reg(); }
     250//                             ^
     251//...trunk/asap/src/python_asap.cpp:125:16: note: in instantiation of function template specialization
     252//      'casa::pyrap::register_convert_std_vector<float>' requested here
     253//  casa::pyrap::register_convert_std_vector<float>();
     254//               ^
     255//In file included from ...trunk/asap/src/python_asap.cpp:46:
     256//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
     257//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<double, std::__1::allocator<double> > > *'
     258//      increases required alignment from 8 to 16 [-Wcast-align]
     259//        (rvalue_from_python_storage<ContainerType>*)
     260//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     261//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
     262//      'casa::pyrap::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested
     263//      here
     264//        &construct,
     265//         ^
     266//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
     267//      'casa::pyrap::from_python_sequence<std::__1::vector<double, std::__1::allocator<double> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence'
     268//      requested here
     269//        from_python_sequence < std::vector < T >,
     270//        ^
     271//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
     272//      'casa::pyrap::convert_std_vector<double>::reg' requested here
     273//    { convert_std_vector<T>::reg(); }
     274//                             ^
     275//...trunk/asap/src/python_asap.cpp:126:16: note: in instantiation of function template specialization
     276//      'casa::pyrap::register_convert_std_vector<double>' requested here
     277//  casa::pyrap::register_convert_std_vector<double>();
     278//               ^
     279//In file included from ...trunk/asap/src/python_asap.cpp:46:
     280//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
     281//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<std::__1::basic_string<char>,
     282//      std::__1::allocator<std::__1::basic_string<char> > > > *' increases required alignment from 8 to 16 [-Wcast-align]
     283//        (rvalue_from_python_storage<ContainerType>*)
     284//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     285//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
     286//      'casa::pyrap::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >,
     287//      casa::pyrap::stl_variable_capacity_policy>::construct' requested here
     288//        &construct,
     289//         ^
     290//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
     291//      'casa::pyrap::from_python_sequence<std::__1::vector<std::__1::basic_string<char>, std::__1::allocator<std::__1::basic_string<char> > >,
     292//      casa::pyrap::stl_variable_capacity_policy>::from_python_sequence' requested here
     293//        from_python_sequence < std::vector < T >,
     294//        ^
     295//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
     296//      'casa::pyrap::convert_std_vector<std::__1::basic_string<char> >::reg' requested here
     297//    { convert_std_vector<T>::reg(); }
     298//                             ^
     299//...trunk/asap/src/python_asap.cpp:127:16: note: in instantiation of function template specialization
     300//      'casa::pyrap::register_convert_std_vector<std::__1::basic_string<char> >' requested here
     301//  casa::pyrap::register_convert_std_vector<std::string>();
     302//               ^
     303//In file included from ...trunk/asap/src/python_asap.cpp:32:
     304//In file included from /opt/casa/01/include/boost/python.hpp:11:
     305//In file included from /opt/casa/01/include/boost/python/args.hpp:25:
     306//In file included from /opt/casa/01/include/boost/python/object_core.hpp:14:
     307//In file included from /opt/casa/01/include/boost/python/call.hpp:15:
     308///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:209:9: error: no matching constructor for initialization of
     309//      'boost::python::converter::detail::arg_to_python_base'
     310//      : arg_to_python_base(&x, registered<T>::converters)
     311//        ^                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     312///opt/casa/01/include/boost/python/converter/arg_to_python.hpp:256:7: note: in instantiation of member function
     313//      'boost::python::converter::detail::value_arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > >
     314//      >::value_arg_to_python' requested here
     315//    : base(x)
     316//      ^
     317///opt/casa/01/include/boost/python/object_core.hpp:393:33: note: in instantiation of member function
     318//      'boost::python::converter::arg_to_python<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >::arg_to_python' requested here
     319//          return python::incref(converter::arg_to_python<T>(x).get());
     320//                                ^
     321///opt/casa/01/include/boost/python/object_core.hpp:312:10: note: in instantiation of function template specialization
     322//      'boost::python::api::object_initializer_impl<false, false>::get<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >'
     323//      requested here
     324//      >::get(
     325//         ^
     326///opt/casa/01/include/boost/python/object_core.hpp:334:23: note: in instantiation of function template specialization
     327//      'boost::python::api::object_base_initializer<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here
     328//        : object_base(object_base_initializer(x))
     329//                      ^
     330///opt/casa/01/include/boost/python/list.hpp:72:22: note: in instantiation of function template specialization
     331//      'boost::python::api::object::object<std::__1::__bit_const_reference<std::__1::vector<bool, std::__1::allocator<bool> > > >' requested here
     332//        base::append(object(x));
     333//                     ^
     334//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:219:9: note: (skipping 3 contexts in backtrace; use
     335//      -ftemplate-backtrace-limit=0 to see all)
     336//        result.append(*i);
     337//               ^
     338///opt/casa/01/include/boost/python/to_python_converter.hpp:88:22: note: in instantiation of member function
     339//      'boost::python::converter::as_to_python_function<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::to_list<std::__1::vector<bool,
     340//      std::__1::allocator<bool> > > >::convert' requested here
     341//        &normalized::convert
     342//                     ^
     343//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:317:7: note: in instantiation of member function
     344//      'boost::python::to_python_converter<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::to_list<std::__1::vector<bool, std::__1::allocator<bool>
     345//      > >, false>::to_python_converter' requested here
     346//      boost::python::to_python_converter < std::vector < T >,
     347//      ^
     348//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:542:2: note: in instantiation of member function
     349//      'casa::pyrap::std_vector_to_list<bool>::std_vector_to_list' requested here
     350//        std_vector_to_list < T > ();
     351//        ^
     352//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
     353//      'casa::pyrap::convert_std_vector<bool>::reg' requested here
     354//    { convert_std_vector<T>::reg(); }
     355//                             ^
     356//...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization
     357//      'casa::pyrap::register_convert_std_vector<bool>' requested here
     358//  casa::pyrap::register_convert_std_vector<bool>();
     359//               ^
     360///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:20:7: note: candidate constructor not viable: no known conversion from
     361//      '__bit_iterator<std::__1::vector<bool, std::__1::allocator<bool> >, true>' to 'const volatile void *' for 1st argument
     362//      arg_to_python_base(void const volatile* source, registration const&);
     363//      ^
     364///opt/casa/01/include/boost/python/converter/arg_to_python_base.hpp:15:28: note: candidate constructor (the implicit copy constructor) not viable: requires 1
     365//      argument, but 2 were provided
     366//  struct BOOST_PYTHON_DECL arg_to_python_base
     367//                           ^
     368//In file included from ...trunk/asap/src/python_asap.cpp:46:
     369//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:424:9: warning: cast from
     370//      'boost::python::converter::rvalue_from_python_stage1_data *' to 'rvalue_from_python_storage<std::__1::vector<bool, std::__1::allocator<bool> > > *' increases
     371//      required alignment from 8 to 16 [-Wcast-align]
     372//        (rvalue_from_python_storage<ContainerType>*)
     373//        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     374//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:367:10: note: in instantiation of member function
     375//      'casa::pyrap::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::stl_variable_capacity_policy>::construct' requested here
     376//        &construct,
     377//         ^
     378//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:543:2: note: in instantiation of member function
     379//      'casa::pyrap::from_python_sequence<std::__1::vector<bool, std::__1::allocator<bool> >, casa::pyrap::stl_variable_capacity_policy>::from_python_sequence'
     380//      requested here
     381//        from_python_sequence < std::vector < T >,
     382//        ^
     383//...trunk/asap/external/libpyrap/pyrap-0.3.2/pyrap/Converters/PycBasicData.h:550:30: note: in instantiation of member function
     384//      'casa::pyrap::convert_std_vector<bool>::reg' requested here
     385//    { convert_std_vector<T>::reg(); }
     386//                             ^
     387//...trunk/asap/src/python_asap.cpp:128:16: note: in instantiation of function template specialization
     388//      'casa::pyrap::register_convert_std_vector<bool>' requested here
     389//  casa::pyrap::register_convert_std_vector<bool>();
     390//               ^
     391//12 warnings and 1 error generated.
     392//make[2]: *** [src/CMakeFiles/_asap.dir/python_asap.cpp.o] Error 1
     393//make[1]: *** [src/CMakeFiles/_asap.dir/all] Error 2
     394//make: *** [all] Error 2
     395//
     396//
Note: See TracChangeset for help on using the changeset viewer.