From: Eric F. <efe...@ph...> - 2009-11-25 14:21:30
|
> -----Original Message----- > From: Eric Fernandez [mailto:efe...@ph...] > Sent: 30 March 2009 11:39 > To: sbm...@li... > Subject: [SOSlib-discuss] crash on AIX since cvs 2009-02-14[Scanned] > > Hi, > > As I reported earlier, I have noticed a segfault when using > the CVS version (it segfaults when trying to display the > model using odeSolver -e model.xml). This occurred between > the 2009-02-13 (which is working) and 2009-02-14 (segfault). > > The differences are in 3 files: > > src/Makefile.am > configure.in > config/sundials.m4 > > The notable change is using sundials_ida by default (?) > instead of kinsol. Maybe there is a problem on AIX with it. > But if it is so, why would odeSolver crash when simply trying > to display the model (odeSolver > -e) ? > > Thanks, > Eric > Hi, I'll answer to myself, because I identified the problem. Although very specific to my configuration, this may interest other people. I use gcc-4.3.4 on AIX 5.3, which was compiled with those options: bash-2.05a$ gcc -v Using built-in specs. Target: powerpc-ibm-aix5.3.0.0 Configured with: $HOME/gnusrc/gcc-4.3.4/configure --enable-threads --enable-languages=c,c++ --prefix=$HOME/gnu --enable-threads --disable-shared --enable-version-specific-runtime-libs --disable-nls --with-gmp=$HOME/gnu --with-mpfr=$HOME/gnu Thread model: aix gcc version 4.3.4 (GCC) Note that this gcc version is compiled with --disable-shared (btw, gcc 4.4 branch has an issue with it on AIX, so it recommended to stick to the 4.3 branch). Since 2009-02-14 CVS of SOSlib, Makefile.am has been changed to revision 1.29: "changed automake/autoconf framworke to produce both static and shared library". Therefore if you want SOSlib to work on AIX with a gcc version with only static libraries, you also need to compile SOSlib with static libraries, using: ./configure --prefix=$PREFIX --with-libsbml=$PREFIX --with-sundials=$PREFIX --with-libxml2=$PREFIX --disable-shared Otherwise odeSolver segfaults at runtime. Eric |