Opened 9 years ago

Closed 9 years ago

#5992 closed enhancement (fixed)

Swig-3.0.4

Reported by: Pierre Labastie Owned by: Pierre Labastie
Priority: normal Milestone: 7.7
Component: BOOK Version: SVN
Severity: normal Keywords:
Cc:

Description

Change History (11)

comment:1 by Pierre Labastie, 9 years ago

As I said on the list I'll update this next week. I hope there is no emergency.

comment:2 by Fernando de Oliveira, 9 years ago

Please, accept in your name.

comment:3 by Pierre Labastie, 9 years ago

Owner: changed from blfs-book@… to Pierre Labastie
Status: newassigned

Well, I did not want to block somebody who might have wanted to do the update, since I knew I would be out for a few days. taking it now.

comment:4 by Pierre Labastie, 9 years ago

Tests are not very good:

  • Almost all ruby tests fail with something like:
    /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot 
    load such file -- example (LoadError)
            from /usr/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `requ
    ire'
            from runme.rb:3:in `<main>'
    

where the "variable part" is example (before (LoadError)).

  • Almost all go tests fail with something like:
    multi_import_a.o: In function `go_multi_import_a.Testz.N29_go_multi_import_a.Swi
    gcptrZZZ':
    /sources/swig/swig-3.0.3/Examples/test-suite/go/multi_import_a.go:55: undefined 
    reference to `go_multi_import_a.SwigCgocall'
    multi_import_a.o: In function `multi_import_a.$nested0':
    /sources/swig/swig-3.0.3/Examples/test-suite/go/multi_import_a.go:66: undefined 
    reference to `go_multi_import_a.SwigCgocall'
    ...  and a lot more ...
    

Other languages are OK.

comment:5 by Pierre Labastie, 9 years ago

Not all other languages are OK: Almost all Clisp tests fail with somthing like:

make[3]: Entering directory '/sources/swig/swig-3.0.3/Examples/test-suite/clisp'
Don't know how to deal with class kind of class yet.
 (name: A)
../../../Examples/Makefile:1535: recipe for target 'clisp_cpp' failed
make[3]: *** [clisp_cpp] Error 1
make[3]: Leaving directory '/sources/swig/swig-3.0.3/Examples/test-suite/clisp'
Makefile:25: recipe for target 'abstract_access.cpptest' failed

Again the "variable part" is A in (name: A)

comment:6 by Pierre Labastie, 9 years ago

Ruby tests: they pass with the following sed:

sed -i 's@ Config::CONFIG@ RbConfig::CONFIG@' configure

That was not needed with Ruby 2.1.5

comment:7 by Pierre Labastie, 9 years ago

It looks like the clisp interface is not complete, so that it can only deal with "struct" kind of class, but neither "class" nor "union". In any case, all the failures are in swig, and have nothing to do with the host's clisp. I think I'll just add "--without-clisp" to the configure command.

Last edited 9 years ago by Pierre Labastie (previous) (diff)

comment:8 by Pierre Labastie, 9 years ago

For Go, the tests pass with gccgo-4.8, so the failures might be an indication of changes (bugs?) in gcc rather than in swig. I'll just add a comment about Go tests.

comment:9 by Pierre Labastie, 9 years ago

Actually, there has been a change in gccgo between 4.9.1 and 4.9.2. The following sed allows the Go tests to pass (it breaks the tests with gcc version prior to 4.9.2:

sed -i 's/"\.")/"_")/' -i Source/Modules/go.cxx

Other fixes are currently applied to the swig source, and 3.0.4 is coming soon. Deferring update of the book.

comment:10 by Armin K, 9 years ago

Summary: Swig-3.0.3Swig-3.0.4

comment:11 by Pierre Labastie, 9 years ago

Resolution: fixed
Status: assignedclosed

Fixed at r15343

Note: See TracTickets for help on using tickets.