#1050 -xmlout produces: Modules/lang.cxx:330: Language::Language()

xml (6)

> swig -help|grep xmlout
-xmlout <file> - Write XML version of the parse tree to <file> after normal processing

However, while the following produces a xml file:

swig -swig -xml -c++ -cpperraswarn -o /home/mv/Documents/Workspaces/ffi-gpgme/ruby/ffi-gpgme/ext/generated/gpgme.xml /home/mv/Documents/Workspaces/ffi-gpgme/ruby/ffi-gpgme/ext/interfaces/gpgme.i

Using -xmlout raises an error:
> swig -xml -c++ -cpperraswarn -xmlout /home/mv/Documents/Workspaces/ffi-gpgme/ruby/ffi-gpgme/ext/generated/gpgme.xml /home/mv/Documents/Workspaces/ffi-gpgme/ruby/ffi-gpgme/ext/interfaces/gpgme.i
/home/mv/Documents/Workspaces/ffi-gpgme/ruby/ffi-gpgme/ext/src/gpgme-1.2.0/src/gpgme.h:80: Warning(205): CPP #error "GPGME was compiled with _FILE_OFFSET_BITS = 64, please see the section "Largefile support (LFS)" in the GPGME manual.".
swig: Modules/lang.cxx:330: Language::Language(): Assertion `!this_' failed.

> swig -version

SWIG Version 1.3.40

Compiled with g++ [i686-suse-linux-gnu]
Please see http://www.swig.org for reporting bugs and further information


  • William Fulton

    William Fulton - 2009-11-14

    Looks like duplicate to 2894402. Please attach missing gpgme.i and dependencies to one of these bugs.

  • Ned Konz

    Ned Konz - 2010-01-21

    I ran into the same thing when trying to use the -xmlout feature with -ruby:

    swig -ruby -Fstandard labjackusb.i

    works, but

    swig -xmlout swig.xml -ruby -Fstandard labjackusb.i

    results in:

    Assertion failed: (!this_), function Language, file Modules/lang.cxx, line 330.

  • Ned Konz

    Ned Konz - 2010-01-21

    I just posted ticket 2936470 with input files.

  • William Fulton

    William Fulton - 2010-02-05

    Thanks for full test case in 2936470, it was just the presence of -xmlout that is causing the assertion for any interface files. Fixed in svn for next version (2.0.0).

  • William Fulton

    William Fulton - 2010-02-05
    • status: open --> closed-fixed

Log in to post a comment.

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

Sign up for the SourceForge newsletter:

JavaScript is required for this form.

No, thanks