Re: install problems - ../../mtl/mtl.h:236: error: dependent-name `mtl::dim_n<Vector>::RET' is parsed as a non-type, but instantiation yields atype...
Peter Gottschling <[email protected]> Mon, 26 Mar 2007 10:42:26 +0200
| Newsgroups | gmane.comp.lib.mtl.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============1176686349== Content-Type: multipart/alternative; boundary=Apple-Mail-13--977148678 --Apple-Mail-13--977148678 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Dear Jeff, As Gunter said this are known problems. More precisely, old compilers tolerated such potential ambiguities (and usually generated the right code ;-), anyway) where newer compilers are stricter. I should have fixed this since a long time and in fact, I sorted out a whole lot of such compiler complaints months ago. On one day this week, I will go through the sources and look what I find and apply all the patches sent to the mailing list by nice people. Hopefully, these (simple but annoying) problems will be gone then. I will post a new distribution then and mail it to the list. Best, Peter P.S.: I'm pleased to learn that MTL is used at UofC. I lived for 3 months in the iHouse in Hyde park. On Mar 25, 2007, at 12:36 AM, Jeff Hammond wrote: > Dear MTL Friends, > > I attempted to install MTL on my Xeon EM64T machine with no > special options: > >> > tar -xzvf mtl-2.1.2-22.tar.gz >> > ./configure --prefix=/usr/local/mtl >> > make > > and got this error: > > make[2]: Entering directory > `/usr/local/mtl/mtl-2.1.2-22/contrib/examples' > g++ -DHAVE_CONFIG_H -I. -I. -I../../mtl -I../.. > -ftemplate-depth-30 -Wall -c abs_sum.cc > ../../mtl/mtl.h: In function `typename > mtl::linalg_traits<Linalg>::magnitude_type mtl::one_norm(const > Vector&, mtl::oned_tag) [with Vector = > mtl::external_vec<double, 4, unsigned int>]': > ../../mtl/mtl.h:576: instantiated from `typename > mtl::linalg_traits<Linalg>::magnitude_type mtl::one_norm(const > LinalgObj&) [with LinalgObj = mtl::external_vec<double, 4, > unsigned int>]' > abs_sum.cc:20: instantiated from here > ../../mtl/mtl.h:236: error: dependent-name ` > mtl::dim_n<Vector>::RET' is parsed as a non-type, but > instantiation yields atype > ../../mtl/mtl.h:236: note: say `typename > mtl::dim_n<Vector>::RET' if a type is meant > make[2]: *** [abs_sum.o] Error 1 > make[2]: Leaving directory > `/usr/local/mtl/mtl-2.1.2-22/contrib/examples' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/mtl/mtl-2.1.2-22/contrib' > make: *** [all-recursive] Error 1 > > Neither I, a C++ amateur, nor my office mate, who knows his > stuff in this regard, have a clue of how to resolve this problem. > > This is my machine: > uname -a > Linux coulson 2.6.9-42.0.10.ELsmp #1 SMP Fri Feb 16 17:13:42 > EST 2007 x86_64 x86_64 x86_64 GNU/Linux > > I attached a TGZ file with the results of 'env', 'configure', > 'make' and 'g++ -v'. > > I also tried and failed repeatedly to use the Intel C++ > compiler instead but changing every single reference to 'g++' > in every file failed to do the trick and I became confused and > frustrated at this. > > Thanks for any help you can provide. > > Jeff Hammond > The University of Chicago > <output.tgz> > _______________________________________________ > This list is archived at http://www.osl.iu.edu/MailArchives/mtl-devel/ ------------ Peter Gottschling Research Associate Open Systems Laboratory Indiana University 135 Lindley Hall Bloomington, IN 47405 Tel.: +1-812-855-3608 Fax: +1-812-856-0853 http://www.osl.iu.edu/~pgottsch --Apple-Mail-13--977148678 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 <HTML><BODY style=3D"word-wrap: break-word; -khtml-nbsp-mode: space; = -khtml-line-break: after-white-space; ">Dear Jeff,<DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>As Gunter said this are = known problems.=A0 More precisely, old compilers tolerated such = potential ambiguities (and usually generated the right code ;-), anyway) = where newer compilers are stricter.=A0 I should have fixed this since a = long time and in fact, I sorted out a whole lot of such compiler = complaints months ago.=A0 On one day this week, I will go through the = sources and look what I find and apply all the patches sent to the = mailing list by nice people.=A0 Hopefully, these (simple but annoying) = problems will be gone then.=A0 I will post a new distribution then and = mail it to the list.</DIV><DIV><BR = class=3D"khtml-block-placeholder"></DIV><DIV>Best,</DIV><DIV>Peter</DIV><D= IV><BR class=3D"khtml-block-placeholder"></DIV><DIV>P.S.: I'm pleased to = learn that MTL is used at UofC.=A0 I lived for 3 months in the iHouse in = Hyde park.</DIV><DIV><BR><DIV><DIV>On Mar 25, 2007, at 12:36 AM, Jeff = Hammond wrote:</DIV><BR class=3D"Apple-interchange-newline"><BLOCKQUOTE = type=3D"cite"><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">Dear MTL Friends,</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I = attempted to install MTL on my Xeon EM64T machine with no</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">special options:</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: = 14px; "><BR></DIV> <BLOCKQUOTE type=3D"cite"><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">> tar = -xzvf mtl-2.1.2-22.tar.gz</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">> = ./configure --prefix=3D/usr/local/mtl</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">> = make</DIV> </BLOCKQUOTE><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; = "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">and got this error:</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make[2]: = Entering directory</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; = ">`/usr/local/mtl/mtl-2.1.2-22/contrib/examples'</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">g++ -DHAVE_CONFIG_H -I. -I. -I../../mtl <SPAN = class=3D"Apple-converted-space">=A0 </SPAN>-I../..</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">-ftemplate-depth-30 -Wall -c abs_sum.cc</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">../../mtl/mtl.h: In function `typename</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">mtl::linalg_traits<Linalg>::magnitude_type = mtl::one_norm(const</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; ">Vector&, mtl::oned_tag) = [with Vector =3D</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">mtl::external_vec<double, 4, = unsigned int>]':</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; ">../../mtl/mtl.h:576: <SPAN = class=3D"Apple-converted-space">=A0 </SPAN>instantiated from = `typename</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; = ">mtl::linalg_traits<Linalg>::magnitude_type = mtl::one_norm(const</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; ">LinalgObj&) [with = LinalgObj =3D mtl::external_vec<double, 4,</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">unsigned int>]'</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = ">abs_sum.cc:20: <SPAN class=3D"Apple-converted-space">=A0 = </SPAN>instantiated from here</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; = ">../../mtl/mtl.h:236: error: dependent-name `</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">mtl::dim_n<Vector>::RET' is parsed as a = non-type, but</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">instantiation yields = atype</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">../../mtl/mtl.h:236: note: say = `typename</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">mtl::dim_n<Vector>::RET' = if a type is meant</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; ">make[2]: *** [abs_sum.o] = Error 1</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">make[2]: Leaving = directory</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; = ">`/usr/local/mtl/mtl-2.1.2-22/contrib/examples'</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">make[1]: *** [all-recursive] Error 1</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">make[1]: Leaving directory = `/usr/local/mtl/mtl-2.1.2-22/contrib'</DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">make: = *** [all-recursive] Error 1</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: = 14px; "><BR></DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">Neither I, a C++ amateur, nor my = office mate, who knows his</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">stuff in this = regard, have a clue of how to resolve this problem.</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">This is = my machine:<SPAN class=3D"Apple-converted-space">=A0 </SPAN>> uname = -a</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: = 0px; margin-left: 0px; ">Linux coulson 2.6.9-42.0.10.ELsmp #1 SMP Fri = Feb 16 17:13:42</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">EST 2007 x86_64 x86_64 x86_64 = GNU/Linux</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">I attached a TGZ file with the results of 'env', = 'configure',</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">'make' and 'g++ -v'.</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">I also = tried and failed repeatedly to use the Intel C++</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">compiler instead but changing every single reference = to 'g++'</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">in every file failed to do the = trick and I became confused and</DIV><DIV style=3D"margin-top: 0px; = margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">frustrated at = this.</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><BR></DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; ">Thanks for any help you can provide.</DIV><DIV = style=3D"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; = margin-left: 0px; min-height: 14px; "><BR></DIV><DIV style=3D"margin-top: = 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Jeff = Hammond</DIV><DIV style=3D"margin-top: 0px; margin-right: 0px; = margin-bottom: 0px; margin-left: 0px; ">The University of = Chicago<SPAN><DIV><output.tgz></DIV></SPAN>_________________________= ______________________</DIV><DIV style=3D"margin-top: 0px; margin-right: = 0px; margin-bottom: 0px; margin-left: 0px; ">This list is archived at <A = href=3D"http://www.osl.iu.edu/MailArchives/mtl-devel/">http://www.osl.iu.e= du/MailArchives/mtl-devel/</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN = class=3D"Apple-style-span" style=3D"border-collapse: separate; = border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; = font-size: 12px; font-style: normal; font-variant: normal; font-weight: = normal; letter-spacing: normal; line-height: normal; text-align: auto; = -khtml-text-decorations-in-effect: none; text-indent: 0px; = -apple-text-size-adjust: auto; text-transform: none; orphans: 2; = white-space: normal; widows: 2; word-spacing: 0px; "><P style=3D"margin: = 0.0px 0.0px 0.0px 0.0px"><FONT face=3D"Helvetica" size=3D"3" = style=3D"font: 12.0px Helvetica">------------</FONT></P><P = style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT face=3D"Helvetica" = size=3D"3" style=3D"font: 12.0px Helvetica">Peter = Gottschling</FONT></P><P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT = face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">Research = Associate</FONT></P><P style=3D"margin: 0.0px 0.0px 0.0px 0.0px"><FONT = face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px Helvetica">Open = Systems Laboratory</FONT></P><P style=3D"margin: 0.0px 0.0px 0.0px = 0.0px"><FONT face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px = Helvetica">Indiana University</FONT></P><P style=3D"margin: 0.0px 0.0px = 0.0px 0.0px"><FONT face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px = Helvetica">135 Lindley Hall</FONT></P><P style=3D"margin: 0.0px 0.0px = 0.0px 0.0px"><FONT face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px = Helvetica">Bloomington, IN 47405</FONT></P><P style=3D"margin: 0.0px = 0.0px 0.0px 0.0px"><FONT face=3D"Helvetica" size=3D"3" style=3D"font: = 12.0px Helvetica">Tel.: +1-812-855-3608<SPAN = class=3D"Apple-converted-space">=A0</SPAN><SPAN = class=3D"Apple-converted-space">=A0<SPAN = class=3D"Apple-converted-space">=A0</SPAN></SPAN>Fax: = +1-812-856-0853</FONT></P><P style=3D"margin: 0.0px 0.0px 0.0px = 0.0px"><FONT face=3D"Helvetica" size=3D"3" style=3D"font: 12.0px = Helvetica"><A = href=3D"http://www.osl.iu.edu/~pgottsch">http://www.osl.iu.edu/~pgottsch</= A></FONT></P><BR class=3D"Apple-interchange-newline"></SPAN> = </DIV><BR></DIV></BODY></HTML>= --Apple-Mail-13--977148678-- --===============1176686349== 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/ --===============1176686349==--