#983 Wrapping Intel IPP headers generates assertion.

open
nobody
5
2012-12-21
2009-01-27
No

%swig% -tcl8 -c++ -debug-template -o Ipp.cpp Ipp.i
Ipp.h(211): Warning(451): Setting a const char * variable may leak memory.
Ipp.h(212): Warning(451): Setting a const char * variable may leak memory.
Ipp.h(213): Warning(451): Setting a const char * variable may leak memory.
Bad template type passed to SwigType_remember: a((1 << 2)).int
Assertion failed: 0, file Swig/typesys.c, line 1492
================================
Attached IPP.h is pre-processor-generated. I was getting identical error trying to SWIG the Intel headers directly, and thought it might be due to Intel's use of lots of macros to define the interfaces, so I used the pre-processor to generate a macro-free file (rather large).

SWIGging the new file generates the same error. Zip file contains all needed stuff to recreate the error....

Downloaded V1.37 to see if fixed, but same error.

Discussion

  • Karl C. Hansen

    Karl C. Hansen - 2009-01-27

    Zip-file for recreating the error....

     
  • William Fulton

    William Fulton - 2009-01-29

    SWIG is choking on the bitshift operator within arrays. A workaround for now is to comment out the following 3 lines and SWIG will no longer abort:

    int pLfeTagSel[(1<<2)];
    int pDataTagSel[(1<<3)];
    Ipp8s pComFieldData[(1<<8)];

    or add the following ignores before the %include "Ipp.h":

    %ignore pLfeTagSel;
    %ignore pDataTagSel;
    %ignore pComFieldData;

     
  • Karl C. Hansen

    Karl C. Hansen - 2009-02-24

    Thanks!

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks