Discussion:
[Swig-devel] Announce - swig-3.0.11
William S Fulton
2016-12-29 23:34:34 UTC
Permalink
*** ANNOUNCE: SWIG 3.0.11 (29 Dec 2016) ***

http://www.swig.org

We're pleased to announce SWIG-3.0.11, the latest SWIG release.

What is SWIG?
=============

SWIG is a software development tool that reads C/C++ header files and
generates the wrapper code needed to make C and C++ code accessible
from other programming languages including Perl, Python, Tcl, Ruby,
PHP, C#, Go, Java, Javascript, Lua, Scheme (Guile, MzScheme, CHICKEN),
D, Ocaml, Pike, Modula-3, Octave, R, Scilab, Common Lisp (CLISP,
Allegro CL, CFFI, UFFI). SWIG can also export its parse tree in
the form of XML and Lisp s-expressions. Major applications of SWIG
include generation of scripting language extension modules, rapid
prototyping, testing, and user interface development for large
C/C++ systems.

Release Notes
=============
Detailed release notes are available with the release and are also
published on the SWIG web site at http://swig.org/release.html.

SWIG-3.0.11 summary:
- PHP 7 support added.
- C++11 alias templates and type aliasing support added.
- Minor fixes and enhancements for C# Go Guile Java Javascript Octave
PHP Python R Ruby Scilab XML.

Availability
============
The release is available for download on Sourceforge at

http://prdownloads.sourceforge.net/swig/swig-3.0.11.tar.gz

A Windows version is also available at

http://prdownloads.sourceforge.net/swig/swigwin-3.0.11.zip

Please report problems with this release to the swig-devel mailing list,
details at http://www.swig.org/mail.html.

--- The SWIG Developers
Jitka Plesníková
2017-01-05 11:37:49 UTC
Permalink
I wanted to do official build of swig 3.0.11 for Fedora 25/26.
I ran test builds before it and everything was fine.

When I start official build one guile tests randomly failed on various
architecture.
The error is below. I don't know what could happened.

