[GCC-XML] missing declarations

Mike Sarahan msarahan at gmail.com
Sat Mar 6 20:51:17 EST 2010


Hi all,

I am trying to build Minh-Tri Pham's python wrapper to OpenCV, which
is generated using Py++, which uses gccxml.  I encountered some errors
similar to those found in this thread:

http://www.gccxml.org/pipermail/gccxml/2008-December/001225.html

Many of those errors were resolved by adding those declarations to
gccxml_builtins.h for my gcc version (4.4.1, Ubuntu x64).

There are still a few errors left, and I'm hoping you can tell me how
to add these in, also.  The current error output is below.

Thanks,
Mike Sarahan

INFO Parsing source file "opencv_headers.hpp" ...
INFO gccxml cmd: /usr/local/bin/gccxml
-I"/home/msarahan/Downloads/pyopencv/src/pyopencv/pyopencvext/core"
-I"pyopencvext/sdopencv" -I"/usr/include/c++/4.4.1"
-I"/usr/local/include/opencv"
"/home/msarahan/Downloads/pyopencv/src/pyopencv/pyopencvext/core/opencv_headers.hpp"
-fxml="/tmp/tmpKGu_C1.xml"
/usr/local/lib/python2.6/dist-packages/pygccxml/parser/source_reader.py:151:
DeprecationWarning: os.popen4 is deprecated.  Use the subprocess
module.
  input_, output = os.popen4( command_line )
Traceback (most recent call last):
  File "codegen.py", line 59, in <module>
    r"/usr/local/include/opencv",
  File "/usr/local/lib/python2.6/dist-packages/pyplusplus/module_builder/builder.py",
line 92, in __init__
    , indexing_suite_version)
  File "/usr/local/lib/python2.6/dist-packages/pyplusplus/module_builder/builder.py",
line 146, in __parse_declarations
    decls = reader.read_files( files, compilation_mode )
  File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/project_reader.py",
line 225, in read_files
    return self.__parse_file_by_file(files)
  File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/project_reader.py",
line 250, in __parse_file_by_file
    decls = reader.read_file( header )
  File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/source_reader.py",
line 197, in read_file
    return self.read_gccxml_file( source_file )
  File "/usr/local/lib/python2.6/dist-packages/pygccxml/parser/source_reader.py",
line 224, in read_gccxml_file
    raise error
pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured
while running GCC-XML: In file included from
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/emmintrin.h:36,
                 from /usr/local/include/opencv/cxtypes.h:82,
                 from
/home/msarahan/Downloads/pyopencv/src/pyopencv/pyopencvext/core/opencv_headers.hpp:4:
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/xmmintrin.h: In function
'float __vector__ _mm_loadh_pi(float __vector__, const int
__vector__*)':
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/xmmintrin.h:745: error:
cannot convert 'const float __vector__*' to 'int __vector__*' for
argument '2' to 'float __vector__ __builtin_ia32_loadhps(float
__vector__, int __vector__*)'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/xmmintrin.h: In function
'void _mm_storeh_pi(int __vector__*, float __vector__)':
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/xmmintrin.h:752: error:
cannot convert 'float __vector__*' to 'int __vector__*' for argument
'1' to 'void __builtin_ia32_storehps(int __vector__*, float
__vector__)'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/xmmintrin.h: In function
'float __vector__ _mm_loadl_pi(float __vector__, const int
__vector__*)':
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/xmmintrin.h:774: error:
cannot convert 'const float __vector__*' to 'int __vector__*' for
argument '2' to 'float __vector__ __builtin_ia32_loadlps(float
__vector__, int __vector__*)'
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/xmmintrin.h: In function
'void _mm_storel_pi(int __vector__*, float __vector__)':
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/xmmintrin.h:781: error:
cannot convert 'float __vector__*' to 'int __vector__*' for argument
'1' to 'void __builtin_ia32_storelps(int __vector__*, float
__vector__)'
In file included from /usr/local/include/opencv/cxtypes.h:82,
                 from
/home/msarahan/Downloads/pyopencv/src/pyopencv/pyopencvext/core/opencv_headers.hpp:4:
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/emmintrin.h: In function
'long long int __vector__ _mm_move_epi64(long long int __vector__)':
/usr/lib/gcc/x86_64-linux-gnu/4.4.1/include/emmintrin.h:727: error:
'__builtin_ia32_movq128' was not declared in this scope



More information about the gccxml mailing list