SyFi fails to build with SWIG 2.0.4

Bug #793984 reported by Johannes Ring
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SyFi
Invalid
Undecided
Unassigned

Bug Description

When trying to build SyFi with the latest SWIG (2.0.4), I'm running into the following error:

[ 96%] Building CXX object syfi/swig/CMakeFiles/_SyFi.dir/SyFiPYTHON_wrap.cxx.o
cd /tmp/fenics-syfi/build/syfi/swig && /usr/bin/c++ -D_SyFi_EXPORTS -DSYFILIB_VERSION=\"0.6.2\" -O2 -g -fPIC -I/tmp/fenics-syfi/syfi -I/tmp/fenics-syfi/build/syfi -I/tmp/fenics-syfi/syfi/swig -I/tmp/fenics-syfi/build/syfi/swig -I/usr/include/python2.7 -I/usr/lib/pymodules/python2.7/numpy/core/include -o CMakeFiles/_SyFi.dir/SyFiPYTHON_wrap.cxx.o -c /tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx
/tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx: In function 'PyObject* std_map_Sl_GiNaC_ex_Sc_GiNaC_ex_Sc_GiNaC_ex_is_less_Sg__asdict(std::map<GiNaC::ex, GiNaC::ex, GiNaC::ex_is_less>*)':
/tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx:5293:14: error: 'asdict' is not a member of 'swig::traits_from<std::map<GiNaC::ex, GiNaC::ex, GiNaC::ex_is_less> >'
/tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx: In function 'PyObject* std_map_Sl_GiNaC_ex_Sc_int_Sc_GiNaC_ex_is_less_Sg__asdict(std::map<GiNaC::ex, int, GiNaC::ex_is_less>*)':
/tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx:5435:14: error: 'asdict' is not a member of 'swig::traits_from<std::map<GiNaC::ex, int, GiNaC::ex_is_less> >'
make[2]: *** [syfi/swig/CMakeFiles/_SyFi.dir/SyFiPYTHON_wrap.cxx.o] Error 1
make[2]: Leaving directory `/tmp/fenics-syfi/build'
make[1]: *** [syfi/swig/CMakeFiles/_SyFi.dir/all] Error 2
make[1]: Leaving directory `/tmp/fenics-syfi/build'
make: *** [all] Error 2

Any ideas?

SWIG 2.0.4 is in Debian unstable (and the next Ubuntu) and I am therefore unable to build SyFi there at the moment.

Revision history for this message
Kent-Andre Mardal (kent-and) wrote : Re: [Bug 793984] [NEW] SyFi fails to build with SWIG 2.0.4
Download full text (4.1 KiB)

Strange, this is code generated by swig itself. The asdict function is
never used in our interface file. Are you sure the wrapper file is generated
by
the installed swig ?

Kent

On 7 June 2011 13:51, Johannes Ring <email address hidden> wrote:

