LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   building FLENS (https://www.linuxquestions.org/questions/linux-newbie-8/building-flens-785834/)

mohabic 01-30-2010 10:35 AM

building FLENS
 
hello

im currently trying to build FLENS, i used autoconf, i then called ./configure to build the make file
but unfortunately i got this error
moha@moha:~/FLENS$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
${SHELL} /home/moha/FLENS/missing --run aclocal-1.11 -I .
checking for perl... /usr/bin/perl
./configure: line 2761: syntax error near unexpected token `Text::Wrap,'
./configure: line 2761: `AC_PROG_PERL_MODULES(Text::Wrap, ,'
moha@moha:~/FLENS$

this is the lines that had the problem in the configure file
--------------

AC_PROG_PERL_MODULES(Text::Wrap, ,
as_fn_error "Perl module 'Text::Wrap' required" "$LINENO" 5)

----------------------

Thanks on advance
and sorry if it's a fool question

knudfl 01-30-2010 01:01 PM

We need a little more information.

1) The Linux, you are using. Name and version, please.
Like : Ubuntu 9.10 Karmic, Fedora 12, CentOS 5.4, etc.

2) FLENS version .. ( the latest is FLENS-2009-06-12 ).
And the full file name like FLENS.tar.gz, please ..
+ a link to where you got it.

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....
.....

mohabic 01-31-2010 03:20 PM

WELL
im sorry for forgetting that
the i use ubuntu 9.10 <updated today>
the svn last version of flens.
i'd like to tell u that i have made another steps and passed that problem
however another problem occured
i will show what i did
that is what i wrote in terminal

----------
aclocal -I . && autoconf && automake -acf
LIBRARY_PATH=/path/to/nagc/libraries:$LIBRARY_PATH
LD_LIBRARY_PATH=/path/to/nagc/libraries:$LD_LIBRARY_PATH
NAGC_INCLUDE=/path/to/nagc/includefiles
export LIBRARY_PATH LD_LIBRARY_PATH NAGC_INCLUDE

autoheader
automake
autoconf
./configure

mohabic 01-31-2010 03:22 PM

[QUOTE]moha@moha:~/FLENS$ make
Making all in ora
make[1]: Entering directory `/home/moha/FLENS/ora'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/moha/FLENS/ora'
Making all in utils
make[1]: Entering directory `/home/moha/FLENS/utils'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../flens -I.. -I.. -fPIC -DUSE_ORA -O2 -g -DDEBUG -Werror -Wall -pedantic -MT modulo.lo -MD -MP -MF .deps/modulo.Tpo -c -o modulo.lo modulo.cc
g++ -DHAVE_CONFIG_H -I. -I../flens -I.. -I.. -fPIC -DUSE_ORA -O2 -g -DDEBUG -Werror -Wall -pedantic -MT modulo.lo -MD -MP -MF .deps/modulo.Tpo -c modulo.cc -fPIC -DPIC -o .libs/modulo.o
In file included from /usr/include/c++/4.4/ext/hash_map:59,
from ../matvec/hashmap.h:13,
from ../matvec/sparseproxy.h:6,
from ../matvec/crsdata.h:8,
from ../flens/matvec.h:13,
from ../utils/modulo.h:4,
from modulo.cc:4:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: error: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from ../matvec/densevector.h:125,
from ../matvec/diagonalmatrix.h:8,
from ../matvec/densematrix.h:8,
from ../flens/matvec.h:14,
from ../utils/modulo.h:4,
from modulo.cc:4:

mohabic 01-31-2010 04:03 PM

../matvec/densevector.tcc:54: error: prototype for 'typename restrictFrom<isConvertible::value, flens::DenseVector<D>&>::type flens::DenseVector<D>::operator=(const MatVec<MatVecData>&)' does not match any in class 'flens::DenseVector<D>'

mohabic 01-31-2010 04:04 PM

