Re: ITL install problems

Bastian Goldluecke <[email protected]>
Newsgroups gmane.comp.lib.mtl.devel
Organization Max-Planck-Institut fuer Informatik
Message-ID <[email protected]>
Hi Rolf,

I had exactly the same problem when I tried to compile ITL on the new SuSE 8.2 
with gcc 3.2.2, on previous versions it worked perfectly. In fact, my old 
mail should be somewhere in the archives, but for your convenience, I will 
repeat what I did to get ITL up and running on my system:

- Installed the patch attached to this mail (using the "patch" command with 
some weird parameters I cannot remember right now, see the man pages).

- Used "gmake install" instead of "make install" to get rid of the problems 
with automake.

- Corrected the access permissions of the subdirectories in 
/usr/local/include/itl, which could only be accessed by root after the 
installation.

Afterwards, I was able to compile my old code which used the ITL, but as far 
as I remember, compilation of the examples still didn't work.

Good luck,
Bastian.



On Wednesday 14 May 2003 09:14, Rolf Wester wrote:
> Hi,
>
> I would like to use ITL together with MTL. The MTL installation worked
> fine but I had problems with the ITL installation.
> After:
>
> ./configure --prefix=/home/wester/usr/libs
> --with-mtl=/home/wester/usr/libs/mtl/include
>
> I typed:
>
> make install
>
> and got:
>
> cd . && automake --foreign --include-deps Makefile
> configure.in:18: your implementation of AM_INIT_AUTOMAKE comes from an
> configure.in:18: old Automake version.  You should recreate aclocal.m4
> configure.in:18: with aclocal and run automake again.
> make: *** [Makefile.in] Error 1
>
> I then ran aclocal and automake and tried again:
>
> ./configure --prefix=/home/wester/usr/libs
> --with-mtl=/home/wester/usr/libs/mtl/include
> make install
>
> and got  this:
>
> cd . && autoconf
> configure.in:225: error: AC_LANG: unknown language:
> ../autoconf/lang.m4:124: _AC_LANG_SET is expanded from...
> ../autoconf/lang.m4:133: AC_LANG is expanded from...
> aclocal.m4:42: AC_ITL_TRY_COMPILE is expanded from...
> configure.in:225: the top level
> make: *** [configure] Error 1
>
>
> Then I tried to simply copy the itl-subdirectory to the install
> directory and compile the gmres example but got the following:
>
> icc -o test -I/home/wester/usr/libs/mtl/include -I/home/wester/usr/libs
> itl_gmres_test.cpp
> itl_gmres_test.cpp
> itl_gmres_test.cpp(85): error: no instance of overloaded function
> "gmres" matches the argument list
>            argument types are: (Matrix, mtl::dense1D<Type, 0>,
> mtl::dense1D<Type, 0>, itl::SSOR<Matrix>::Left,itl::SSOR<Matrix>::Right,
> int,
> itl::noisy_iteration<double>,itl::classical_gram_schmidt<mtl::dense1D<Type,
> 0>>)
>    gmres(A, x, b, precond.left(), precond.right(), restart, iter, orth);
>    ^
>
> compilation aborted for itl_gmres_test.cpp (code 2).  g++ gives a
> similar error message.
>
>
> I would be very appreciative for help to get ITL working on my computer.
>
> Thank you in anticipation.
>
> With kind regards
>
> Rolf Wester
>
> P.S.: autoconf --version  2.53
>           automake --version 1.6.3
>
>
> _______________________________________________
> This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/

_______________________________________________
This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/
itl-gcc3.2.2.patch (text/x-diff, 1.4 KB)
diff -Naur itl-4.0.0-1-orig/itl/interface/detail/mtl_amend.h itl-4.0.0-1/itl/interface/detail/mtl_amend.h
--- itl-4.0.0-1-orig/itl/interface/detail/mtl_amend.h	Fri Oct 26 10:45:44 2001
+++ itl-4.0.0-1/itl/interface/detail/mtl_amend.h	Wed Feb 19 10:37:23 2003
@@ -1,3 +1,13 @@
+
+#ifndef ITL_MTL_AMEND_H
+#define ITL_MTL_AMEND_H
+
+#include <vector>
+
+template <class T>
+class pointer_vector;
+
+
 namespace mtl {
 
   template <class T>
@@ -9,4 +19,16 @@
               magnitude_type;
     };
 
+  template <class T>
+    struct linalg_traits<std::vector<T> > {
+      typedef oned_tag  dimension;
+      typedef dense_tag sparsity;
+      typedef T         value_type;
+      typedef typename number_traits<value_type>::magnitude_type 
+              magnitude_type;
+    };
+
+
 }
+
+#endif // ITL_MTL_AMEND_H
diff -Naur itl-4.0.0-1-orig/itl/interface/detail/mtl_classical_gram_schmidt.h itl-4.0.0-1/itl/interface/detail/mtl_classical_gram_schmidt.h
--- itl-4.0.0-1-orig/itl/interface/detail/mtl_classical_gram_schmidt.h	Fri Oct 26 10:45:44 2001
+++ itl-4.0.0-1/itl/interface/detail/mtl_classical_gram_schmidt.h	Wed Feb 19 10:37:14 2003
@@ -69,6 +69,8 @@
 #include <itl/itl.h>
 #include <itl/itl_tags.h>
 #include <mtl/matrix.h>
+#include <itl/interface/detail/mtl_amend.h> //for linalg_traits of std::vector
+
 
 namespace itl {
   //in parallel envirnment, this is an all-reduce operation
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.