Thread: [pygccxml-development] first try - no good
Brought to you by:
mbaas,
roman_yakovenko
From: Neal B. <ndb...@gm...> - 2006-04-13 21:00:35
Attachments:
hello_world.hpp
|
A simple test: g++ -fsyntax-only -xc++ hello_world.hpp produces no error. parsing files - started Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/tmp/python-ByATVu.py", line 17, in ? mb = module_builder.module_builder_t( File "/usr/lib/python2.4/site-packages/pyplusplus/module_builder/builder.py", line 52, in __init__ , cache ) File "/usr/lib/python2.4/site-packages/pyplusplus/module_builder/builder.py", line 72, in __parse_declarations decls = reader.read_files( files, compilation_mode ) File "/usr/lib/python2.4/site-packages/pygccxml/parser/project_reader.py", line 149, in read_files return self.__parse_file_by_file(files) File "/usr/lib/python2.4/site-packages/pygccxml/parser/project_reader.py", line 172, in __parse_file_by_file decls = reader.read_file( header ) File "/usr/lib/python2.4/site-packages/pygccxml/parser/source_reader.py", line 164, in read_file raise error pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured while running GCC-XML: xml_find_template_parm encountered unsupported type bound_template_template_parm xml_find_template_parm encountered unsupported type bound_template_template_parm [repeat...] |
From: Roman Y. <rom...@gm...> - 2006-04-13 21:13:32
|
On 4/14/06, Neal Becker <ndb...@gm...> wrote: > A simple test: > > g++ -fsyntax-only -xc++ hello_world.hpp produces no error. > > parsing files - started > Traceback (most recent call last): > File "<stdin>", line 1, in ? > File "/usr/tmp/python-ByATVu.py", line 17, in ? > mb =3D module_builder.module_builder_t( > File > "/usr/lib/python2.4/site-packages/pyplusplus/module_builder/builder.py", = line > 52, in __init__ > , cache ) > File > "/usr/lib/python2.4/site-packages/pyplusplus/module_builder/builder.py", = line > 72, in __parse_declarations > decls =3D reader.read_files( files, compilation_mode ) > File "/usr/lib/python2.4/site-packages/pygccxml/parser/project_reader.p= y", > line 149, in read_files > return self.__parse_file_by_file(files) > File "/usr/lib/python2.4/site-packages/pygccxml/parser/project_reader.p= y", > line 172, in __parse_file_by_file > decls =3D reader.read_file( header ) > File "/usr/lib/python2.4/site-packages/pygccxml/parser/source_reader.py= ", > line 164, in read_file > raise error > pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured while > running GCC-XML: xml_find_template_parm encountered unsupported type > bound_template_template_parm > xml_find_template_parm encountered unsupported type > bound_template_template_parm > [repeat...] Lets start. I am using Debian 3.1. Almost latests CVS version of boost. I think this o= ne will become next release. I am using GCC-XML cvs version month or two month old. Current version of cvs( =3D=3D preview ) pygccxml/pyplusplus. I run GUI version of pypluspus, where I added to include paths boost locati= on. And here is the code generated by pyplusplus: // std directories: [] // user defined directories: ['/home/roman/boost_cvs', '/home/roman/tmp'] #include "boost/python.hpp" #include "hw.hpp" namespace bp =3D boost::python; BOOST_PYTHON_MODULE(pyplusplus){ bp::def( "Copy_int" , &Copy_int , ( bp::arg("in") ) , bp::default_call_policies() ); bp::def( "Copy" , &Copy , ( bp::arg("in") ) , bp::default_call_policies() ); } So, can you try to describe your problem, one more time? Thanks. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |
From: Neal B. <ndb...@gm...> - 2006-04-13 23:20:37
Attachments:
hello_world.hpp
|
OK. I am using gccxml from cvs as of today. gccxml hello_world.hpp -fxml=/dev/null xml_find_template_parm encountered unsupported type bound_template_template_parm Problem is with gccxml I guess. Again, here is hello_world.hpp: |
From: Neal B. <ndb...@gm...> - 2006-04-13 23:52:16
|
I removed gccxml got a fresh copy from cvs, rebuilt, and re-installed. Same problem: gccxml hello_world.hpp -fxml=/dev/null --debug -I /usr/local/src/boost.cvs Using "/usr/bin/gccxml_cc1plus" as GCC-XML executable. Using the following arguments to GCC-XML executable: "-quiet" "-fsyntax-only" "-w" "-o" "/dev/null" "-nostdinc" "-D__GCCXML__=700" "-D__GCCXML_GNUC__=3" "-D__GCCXML_GNUC_MINOR__=3" "-D__GCCXML_GNUC_PATCHLEVEL__=2" "hello_world.hpp" "-fxml=/dev/null" "-I" "/usr/local/src/boost.cvs" "-D__DBL_MIN_EXP__=(-1021)" "-D__FLT_MIN__=1.17549435e-38F" "-D__CHAR_BIT__=8" "-D__WCHAR_MAX__=2147483647" "-D__DBL_DENORM_MIN__=4.9406564584124654e-324" "-D__FLT_EVAL_METHOD__=0" "-D__DBL_MIN_10_EXP__=(-307)" "-D__FINITE_MATH_ONLY__=0" "-D__LP64__=1" "-D__SHRT_MAX__=32767" "-D__LDBL_MAX__=1.18973149535723176502e+4932L" "-D__UINTMAX_TYPE__=long unsigned int" "-D__linux=1" "-D__unix=1" "-D__linux__=1" "-D__SCHAR_MAX__=127" "-D__USER_LABEL_PREFIX__=" "-D__STDC_HOSTED__=1" "-D__DBL_DIG__=15" "-D__FLT_EPSILON__=1.19209290e-7F" "-D__GXX_WEAK__=1" "-D__LDBL_MIN__=3.36210314311209350626e-4932L" "-D__unix__=1" "-D__DECIMAL_DIG__=21" "-D__gnu_linux__=1" "-D__LDBL_HAS_QUIET_NAN__=1" "-D__GNUC__=4" "-D__MMX__=1" "-D__DBL_MAX__=1.7976931348623157e+308" "-D__DBL_HAS_INFINITY__=1" "-D__cplusplus=1" "-D__DEPRECATED=1" "-D__DBL_MAX_EXP__=1024" "-D__SSE2_MATH__=1" "-D__amd64=1" "-D__GNUG__=4" "-D__LONG_LONG_MAX__=9223372036854775807LL" "-D__GXX_ABI_VERSION=1002" "-D__FLT_MIN_EXP__=(-125)" "-D__x86_64=1" "-D__DBL_MIN__=2.2250738585072014e-308" "-D__FLT_MIN_10_EXP__=(-37)" "-D__DBL_HAS_QUIET_NAN__=1" "-D__REGISTER_PREFIX__=" "-D__NO_INLINE__=1" "-D__FLT_MANT_DIG__=24" "-D__VERSION__="4.1.0 20060304 (Red Hat 4.1.0-3)"" "-Dunix=1" "-D__SIZE_TYPE__=long unsigned int" "-D__ELF__=1" "-D__FLT_RADIX__=2" "-D__LDBL_EPSILON__=1.08420217248550443401e-19L" "-D__GNUC_RH_RELEASE__=3" "-D__k8=1" "-D__LDBL_DIG__=18" "-D__x86_64__=1" "-D__FLT_HAS_QUIET_NAN__=1" "-D__FLT_MAX_10_EXP__=38" "-D__LONG_MAX__=9223372036854775807L" "-D__FLT_HAS_INFINITY__=1" "-Dlinux=1" "-D__EXCEPTIONS=1" "-D__LDBL_MANT_DIG__=64" "-D__k8__=1" "-D__WCHAR_TYPE__=int" "-D__FLT_DIG__=6" "-D__INT_MAX__=2147483647" "-D__FLT_MAX_EXP__=128" "-D__DBL_MANT_DIG__=53" "-D__WINT_TYPE__=unsigned int" "-D__SSE__=1" "-D__LDBL_MIN_EXP__=(-16381)" "-D__amd64__=1" "-D__LDBL_MAX_EXP__=16384" "-D__LDBL_MAX_10_EXP__=4932" "-D__DBL_EPSILON__=2.2204460492503131e-16" "-D_LP64=1" "-D__GNUC_PATCHLEVEL__=0" "-D__LDBL_HAS_INFINITY__=1" "-D__INTMAX_MAX__=9223372036854775807L" "-D__FLT_DENORM_MIN__=1.40129846e-45F" "-D__FLT_MAX__=3.40282347e+38F" "-D__SSE2__=1" "-D__INTMAX_TYPE__=long int" "-D__GNUC_MINOR__=1" "-D__DBL_MAX_10_EXP__=308" "-D__LDBL_DENORM_MIN__=3.64519953188247460253e-4951L" "-D__STDC__=1" "-D__PTRDIFF_TYPE__=long int" "-D__LDBL_MIN_10_EXP__=(-4931)" "-D__SSE_MATH__=1" "-D_GNU_SOURCE=1" "-iwrapper/usr/share/gccxml-0.7/GCC/4.1" "-I/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../include/c++/4.1.0" "-I/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../include/c++/4.1.0/x86_64-redhat-linux" "-I/usr/lib/gcc/x86_64-redhat-linux/4.1.0/../../../../include/c++/4.1.0/backward" "-I/usr/local/include" "-I/usr/lib/gcc/x86_64-redhat-linux/4.1.0/include" "-I/usr/include" "-include" "/usr/share/gccxml-0.7/GCC/4.1/gccxml_builtins.h" xml_find_template_parm encountered unsupported type bound_template_template_parm |
From: Roman Y. <rom...@gm...> - 2006-04-14 04:17:08
|
On 4/14/06, Neal Becker <ndb...@gm...> wrote: > I removed gccxml got a fresh copy from cvs, rebuilt, and re-installed. S= ame > problem: > ... I saw your posting on GCCXML development list. I think you are right, the problem is with GCCXML. -- Roman Yakovenko C++ Python language binding http://www.language-binding.net/ |