[Pkg-octave-devel] compilation with gcc-4.3

Pascal A. Dupuis Pascal.Dupuis at worldonline.be
Thu Feb 7 20:30:41 UTC 2008


On Wed, Feb 06, 2008 at 12:04:27PM +0100, Rafael Laboissiere wrote:

> >  
> > +#include <cstring>
> > +
> >  class octave_value;
> >  
> >  #define DO_MUTABLE_METHOD(RET_T, METHOD_CALL) \
> 
> This is strange.  I just built the octave3.0 package with
> CXX=/usr/bin/g++-4.3 and everything went fine.  Could you please send your
> build log to us?
> 

I have the pleasure to inform that octave3.0.0 compiled (and runs
fine! ) with gfortran-4.3. The main external libs were~:
liblapack3gf/sid uptodate 3.0.20000531a-1.3
liblapack-dev/sid uptodate 3.0.20000531a-1.3 (installed this morning)
libsuitesparse 3.0.0-8 newer than version in archive (home made)

I also maintain that, without the mentionned patch, the compilation
fails with 

/usr/bin/g++ -c  -fPIC -I. -I.. -I../liboctave -I../src -I../libcruft/misc  -DHA
VE_CONFIG_H -mieee-fp -Wall -W -Wshadow -Wold-style-cast -O2 Cell.cc -o pic/Cell
.o
In file included from ov.h:41,
                 from oct-obj.h:33,
                 from Cell.h:32,
                 from Cell.cc:29:
mxarray.h: In static member function 'static char* mxArray::strsave(const char*)
':
mxarray.h:305: error: 'strlen' was not declared in this scope
mxarray.h:307: error: 'strcpy' was not declared in this scope

I forwarded the patch to John, but I also notice that mxarray.h is
auto-generated. Don't know how which source was used.

About the tests, the only one failing is:
 processing /usr/src/octave3.0-3.0.0/scripts/optimization/sqp.m
  ***** test
 x0 = [-1.8; 1.7; 1.9; -0.8; -0.8];

 [x, obj, info, iter, nf, lambda] = sqp (x0, @phi, @g, [])

 x_opt = [-1.717143501952599;
           1.595709610928535;
           1.827245880097156;
          -0.763643103133572;
          -0.763643068453300];
 obj_opt = 0.0539498477702739

 assert (all (abs (x-x_opt) < sqrt (eps)) && abs (obj-obj_opt) < sqrt (eps));
!!!!! test failed
error: error creating function handle "@phi"


Regards

Pascal Dupuis



More information about the Pkg-octave-devel mailing list