> Public bug reported:
>
> When trying to build SyFi with the latest SWIG (2.0.4), I'm running into
> the following error:
>
> [ 96%] Building CXX object
> syfi/swig/CMakeFiles/_SyFi.dir/SyFiPYTHON_wrap.cxx.o
> cd /tmp/fenics-syfi/build/syfi/swig && /usr/bin/c++ -D_SyFi_EXPORTS
> -DSYFILIB_VERSION=\"0.6.2\" -O2 -g -fPIC -I/tmp/fenics-syfi/syfi
> -I/tmp/fenics-syfi/build/syfi -I/tmp/fenics-syfi/syfi/swig
> -I/tmp/fenics-syfi/build/syfi/swig -I/usr/include/python2.7
> -I/usr/lib/pymodules/python2.7/numpy/core/include -o
> CMakeFiles/_SyFi.dir/SyFiPYTHON_wrap.cxx.o -c
> /tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx
> /tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx: In function
> 'PyObject*
> std_map_Sl_GiNaC_ex_Sc_GiNaC_ex_Sc_GiNaC_ex_is_less_Sg__asdict(std::map<GiNaC::ex,
> GiNaC::ex, GiNaC::ex_is_less>*)':
> /tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx:5293:14: error:
> 'asdict' is not a member of 'swig::traits_from<std::map<GiNaC::ex,
> GiNaC::ex, GiNaC::ex_is_less> >'
> /tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx: In function
> 'PyObject*
> std_map_Sl_GiNaC_ex_Sc_int_Sc_GiNaC_ex_is_less_Sg__asdict(std::map<GiNaC::ex,
> int, GiNaC::ex_is_less>*)':
> /tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx:5435:14: error:
> 'asdict' is not a member of 'swig::traits_from<std::map<GiNaC::ex, int,
> GiNaC::ex_is_less> >'
> make[2]: *** [syfi/swig/CMakeFiles/_SyFi.dir/SyFiPYTHON_wrap.cxx.o] Error 1
> make[2]: Leaving directory `/tmp/fenics-syfi/build'
> make[1]: *** [syfi/swig/CMakeFiles/_SyFi.dir/all] Error 2
> make[1]: Leaving directory `/tmp/fenics-syfi/build'
> make: *** [all] Error 2
>
> Any ideas?
>
> SWIG 2.0.4 is in Debian unstable (and the next Ubuntu) and I am
> therefore unable to build SyFi there at the moment.
>
> ** Affects: fenics-syfi
> Importance: Undecided
> Status: New
>
> --
> You received this bug notification because you are a member of SyFi Core
> Team, which is the registrant for SyFi.
> https://bugs.launchpad.net/bugs/793984
>
> Title:
> SyFi fails to build with SWIG 2.0.4
>
> Status in Symbolic Finite Elements.:
> New
>
> Bug description:
> When trying to build SyFi with the latest SWIG (2.0.4), I'm running
> into the following error:
>
> [ 96%] Building CXX object
> syfi/swig/CMakeFiles/_SyFi.dir/SyFiPYTHON_wrap.cxx.o
> cd /tmp/fenics-syfi/build/syfi/swig && /usr/bin/c++ -D_SyFi_EXPORTS
> -DSYFILIB_VERSION=\"0.6.2\" -O2 -g -fPIC -I/tmp/fenics-syfi/syfi
> -I/tmp/fenics-syfi/build/syfi -I/tmp/fenics-syfi/syfi/swig
> -I/tmp/fenics-syfi/build/syfi/swig -I/usr/include/python2.7
> -I/usr/lib/pymodules/python2.7/numpy/core/include -o
> CMakeFiles/_SyFi.dir/SyFiPYTHON_wrap.cxx.o -c
> /tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx
> /tmp/fenics-syfi/build/syfi/swig/SyFiPYTHON_wrap.cxx: In function
> 'PyObject*
> std_map_Sl_GiNaC_ex_Sc_GiNaC_ex_Sc_GiNaC_ex_is_less_Sg__asdict(std::map<GiNaC::ex,
> GiNaC::ex, GiNaC::ex_is_less>*)...

Read more...

Revision history for this message
Johannes Ring (johannr) wrote :

Yes, I'm sure.

I just tried with the development version of SWIG and it seems that this problem was introduced by the commit in revision 12659 (probably in std_map.i):

  http://swig.svn.sourceforge.net/viewvc/swig?view=revision&revision=12659

SyFi builds fine when I revert back to revision 12658. Is this a bug in SWIG or is there anything we can do in SyFi to fix this?

BTW, I have the same problem with swiginac.

Revision history for this message
Johannes Ring (johannr) wrote :

This bug is stopping me from fixing Debian bug #629564. I will therefore remove syfi from the fenics package in Debian until this is fixed (either in SWIG or in SyFi).

Revision history for this message
Johannes Ring (johannr) wrote :

This turned out to be a bug in SWIG, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633710.

Changed in fenics-syfi:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.