← Back to team overview

dolfin team mailing list archive

Re: SWIG Version 2.0 for DOLFIN

 

On Monday March 14 2011 07:37:38 Anders Logg wrote:
> On Mon, Mar 14, 2011 at 07:23:10AM -0700, Johan Hake wrote:
> > On Monday March 14 2011 06:48:10 Johannes Ring wrote:
> > > On Mon, Mar 14, 2011 at 2:36 PM, Johan Hake <johan.hake@xxxxxxxxx> 
wrote:
> > > > On Monday March 14 2011 05:38:25 Anders Logg wrote:
> > > >> B1;2600;0cOn Mon, Mar 14, 2011 at 01:34:19PM +0100, Johannes Ring 
wrote:
> > > >> > On Mon, Mar 14, 2011 at 10:44 AM, Johannes Ring
> > > >> > <johannr@xxxxxxxxx>
> > 
> > wrote:
> > > >> > > On Mon, Mar 14, 2011 at 10:40 AM, Garth N. Wells
> > > >> > > <gnw20@xxxxxxxxx>
> > > > 
> > > > wrote:
> > > >> > >> On 14/03/11 09:32, Johannes Ring wrote:
> > > >> > >>> On Mon, Mar 14, 2011 at 5:00 AM, Johan Hake
> > > >> > >>> <johan.hake@xxxxxxxxx>
> > > > 
> > > > wrote:
> > > >> > >>>> Hello!
> > > >> > >>>> 
> > > >> > >>>> I have now removed all traces of SWIG code for version < 2.0.
> > > >> > >>>> Unfortunately I have not been able to test it at my buildbot,
> > > >> > >>>> as the versions has diverged, due to a previous merge gone
> > > >> > >>>> wrong.
> > > >> > >>>> 
> > > >> > >>>> Johannes could you make a new branch of dolfin at my buildbot
> > > >> > >>>> from
> > > >> > >>>> 
> > > >> > >>>>  lp:~dolfin-core/dolfin/hake
> > > >> > >>>> 
> > > >> > >>>> and maybe push force build after that?
> > > >> > >>> 
> > > >> > >>> Done.
> > > >> > >> 
> > > >> > >> Have all the buildbots been updated to SWIG 2.0?
> > > >> > > 
> > > >> > > No, I'm working on it. Only mac-osx and linux64-exp have SWIG
> > > >> > > 2.0 at the moment.
> > > >> > 
> > > >> > I have now upgraded SWIG to version 2.0 on the buildbots. The
> > > >> > lucid-amd64 and maverick-i386 slaves, building dolfin-main, are
> > > >> > using /usr/bin/swig2.0 from the Ubuntu package (backported from
> > > >> > Natty), while the personal buildbots are using some locally
> > > >> > installed SWIG.
> > > >> > 
> > > >> > This results in errors like this on dolfin-main:
> > > >> >   OSError: PyDOLFIN was not compiled with the present version of
> > > >> >   swig. Install swig version 2.0.01 or recompiled PyDOLFIN with
> > > >> >   present swig
> > > >> >   
> > > >>                                            ~~~
> > > >> 
> > > >> Don't know how to fix but there's a typo in there.
> > > > 
> > > > He, he, do not think this is the cause of the problem.
> 
> No, but I wanted to point it out so someone can fix the typo (I don't
> know where that string is located).

Sure!

Should be fixed now.

Johan

> --
> Anders
> 
> > > No, but where does that extra zero come from?
> > 
> > That is what:
> >   swig -version
> > 
> > gives you.
> > 
> > > > This is done by setting:
> > > >  parameters["swig_binary"] = "swig2.0"
> > > > 
> > > > I addressed this problem a while ago. Not sure how to "fix" this.
> > > > Either by setting a global parameters.xml file, if this is possible,
> > > > or patch globalparameters.py where the parameter is added.
> > > 
> > > Yes, I remember that and I was looking at that post. We could rename
> > > globalparameters.py to globalparameters.py.in and have CMake's
> > > configure_file command generate globalparameters.py using the
> > > SWIG_EXECUTABLE variable. I can do that if it sounds okay.
> > 
> > Yes this is probably what we want.



References