../matvec/densevector.h:63: error: candidates are: flens::ListInitializerSwitch<flens::DenseVector<D> > flens::DenseVector<D>::operator=(const typename D::TT&)
../matvec/densevector.h:60: error: template<class D> template<template<template<class> class MatVec, class MatVecData> template<class D> template<class> class MatVec, class MatVecData> typename restrictFrom<isConvertible::value, flens::DenseVector<D>&>::type flens::DenseVector::operator=(const MatVec<MatVecData>&)
In file included from ../matvec/diagonalmatrix.h:189,
from ../matvec/densematrix.h:8,
from ../flens/matvec.h:14,
from ../utils/modulo.h:4,
from modulo.cc:4:

mohabic 01-31-2010 04:04 PM

../matvec/diagonalmatrix.tcc:61: error: prototype for 'typename restrictFrom<isConvertible::value, flens::DiagonalMatrix<D>&>::type flens::DiagonalMatrix<D>::operator=(const MatVec<MatVecData>&)' does not match any in class 'flens::DiagonalMatrix<D>'
../matvec/diagonalmatrix.h:70: error: candidates are: flens::ListInitializerSwitch<Vec>

mohabic 01-31-2010 04:05 PM

flens::DiagonalMatrix<D>::operator=(const typename D::TT&)
../matvec/diagonalmatrix.h:67: error: template<class D> template<template<template<class> class MatVec, class MatVecData> template<class D> template<class> class MatVec, class MatVecData> typename restrictFrom<isConvertible::value, flens::DiagonalMatrix<D>&>::type flens::DiagonalMatrix::operator=(const MatVec<MatVecData>&)
In file included from ../matvec/densematrix.h:174,
from ../flens/matvec.h:14,
from ../utils/modulo.h:4,
from modulo.cc:4:

mohabic 01-31-2010 04:05 PM

../matvec/densematrix.tcc:44: error: prototype for 'typename restrictFrom<isConvertible::value, flens::DenseMatrix<D>&>::type flens::DenseMatrix<D>::operator=(const MatVec<MatVecData>&)' does not match any in class 'flens::DenseMatrix<D>'

mohabic 01-31-2010 04:06 PM

