From: Staffan Tjernstrom <thisisafakeaddress@staffan.tjernstrom.name>
Subject: Re: g++ optimisations in AlphaLinux
Date: Thu, 01 Dec 2005 12:01:45 -0600 [thread overview]
Message-ID: <pan.2005.12.01.18.01.44.248321@staffan.tjernstrom.name> (raw)
In-Reply-To: DfGjf.379$f41.301@tornado.rdc-kc.rr.com
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<char>, _Alloc = std::allocator<char>]'
> ../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 <typename T>
const T& min( const T& a, const T& b);
template <typename T, typename Compare>
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.
next prev parent reply other threads:[~2005-12-01 18:01 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-27 11:03 g++ optimisations in AlphaLinux Dr Ivan D. Reid
2005-11-27 12:35 ` Måns Rullgård
2005-11-27 13:33 ` Dr Ivan D. Reid
2005-11-27 14:10 ` Dr Ivan D. Reid
2005-11-27 14:55 ` Måns Rullgård
2005-11-27 15:50 ` Dr Ivan D. Reid
2005-11-27 16:39 ` Måns Rullgård
2005-11-27 17:07 ` Dr Ivan D. Reid
2005-11-27 17:39 ` Måns Rullgård
2005-11-28 21:09 ` DiskMan
2005-11-28 23:45 ` Dr Ivan D. Reid
2005-11-29 3:08 ` DiskMan
2005-11-29 7:57 ` Dr Ivan D. Reid
2005-11-30 23:30 ` DiskMan
2005-12-01 15:14 ` Dr Ivan D. Reid
2005-12-01 17:18 ` DiskMan
2005-12-01 18:01 ` Staffan Tjernstrom [this message]
2005-12-01 18:51 ` DiskMan
2005-12-02 8:12 ` Dr Ivan D. Reid
2005-12-03 1:25 ` There is a Compaq C build of Setiathome_boinc DiskMan
2005-12-05 11:44 ` Dr Ivan D. Reid
2005-12-12 2:37 ` Dr Ivan D. Reid
2005-12-15 9:02 ` DiskMan
2005-12-16 11:00 ` Dr Ivan D. Reid
2005-12-16 19:12 ` DiskMan
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox