help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Octave-3.3.54-source build on Cygwin


From: Tatsuro MATSUOKA
Subject: Re: Octave-3.3.54-source build on Cygwin
Date: Thu, 20 Jan 2011 06:38:20 +0900 (JST)

> gcc-core                        3.4.4-999
3.4.4-999 is not recommended.
use 4.4.3-3 instead.

According to the recent READ.cygwin,

******************************
The latest development Octave development sources (octave-3.3.54+)
are built with:

configure --enable-shared \
          --enable-float-truncate \
          CC=gcc-4 F77=gfortran-4 CXX=g++-4 CPP=cpp-4 
          lt_cv_deplibs_check_method=pass_all \
          LDFLAGS=-no-undefined 

"--enable-float-truncate" is needed for the following bug:
http://thread.gmane.org/gmane.comp.gnu.octave.bugs/12361/focus=12404
Without it, one of the quadgk test will fail as
"a=a" could be false due to truncation problems with 
complex numbers. 
******************************

Regards

Tatsuro
--- Stewart Dickson <address@hidden> wrote:

> OK,
> 
> I have installed cygwin::SuiteSparse, libSuiteSparse-devel and the 
> latest updates to cygwin.
> cygwin                          1.7.7-1
> libSuiteSparse-devel            3.5.0-1
> SuiteSparse                     3.5.0-1
> gcc-core                        3.4.4-999
> gcc-mingw-core                  20050522-1
> gcc4                            4.3.4-3
> gcc4-fortran                    4.3.4-3
> 
> On my system, I have no .../SuiteSparse/CXSparse/Include/cs.h
> I have applied the patch you gave to /usr/local/src/CXSparse/Include/cs.h
> 
> I think that I must add CPPFLAGS=-D__CYGWIN__ to my configure line, 
> because I think that gcc-4/cpp-4
> does not add -D__CYGWIN__  automatically when uname -a => 
> CYGWIN_NT-6.1-WOW64
> >  ./configure --enable-shared --enable-float-truncate 
> > --with-curl-libdir=/usr/
> > local/lib --with-qhull-includedir=/usr/local/include 
> > --with-qhull-libdir=/usr/lo
> > cal/src/qhull-2010.1/src 
> > --x-includes=/cygdrive/c/MinGW/msys/1.0/X11R6/include C
> > C=gcc-4 F77=gfortran-4 PKG_CONFIG_PATH=/usr/local/lib/pkgconfig 
> > CXX=g++-4 CPP=cp
> > p-4 CPPFLAGS=-D__CYGWIN__
> 'make' still produces the same error as below.
> 
> Thanks,
> 
> -Stewart
> 
> On 1/6/2011 3:30 PM, Marco Atzeri wrote:
> > Hi Stewart
> > any reason to use your own suitesparse libs instead of the
> > cygwin ones ?
> >
> > $ cygcheck -c -d |grep Suite
> > libSuiteSparse-devel           3.5.0-1
> > SuiteSparse                    3.5.0-
> >> ...
> >> make[3]: Entering directory `/usr/local/src/octave-3.3.54/src'
> >> ...
> >> making oct-conf.h from oct-conf.h.in
> >> oct-conf.h is unchanged
> >> /bin/sh ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.
> >> ...
> >> c' || echo './'`DLD-FUNCTIONS/fltk_backend.cc
> >> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -I../libgnu -I../libgnu
> >> ...
> >> D_FUNCTIONS_fltk_backend_la-fltk_backend.Tpo -c
> >> DLD-FUNCTIONS/fltk_backend.cc  -DDLL_EXPORT -
> >> DPIC -o DLD-FUNCTIONS/.libs/DLD_FUNCTIONS_fltk_backend_la-fltk_backend.o
> >> In file included from ../liboctave/lo-mappers.h:30,
> >>                    from ../liboctave/oct-inttypes.h:35,
> >>                    from ../liboctave/idx-vector.h:35,
> >>                    from ../liboctave/Array.h:37,
> >>                    from ../liboctave/str-vec.h:32,
> >>                    from ../liboctave/cmd-edit.h:32,
> >>                    from DLD-FUNCTIONS/fltk_backend.cc:57:
> >> ../liboctave/oct-cmplx.h:30: error: expected unqualified-id before
> >> numeric constant
> > On the disti Suitesparse there is a specific complex patch
> >
> > --- origsrc/SuiteSparse/CXSparse/Include/cs.h   2009-11-07
> > 18:23:34.000000000 +0 100
> > +++ src/SuiteSparse/CXSparse/Include/cs.h       2010-08-22
> > 09:42:01.515625000 +0 200
> > @@ -17,7 +17,11 @@ typedef std::complex<double>  cs_complex_
> >   extern "C" {
> >   #else
> > #ifndef NCOMPLEX
> > +#ifdef __CYGWIN__
> > +#define I 1.0I
> > +#else
> >   #include<complex.h>
> > +#endif
> >   #define cs_complex_t double _Complex
> >   #endif
> >   #endif
> >
> > I have no particular problem to build latest octave dev versions ,
> > using all the packages already available on cygwin.
> > As reported on the just updated README.Cygwin,
> > I am building with
> >
> > configure --enable-shared \
> >            --enable-float-truncate \
> >       CC=gcc-4 F77=gfortran-4 CXX=g++-4 CPP=cpp-4
> >       lt_cv_deplibs_check_method=pass_all \
> >       LDFLAGS=-no-undefined
> >
> > Marco
> >
> >
> > _______________________________________________
> > Help-octave mailing list
> > address@hidden
> > https://mailman.cae.wisc.edu/listinfo/help-octave
> >
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
> 


--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/


reply via email to

[Prev in Thread] Current Thread [Next in Thread]