../matvec/densematrix.h:73: error: candidates are: flens::ListInitializerSwitch<flens::DenseMatrix<D> > flens::DenseMatrix<D>::operator=(const typename D::TT&)
../matvec/densematrix.h:70: error: template<class D> template<template<template<class> class MatVec, class MatVecData> template<class D> template<class> class MatVec, class MatVecData> typename restrictFrom<isConvertible::value, flens::DenseMatrix<D>&>::type flens::DenseMatrix::operator=(const MatVec<MatVecData>&)
make[1]: *** [modulo.lo] Error 1
make[1]: Leaving directory `/home/moha/FLENS/utils'
make: *** [all-recursive] Error 1[/QUOTE]

i noticed that when i excute make i found that it genrates *.loT file , to link the library as it was written in the file isnt supposed to be named *.lo ??

Thanks on advance

mohabic 01-31-2010 04:06 PM

sorry for posting the make o/p in several posts

GrapefruiTgirl 01-31-2010 04:10 PM

@ mohabic,

you probably should, if possible, disable smilies in the above post(s) so there are no happy-faces in the code output.

Also, I really don't know what to make of all that stuff; may I ask, why did you post it in all these pieces? Would it not make sense to post all the error output together?

:)
Sasha

Quakeboy02 01-31-2010 04:31 PM

Code:

Posting in code blocks is a better solution than disabling smilies.  :)
Given your problem, I'd try downloading the file again from scratch, and try again. It looks like you had a download failure.

knudfl 02-01-2010 05:36 AM

FLENS .. .. Ubuntu 8.10 Karmic
 
You are still missing out to tell us the file name for
the FLENS you are using ( FLENS-2009-06-12.tgz ? ? ) Or ?
And why do :
autoheader && automake && autoconf && ./configure
.. when a Makefile already is provided ?

.....
Anyway, FLENS-2009-06-12 seems buggy, luckily the "cvs version" is OK ..

http://flens.sourceforge.net/obtain.html
Code:

  export CVSROOT=:pserver:anonymous@flens.cvs.sourceforge.net:/cvsroot/flens
  export CVS_RSH=ssh
  cvs login
  cvs -z3 co -P FLENS-lite

sudo apt-get install \
libatlas-headers libblas-dev liblapack-pic libatlas-base-dev

cd FLENS-lite/
cp config.ubuntu config
make

.. And if you want "sudo make install" :
Edit Makefile.common , line 19, to :
include $(FLENS_HOME)./config
( This bug only appears by 'make install',
do not edit when doing 'make' ).

sudo make install : provides /usr/local/lib/libflens.so
+ some headers etc. in /usr/local/include/flens/
.....

mohabic 02-01-2010 05:43 AM

Quote:

moha@moha:~$ cd /home/moha/FLENS
moha@moha:~/FLENS$ ./configurre
bash: ./configurre: No such file or directory
moha@moha:~/FLENS$ ./configurre
bash: ./configurre: No such file or directory
moha@moha:~/FLENS$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
${SHELL} /home/moha/FLENS/missing --run aclocal-1.11 -I .
checking for perl... /usr/bin/perl
checking for perl module Text::Wrap... ok
checking for doxygen... true
checking for icc... no
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for icc... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for plotserver_connect in -lplotserver... no
LIBPLOTSERVER=
checking version of g++... OK
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g77... no
checking for xlf... no
checking for f77... f77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether f77 accepts -g... yes
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for f77 option to produce PIC... -fPIC
checking if f77 PIC flag -fPIC works... no
checking if f77 supports -c -o file.o... no
checking whether the f77 linker (/usr/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... /usr/bin/f77: Illegal option: -print-search-dirs
GNU/Linux ld.so
checking for a00aac in -lnagc... no
checking how to get verbose linking output from f77... configure: WARNING: cannot determine how to obtain linking information from f77

checking for Fortran 77 libraries of f77...
checking for dummy main to link with Fortran 77 libraries... none
checking for Fortran 77 name-mangling scheme... lower case, underscore, extra underscore
checking for sgemm_... no
checking for ATL_xerbla in -latlas... yes
checking for sgemm_ in -lf77blas... yes
checking for cblas_dgemm in -lcblas... yes
checking for cheev_... no
checking for cheev_ in -llapack... yes
checking for the Boost C++ libraries, version 1.30.0 or newer... yes
checking for an ANSI C-conforming const... yes
checking for size_t... yes
checking for ANSI C header files... (cached) yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating examples/Makefile
config.status: creating matvec/Makefile
config.status: creating solver/lapack/Makefile
config.status: creating solver/nagc/Makefile
config.status: creating solver/ulm/Makefile
config.status: creating solver/Makefile
config.status: creating mllib/Makefile
config.status: creating flens/Makefile
config.status: creating ora/ora.pl
config.status: creating ora/makeclean.pl
config.status: creating doc/cc2dox.pl
config.status: creating ora/Makefile
config.status: creating test/Makefile
config.status: creating utils/Makefile
config.status: creating export/Makefile
config.status: creating export/matlab/Makefile
config.status: creating doc/Doxyfile
config.status: creating doc/Makefile
config.status: creating flens/config.h
config.status: flens/config.h is unchanged
config.status: executing depfiles commands
moha@moha:~/FLENS$ make
Making all in ora
make[1]: Entering directory `/home/moha/FLENS/ora'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/moha/FLENS/ora'
Making all in utils
make[1]: Entering directory `/home/moha/FLENS/utils'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../flens -I.. -I.. -fPIC -DUSE_ORA -O2 -g -DDEBUG -Werror -Wall -pedantic -MT modulo.lo -MD -MP -MF .deps/modulo.Tpo -c -o modulo.lo modulo.cc
g++ -DHAVE_CONFIG_H -I. -I../flens -I.. -I.. -fPIC -DUSE_ORA -O2 -g -DDEBUG -Werror -Wall -pedantic -MT modulo.lo -MD -MP -MF .deps/modulo.Tpo -c modulo.cc -fPIC -DPIC -o .libs/modulo.o
In file included from /usr/include/c++/4.4/ext/hash_map:59,
from ../matvec/hashmap.h:13,
from ../matvec/sparseproxy.h:6,
from ../matvec/crsdata.h:8,
from ../flens/matvec.h:13,
from ../utils/modulo.h:4,
from modulo.cc:4:
/usr/include/c++/4.4/backward/backward_warning.h:28:2: error: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
In file included from ../matvec/densevector.h:125,
from ../matvec/diagonalmatrix.h:8,
from ../matvec/densematrix.h:8,
from ../flens/matvec.h:14,
from ../utils/modulo.h:4,
from modulo.cc:4:
../matvec/densevector.tcc:54: error: prototype for 'typename restrictFrom<isConvertible::value, flens::DenseVector<D>&>::type flens::DenseVector<D>::operator=(const MatVec<MatVecData>&)' does not match any in class 'flens::DenseVector<D>'
../matvec/densevector.h:63: error: candidates are: flens::ListInitializerSwitch<flens::DenseVector<D> > flens::DenseVector<D>::operator=(const typename D::TT&)
../matvec/densevector.h:60: error: template<class D> template<template<template<class> class MatVec, class MatVecData> template<class D> template<class> class MatVec, class MatVecData> typename restrictFrom<isConvertible::value, flens::DenseVector<D>&>::type flens::DenseVector::operator=(const MatVec<MatVecData>&)
In file included from ../matvec/diagonalmatrix.h:189,
from ../matvec/densematrix.h:8,
from ../flens/matvec.h:14,
from ../utils/modulo.h:4,
from modulo.cc:4:
../matvec/diagonalmatrix.tcc:61: error: prototype for 'typename restrictFrom<isConvertible::value, flens::DiagonalMatrix<D>&>::type flens::DiagonalMatrix<D>::operator=(const MatVec<MatVecData>&)' does not match any in class 'flens::DiagonalMatrix<D>'
../matvec/diagonalmatrix.h:70: error: candidates are: flens::ListInitializerSwitch<Vec> flens::DiagonalMatrix<D>::operator=(const typename D::TT&)
../matvec/diagonalmatrix.h:67: error: template<class D> template<template<template<class> class MatVec, class MatVecData> template<class D> template<class> class MatVec, class MatVecData> typename restrictFrom<isConvertible::value, flens::DiagonalMatrix<D>&>::type flens::DiagonalMatrix::operator=(const MatVec<MatVecData>&)
In file included from ../matvec/densematrix.h:174,
from ../flens/matvec.h:14,
from ../utils/modulo.h:4,
from modulo.cc:4:
../matvec/densematrix.tcc:44: error: prototype for 'typename restrictFrom<isConvertible::value, flens::DenseMatrix<D>&>::type flens::DenseMatrix<D>::operator=(const MatVec<MatVecData>&)' does not match any in class 'flens::DenseMatrix<D>'
../matvec/densematrix.h:73: error: candidates are: flens::ListInitializerSwitch<flens::DenseMatrix<D> > flens::DenseMatrix<D>::operator=(const typename D::TT&)
../matvec/densematrix.h:70: error: template<class D> template<template<template<class> class MatVec, class MatVecData> template<class D> template<class> class MatVec, class MatVecData> typename restrictFrom<isConvertible::value, flens::DenseMatrix<D>&>::type flens::DenseMatrix::operator=(const MatVec<MatVecData>&)
make[1]: *** [modulo.lo] Error 1
make[1]: Leaving directory `/home/moha/FLENS/utils'
make: *** [all-recursive] Error 1
moha@moha:~/FLENS$
sorry, im still newbie
now this is the configure and make o/p
thanks


All times are GMT -5. The time now is 10:33 AM.