installing and using MTL failed.

"Umut TABAK" <[email protected]> Sun, 10 Aug 2008 12:22:55 +0200
Newsgroups gmane.comp.lib.mtl.devel
Message-ID <[email protected]>
--===============1500385186==
Content-Type: multipart/alternative; 
	boundary="----=_Part_65444_25582659.1218363775725"

------=_Part_65444_25582659.1218363775725
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Dear,

I am trying to install MTL from tar ball mtl-2.1.2-22.tar.gz
<http://www.osl.iu.edu/download/research/mtl//mtl-2.1.2-22.tar.gz><http://www.osl.iu.edu/download/research/mtl//mtl-2.1.2-22.tar.gz>given
on the webpage. However, I recently had some problems on autoconf and
automake and after some search found out that, some version inconsistency
was the reason for this. I change to autoconf 2.13 and automake 1.4-p6. I
applied also the patch given on the mtl installation and download page,
however that patch is already for gcc version 4.02 and I have been using gcc
4.2.3 on ubuntu linux. Patch application succeded however(I think this was
the 1st time I applied a patch. I am glad I learnt how to do that besides.)
And following the order given on the download and installation page of the
mtl, I was at the configure step, I read from the INSTALL file, some extra
options have to supplied to work with LAPACK and so on.

I used ./configure --with-blais --with-lapack="-llapack -lblas -lg2c"

which went ok except
.
.
.
checking whether to use interface to LAPACK... yes
test: 2807: -lblas: unexpected operator
checking whether the Fortran 77 compiler (g77 ) works... yes
.
.
.
The I tried make and I got this errors

Making all in test
make[1]: Entering directory `/home/utabak/Desktop/mtl-2.1.2-22/test'
Making all in src
make[2]: Entering directory `/home/utabak/Desktop/mtl-2.1.2-22/test/src'
g++ -DHAVE_CONFIG_H -I. -I. -I../../mtl -I../.. -ftemplate-depth-30 -Wall -c
matrix_iterator_test.cc
In file included from ../../mtl/matrix_implementation.h:32,
from ../../mtl/matrix.h:33,
from matrix_iterator_test.cc:15:
../../mtl/initialize.h: In function 'void mtl::__initialize(Matrix&,
mtl::matrix_market_stream<T>&, mtl::symmetric_tag)':
../../mtl/initialize.h:49: error: there are no arguments to 'assert' that
depend on a template parameter, so a declaration of 'assert' must be
available
../../mtl/initialize.h:49: error: (if you use '-fpermissive', G++ will
accept your code, but allowing the use of an undeclared name is deprecated)
make[2]: *** [matrix_iterator_test.o] Error 1
make[2]: Leaving directory `/home/utabak/Desktop/mtl-2.1.2-22/test/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/utabak/Desktop/mtl-2.1.2-22/test'
make: *** [all-recursive] Error 1

Could somebody direct me from this point on to find the point where I am
mistaken. Do I strictly need gcc 4.02? Or there is another workaround to
this problem...

Thanks for your help and time in advance.

Umut

------=_Part_65444_25582659.1218363775725
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div dir="ltr">Dear,
<br>
<br>I am trying to install MTL from tar ball mtl-2.1.2-22.tar.gz 
<a class="moz-txt-link-rfc2396E" href="http://www.osl.iu.edu/download/research/mtl//mtl-2.1.2-22.tar.gz">&lt;http://www.osl.iu.edu/download/research/mtl//mtl-2.1.2-22.tar.gz&gt;</a> given 
on the webpage. However, I recently had some problems on autoconf and 
automake and after some search found out that, some version 
inconsistency was the reason for this. I change to autoconf 2.13 and 
automake 1.4-p6. I applied also the patch given on the mtl installation 
and download page, however that patch is already for gcc version 4.02 
and I have been using gcc 4.2.3 on ubuntu linux. Patch application 
succeded however(I think this was the 1st time I applied a patch. I am 
glad I learnt how to do that besides.) And following the order given on 
the download and installation page of the mtl, I was at the configure 
step, I read from the INSTALL file, some extra options have to supplied 
to work with LAPACK and so on.
<br>
<br>I used ./configure --with-blais --with-lapack=&quot;-llapack -lblas -lg2c&quot;
<br>
<br>which went ok except
<br>.
<br>.
<br>.
<br>checking whether to use interface to LAPACK... yes
<br>test: 2807: -lblas: unexpected operator
<br>checking whether the Fortran 77 compiler (g77 ) works... yes
<br>.
<br>.
<br>.
<br>The I tried make and I got this errors
<br>
<br>Making all in test
<br>make[1]: Entering directory `/home/utabak/Desktop/mtl-2.1.2-22/test&#39;
<br>Making all in src
<br>make[2]: Entering directory `/home/utabak/Desktop/mtl-2.1.2-22/test/src&#39;
<br>g++ -DHAVE_CONFIG_H -I. -I. -I../../mtl -I../.. -ftemplate-depth-30 
-Wall -c matrix_iterator_test.cc
<br>In file included from ../../mtl/matrix_implementation.h:32,
<br>from ../../mtl/matrix.h:33,
<br>from matrix_iterator_test.cc:15:
<br>../../mtl/initialize.h: In function 'void mtl::__initialize(Matrix&amp;, 
mtl::matrix_market_stream&lt;T&gt;&amp;, mtl::symmetric_tag)':
<br>../../mtl/initialize.h:49: error: there are no arguments to 'assert' 
that depend on a template parameter, so a declaration of 'assert' must 
be available
<br>../../mtl/initialize.h:49: error: (if you use '-fpermissive', G++ will 
accept your code, but allowing the use of an undeclared name is deprecated)
<br>make[2]: *** [matrix_iterator_test.o] Error 1
<br>make[2]: Leaving directory `/home/utabak/Desktop/mtl-2.1.2-22/test/src&#39;
<br>make[1]: *** [all-recursive] Error 1
<br>make[1]: Leaving directory `/home/utabak/Desktop/mtl-2.1.2-22/test&#39;
<br>make: *** [all-recursive] Error 1
<br>
<br>Could somebody direct me from this point on to find the point where I am 
mistaken. Do I strictly need gcc 4.02? Or there is another workaround to 
this problem...
<br>
<br>Thanks for your help and time in advance.
<br>
<br>Umut
<br>
<br>
</div>

------=_Part_65444_25582659.1218363775725--

--===============1500385186==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
--===============1500385186==--