Re: [AMBER] DihedralSearch.cpp:53: error: unknown escape sequence '\*'

From: Marek Maly <marek.maly.ujep.cz>
Date: Thu, 04 Jul 2013 16:47:03 +0200

Hi Jason and Jan-Philip,

thanks for your explanations/advices.

Regarding to my motivation for the possibility
to move to more actual gcc than the default is that
in some cases (compilation of different codes) I had problems
(the most recently e.g. with gamess), but also with Amber etc.

So from my experience follow that to have the possibility to
update gcc might be very useful to be even able to compile some software
 from sources which are perhaps written using some new functions
or syntax rules acceptable for the actual compiler and not for the old one.

To be frank it never came on my mind to update gcc just to get some
significant increase of performance of the resulting binaries.

   Best wishes,

      Marek





Dne Thu, 04 Jul 2013 16:34:44 +0200 Jason Swails <jason.swails.gmail.com>
napsal/-a:

> On Thu, Jul 4, 2013 at 9:56 AM, Marek Maly <marek.maly.ujep.cz> wrote:
>
>> Hi Jason,
>>
>> just for the curiosity.
>>
>> Which is the easest way to upgrade gcc on RedHat like distributions
>> (in my case CentOS).
>>
>> When I try to use yum for those purposes e.g. using commands
>>
>> yum upgrade
>>
>> OR
>>
>> yum install gcc.x86_64
>>
>> etc.
>>
>>
>> I get just gcc-4.4.7.
>>
>> So maybe I have to download some proper gcc/yum repository which can yum
>> use to
>> download and install the latest stable gcc ?
>>
>
> In my experience, package managers tend to avoid allowing this. I have
> experience with several -- aptitude (Debian/Ubuntu), yum (RHEL, Fedora,
> CentOS), zypper (SUSE), MacPorts (OS X), and portage (Gentoo). Only
> portage and MacPorts provide simple mechanisms for maintaining multiple
> installations and versions of GCC on them. The goal of the Gentoo and
> MacPorts project is to keep as up-to-date as possible with software
> releases.
>
> The other OSes, however, are built with stability in mind. Typically
> updates to those software repositories are bugfix-release only, and the
> provided versions are often old (and very well-tested and stable). As a
> result, they tend not to offer many GCC versions that can be installed
> and
> maintained side-by-side (most I think offer only one). Therefore, if you
> want the latest compilers you are stuck with either upgrading your OS to
> a
> version that provides the compiler version you want or building them
> yourself.
>
> Of course there is still the way to install gcc "manually" and then reset
>> properly symbolic links g++,cc,gcc,c++ in /usr/bin directory so that
>> they point to the new version of gcc binaries. But I guess there should
>> be
>> also some automatic/more comfortable way to do this. I am just confused
>> that default yum behavior do not allow this.
>>
>
> As I said, MacPorts and Gentoo's Portage provide easy means to do this:
>
> Mac OS X:
> sudo port select gcc mp-gcc4X
>
> Portage
> gcc-config <#>
>
> In general, though, unless a newer compiler implements functionality that
> you require (from C++11, for instance), there's very little reason to go
> through the trouble of upgrading. The GCC project focuses on
> implementing
> new features of the language standards in a stable product moreso than on
> optimization performance.
>
> HTH,
> Jason
>


-- 
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Thu Jul 04 2013 - 08:30:03 PDT
Custom Search