LA compilation failed

14 views
Skip to first unread message

John Zhang

unread,
Sep 10, 2023, 12:06:22 PM9/10/23
to Newton-X
Dear Developers

I tried to install NewtonX-2.4-B06 using gfortran (tried various version from 8.5 to 12.2). The installation failed when compiling LA. It alway stopped when compiling noncblas.cc. The error message looks like (pasted at the end of this message). Any suggestion? Thanks!

Best wishes

John

/bin/sh ./libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I.    -g -O3 -finline-limit=1000   -DDEBUG  -DNO_STRASSEN -DFORTRAN_ -DNONCBLAS -DNONCLAPACK   -I/usr/include/gsl -MT noncblas.lo -MD -MP -MF .deps/noncblas.Tpo -c -o noncblas.lo noncblas.cc

libtool: compile:  g++ -DHAVE_CONFIG_H -I. -g -O3 -finline-limit=1000 -DDEBUG -DNO_STRASSEN -DFORTRAN_ -DNONCBLAS -DNONCLAPACK -I/usr/include/gsl -MT noncblas.lo -MD -MP -MF .deps/noncblas.Tpo -c noncblas.cc  -fPIC -DPIC -o .libs/noncblas.o

noncblas.cc: In function ‘void cblas_zgerc(CBLAS_ORDER, int, int, const void*, const void*, int, const void*, int, void*, int)’:

noncblas.cc:258:1: error: ‘complex’ was not declared in this scope

 complex<double> *p;

 ^~~~~~~

noncblas.cc:258:1: note: suggested alternative:

In file included from la_traits.h:37,

                 from mat.h:23,

                 from noncblas.cc:22:

/usr/include/c++/8/complex:63:32: note:   ‘std::complex’

   template<typename _Tp> class complex;

                                ^~~~~~~

noncblas.cc:258:9: error: expected primary-expression before ‘double’

 complex<double> *p;

         ^~~~~~

noncblas.cc:259:1: error: ‘p’ was not declared in this scope

 p= (complex<double> *) Y; for(int i=0; i<N; ++i) {p->imag() = -p->imag(); p+= incY;}

 ^

noncblas.cc:259:13: error: expected primary-expression before ‘double’

 p= (complex<double> *) Y; for(int i=0; i<N; ++i) {p->imag() = -p->imag(); p+= incY;}

             ^~~~~~

noncblas.cc:259:13: error: expected ‘)’ before ‘double’

 p= (complex<double> *) Y; for(int i=0; i<N; ++i) {p->imag() = -p->imag(); p+= incY;}

    ~        ^~~~~~

             )

noncblas.cc:271:13: error: expected primary-expression before ‘double’

 p= (complex<double> *) Y; for(int i=0; i<N; ++i) {p->imag() = -p->imag(); p+= incY;}

             ^~~~~~

noncblas.cc:271:13: error: expected ‘)’ before ‘double’

 p= (complex<double> *) Y; for(int i=0; i<N; ++i) {p->imag() = -p->imag(); p+= incY;}

    ~        ^~~~~~

             )

Reply all
Reply to author
Forward
0 new messages