From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: 111c93,8c1d1ffdb28bdb34 X-Google-Attributes: gid111c93,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!news.glorb.com!newsfeed-east.nntpserver.com!nntpserver.com!statler.nntpserver.com!news-west.rr.com!news.rr.com!news-server.columbus.rr.com!cyclone2.kc.rr.com!news2.kc.rr.com!tornado.rdc-kc.rr.com.POSTED!53ab2750!not-for-mail From: " DiskMan" Newsgroups: comp.os.linux.alpha References: Subject: Re: g++ optimisations in AlphaLinux X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Message-ID: Date: Thu, 01 Dec 2005 18:51:02 GMT NNTP-Posting-Host: 65.28.70.117 X-Complaints-To: abuse@rr.com X-Trace: tornado.rdc-kc.rr.com 1133463062 65.28.70.117 (Thu, 01 Dec 2005 12:51:02 CST) NNTP-Posting-Date: Thu, 01 Dec 2005 12:51:02 CST Organization: Road Runner High Speed Online http://www.rr.com Xref: g2news1.google.com comp.os.linux.alpha:592 Alright, I'll REM it out and see if that does the trick... Thanks... If it does, I'll go ahead and roll it into a diff... Will L G "Staffan Tjernstrom" wrote in message news:pan.2005.12.01.18.01.44.248321@staffan.tjernstrom.name... > DiskMan scribbled something like this, on Thu, 01 Dec 2005 17:18:27 > +0000: > > > Switzerland? To work!?!? Are they hiring!?!?! > > > > I was wondering, what version of GCC did you use to build BOINC? I tried > > GCC-4.0.1 [I know, wishful thinking] and GCC-3.2.3 and neither of them work! > > > > I was getting this LONG error! > > make[2]: Entering directory > > /usr/include/c++/3.2.3/bits/basic_string.h:974: instantiated from `bool > > std::operator==(const std::basic_string<_CharT, _Traits, _Alloc>&, const > > std::basic_string<_CharT, _Traits, _Alloc>&) [with _CharT = char, _Traits = > > std::char_traits, _Alloc = std::allocator]' > > ../lib/util.h:66: instantiated from here > > /usr/include/c++/3.2.3/bits/basic_string.h:894: call of overloaded `min( > > size_t&, size_t&)' is ambiguous > > ../lib/std_fixes.h:35: candidates are: T std::min(const T&, const T&) [with > > T = > > size_t] > > /usr/include/c++/3.2.3/bits/stl_algobase.h:149: const _Tp& > > std::min(const _Tp&, const _Tp&) [with _Tp = size_t] > > (without having played a lot with templates) > Looks like the BOINC source is redefining the min algorithm to return a > non-const value in ../lib/std_fixes.h:35. Not sure why the compiler can't > choose between the 2 in either case, but anything is possible I guess in > the mess that's templates. > > The canonical declarations for min (STL Tutorial & Reference Guide, 2nd > Ed, Musser/Serge/Dani) would appear to be: > > template > const T& min( const T& a, const T& b); > > template > const T& min( const T& a, const T& b, Compare comp); > > Gut guess is to comment out the re-define (as well as it's code), and see > if that works.