checking guile testcase reference_global_vars (with run test)
Backtrace:
In ice-9/boot-9.scm:
160: 15 [catch #t #<catch-closure 568ada20> ...]
In unknown file:
?: 14 [apply-smob/1 #<catch-closure 568ada20>]
In ice-9/boot-9.scm:
66: 13 [call-with-prompt prompt0 ...]
In ice-9/eval.scm:
432: 12 [eval # #]
In ice-9/boot-9.scm:
2404: 11 [save-module-excursion #<procedure 56a21fc0 at ice-9/boot-9.scm:4051:3 ()>]
4058: 10 [#<procedure 56a21fc0 at ice-9/boot-9.scm:4051:3 ()>]
1727: 9 [%start-stack load-stack ...]
1732: 8 [#<procedure 56a1b9a8 ()>]
In unknown file:
?: 7 [primitive-load "/builddir/build/BUILD/swig-3.0.11/Examples/test-suite/guile/./reference_global_vars_runme.scm"]
In ice-9/boot-9.scm:
2404: 6 [save-module-excursion #<procedure 56bc5520 at ice-9/boot-9.scm:4051:3 ()>]
4058: 5 [#<procedure 56bc5520 at ice-9/boot-9.scm:4051:3 ()>]
1727: 4 [%start-stack load-stack ...]
1732: 3 [#<procedure 56bd3c60 ()>]
In unknown file:
?: 2 [primitive-load "/builddir/build/BUILD/swig-3.0.11/Examples/test-suite/guile/./../schemerunme/reference_global_vars.scm"]
In ice-9/eval.scm:
503: 1 [#<procedure 567ba440 at ice-9/eval.scm:499:4 (exp)> (var-TestClass #)]
In unknown file:
?: 0 [%run-finalizers]
ERROR: In procedure %run-finalizers:
ERROR: In procedure delete-TestClass: Wrong type argument in position 1: #<finalized smob 56bd65b0>
checking guile testcase register_par
make[1]: *** [Makefile:36: reference_global_vars.cpptest] Error 1


I disabled the guile for now, to be able to build swig for Fedora.

Do you have any idea what can be wrong?

Thanks,
Jitka
Post by William S Fulton
*** ANNOUNCE: SWIG 3.0.11 (29 Dec 2016) ***
http://www.swig.org
We're pleased to announce SWIG-3.0.11, the latest SWIG release.
What is SWIG?
=============
SWIG is a software development tool that reads C/C++ header files and
generates the wrapper code needed to make C and C++ code accessible
from other programming languages including Perl, Python, Tcl, Ruby,
PHP, C#, Go, Java, Javascript, Lua, Scheme (Guile, MzScheme, CHICKEN),
D, Ocaml, Pike, Modula-3, Octave, R, Scilab, Common Lisp (CLISP,
Allegro CL, CFFI, UFFI). SWIG can also export its parse tree in
the form of XML and Lisp s-expressions. Major applications of SWIG
include generation of scripting language extension modules, rapid
prototyping, testing, and user interface development for large
C/C++ systems.
Release Notes
=============
Detailed release notes are available with the release and are also
published on the SWIG web site at http://swig.org/release.html.
- PHP 7 support added.
- C++11 alias templates and type aliasing support added.
- Minor fixes and enhancements for C# Go Guile Java Javascript Octave
PHP Python R Ruby Scilab XML.
Availability
============
The release is available for download on Sourceforge at
http://prdownloads.sourceforge.net/swig/swig-3.0.11.tar.gz
A Windows version is also available at
http://prdownloads.sourceforge.net/swig/swigwin-3.0.11.zip
Please report problems with this release to the swig-devel mailing list,
details at http://www.swig.org/mail.html.
--- The SWIG Developers
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Swig-devel mailing list
https://lists.sourceforge.net/lists/listinfo/swig-devel
William S Fulton
2017-01-05 19:20:01 UTC
Permalink
Hi Jitka

There is only one real change in SWIG for Guile that I could find and that
is this patch:

https://github.com/swig/swig/commit/391bb79cbaa914db2dbbe2edec5c2af1d76bed86

Perhaps you can determine whether or not this patch is responsible? I don't
know enough about Guile to know if this might be the culprit. Looks like a
garbage collection issue, but I'm hoping someone with some Guile knowledge
will step in though to provide some better insight. I tried running
valgrind on my box, but it didn't show up anything. Perhaps you can try
this too in a setup that is known to fail:

~/swig/github/swig/Examples/test-suite/guile $ make
reference_global_vars.cpptest RUNTOOL="valgrind
--log-file=/tmp/guile-reference_global_vars.log" CXXFLAGS=-ggdb3

and post the log file if you are not sure what to look for.

Is this a new version of Guile being used or do you think it is solely down
to the new version of SWIG? What architectures does it fail on if I was to
build a virtual machine to debug?

William
Post by Jitka Plesníková
I wanted to do official build of swig 3.0.11 for Fedora 25/26.
I ran test builds before it and everything was fine.
When I start official build one guile tests randomly failed on various
architecture.
The error is below. I don't know what could happened.
checking guile testcase reference_global_vars (with run test)
160: 15 [catch #t #<catch-closure 568ada20> ...]
?: 14 [apply-smob/1 #<catch-closure 568ada20>]
66: 13 [call-with-prompt prompt0 ...]
432: 12 [eval # #]
2404: 11 [save-module-excursion #<procedure 56a21fc0 at ice-9/boot-9.scm:4051:3 ()>]
4058: 10 [#<procedure 56a21fc0 at ice-9/boot-9.scm:4051:3 ()>]
1727: 9 [%start-stack load-stack ...]
1732: 8 [#<procedure 56a1b9a8 ()>]
?: 7 [primitive-load "/builddir/build/BUILD/swig-3.0.11/Examples/test-suite/guile/./reference_global_vars_runme.scm"]
2404: 6 [save-module-excursion #<procedure 56bc5520 at ice-9/boot-9.scm:4051:3 ()>]
4058: 5 [#<procedure 56bc5520 at ice-9/boot-9.scm:4051:3 ()>]
1727: 4 [%start-stack load-stack ...]
1732: 3 [#<procedure 56bd3c60 ()>]
?: 2 [primitive-load "/builddir/build/BUILD/swig-3.0.11/Examples/test-suite/guile/./../schemerunme/reference_global_vars.scm"]
503: 1 [#<procedure 567ba440 at ice-9/eval.scm:499:4 (exp)> (var-TestClass #)]
?: 0 [%run-finalizers]
ERROR: In procedure delete-TestClass: Wrong type argument in position 1: #<finalized smob 56bd65b0>
checking guile testcase register_par
make[1]: *** [Makefile:36: reference_global_vars.cpptest] Error 1
I disabled the guile for now, to be able to build swig for Fedora.
Do you have any idea what can be wrong?
Thanks,
Jitka
*** ANNOUNCE: SWIG 3.0.11 (29 Dec 2016) ***
http://www.swig.org
We're pleased to announce SWIG-3.0.11, the latest SWIG release.
What is SWIG?
=============
SWIG is a software development tool that reads C/C++ header files and
generates the wrapper code needed to make C and C++ code accessible
from other programming languages including Perl, Python, Tcl, Ruby,
PHP, C#, Go, Java, Javascript, Lua, Scheme (Guile, MzScheme, CHICKEN),
D, Ocaml, Pike, Modula-3, Octave, R, Scilab, Common Lisp (CLISP,
Allegro CL, CFFI, UFFI). SWIG can also export its parse tree in
the form of XML and Lisp s-expressions. Major applications of SWIG
include generation of scripting language extension modules, rapid
prototyping, testing, and user interface development for large
C/C++ systems.
Release Notes
=============
Detailed release notes are available with the release and are also
published on the SWIG web site at http://swig.org/release.html.
- PHP 7 support added.
- C++11 alias templates and type aliasing support added.
- Minor fixes and enhancements for C# Go Guile Java Javascript Octave
PHP Python R Ruby Scilab XML.
Availability
============
The release is available for download on Sourceforge at
http://prdownloads.sourceforge.net/swig/swig-3.0.11.tar.gz
A Windows version is also available at
http://prdownloads.sourceforge.net/swig/swigwin-3.0.11.zip
Please report problems with this release to the swig-devel mailing list,
details at http://www.swig.org/mail.html.
--- The SWIG Developers
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Continue reading on narkive:
Loading...