From: "Dr Ivan D. Reid" <Ivan.Reid@brunel.ac.uk>
Subject: Re: g++ optimisations in AlphaLinux
Date: Fri, 2 Dec 2005 08:12:25 +0000 (UTC) [thread overview]
Message-ID: <slrndp00f9.1dk.Ivan.Reid@loki.brunel.ac.uk> (raw)
In-Reply-To: DfGjf.379$f41.301@tornado.rdc-kc.rr.com
On Thu, 01 Dec 2005 17:18:27 GMT, DiskMan <nobody@thewheel.com>
wrote in <DfGjf.379$f41.301@tornado.rdc-kc.rr.com>:
> Switzerland? To work!?!? Are they hiring!?!?!
No. Not me at least. For at least two reasons, the mundane being
that I'm not a national of a CERN member state (tho' I am eligible to apply
for UK nationality now, should I be so daft). The other being that I've
already worked in .ch for 13 years, with the last 8 or so being an active
search for a job elsewhere than "East Germany with money" or "arguably the
last police state in Europe" (Newsweek). I ended up taking a 45% salary cut
to work in London, since the third option was to be unemployed in Oz.
One week over there in 7-8 is still a drag at times. :-/
> 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!
ivan@SuperPC:~$ g++ --version
g++ (GCC) 3.3.5 (Debian 1:3.3.5-13)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Let's see: I believe my last effort was to pull accross the sources
with something like
cvs -d :pserver:anonymous@alien.ssl.berkeley.edu:/home/cvs/cvsroot checkout boinc
then IIRC in the boinc directory I did
$ ./_autosetup
$ ./configure --disable-server
$ make
Then similar in seti_boinc after unpacking
seti_boinc-client-cvs-2005-11-26.tar
> I was getting this LONG error!
> make[2]: Entering directory
> `/usr2/www/pub/alpha-RH7/scientific/seti_boinc-clients/boinc/api'
> if ccache
> g++-3.2.3 -DHAVE_CONFIG_H -I. -I. -I.. -fPIC -DPIC -I../lib -I../api -I../d
> b -I../client -I../tools -I../sched -O5 -finline -fstrict-aliasing -fomit-fr
> ame-pointer -funroll-loops -finline-functions -fcse-follow-jumps -mieee -w -
> pipe -mtune=ev56 -lots -pthread -fPIC -DPIC -I../lib -I.
> ./api -I../db -I../client -I../tools -I../sched -O5 -finline -fstrict-aliasi
> ng -fomit-frame-pointer -funroll-loops -finline-functions -fcse-follow-jumps
> -mieee -w -pipe -mtune=ev56 -lots -pthread -O5 -finline
> -fstrict-aliasing -funroll-loops -fstrength-reduce -mtune=ev56 -w -pipe -D_B
> SD_SOURCE -I/usr/X11R6/include -L/usr/X11R6/lib -I/usr/X11R6/include/GL -lot
> s -MT boinc_api.o -MD -MP -MF ".deps/boinc_api.Tpo" -c -o boinc_api.o
> boinc_api.C; \
> then mv -f ".deps/boinc_api.Tpo" ".deps/boinc_api.Po"; else rm -f
> ".deps/boinc_api.Tpo"; exit 1; fi
> In file included from /usr/include/c++/3.2.3/algorithm:66,
> from ../lib/std_fixes.h:56,
> from ../config.h:417,
> from boinc_api.C:30:
> /usr/include/c++/3.2.3/bits/stl_algobase.h:149: new declaration
> `template<class
> _Tp> const _Tp& std::min(const _Tp&, const _Tp&)'
> ../lib/std_fixes.h:35: ambiguates old declaration `template<class T> T
> std::min(const T&, const T&)'
/usr/include/c++/3.3/bits/stl_algobase.h has:
template<typename _Tp>
inline const _Tp&
min(const _Tp& __a, const _Tp& __b)
{
// concept requirements
__glibcpp_function_requires(_LessThanComparableConcept<_Tp>)
//return __b < __a ? __b : __a;
if (__b < __a) return __b; return __a;
}
boinc/lib/std_fixes.h has:
#ifndef HAVE_STD_MIN
namespace std {
#ifdef min
#undef min
#endif
template <typename T>
inline T min(const T &a, const T &b) {
return ((a<b)?a:b);
}
}
#endif /* HAVE_STD_MIN */
I'm not knowledgeable enough on templates to spot the incompatability;
if neither of these are different from what you have, I'd suspect the
generation of the HAVE_STD_MIN flag, etc.
--
Ivan Reid, Electronic & Computer Engineering, ___ CMS Collaboration,
Brunel University. Ivan.Reid@[brunel.ac.uk|cern.ch] Room 40-1-B12, CERN
KotPT -- "for stupidity above and beyond the call of duty".
next prev parent reply other threads:[~2005-12-02 8:12 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
2005-12-01 18:51 ` DiskMan
2005-12-02 8:12 ` Dr Ivan D. Reid [this message]
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