JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for CCPNMR Archives


CCPNMR Archives

CCPNMR Archives


CCPNMR@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

CCPNMR Home

CCPNMR Home

CCPNMR  June 2010

CCPNMR June 2010

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Aria 2.3 & CNS 1.21 on OSX 10.6.3 - Solved

From:

"Patel, Pryank" <[log in to unmask]>

Reply-To:

CcpNmr software mailing list <[log in to unmask]>

Date:

Thu, 10 Jun 2010 01:19:28 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (207 lines)

Hi all,
Thanks to everybody who has contributed over the past couple of days on the various bulletin boards I have posted to. As is always the case, the solution was quite simple but completely passed me by. I'm going to use Mac inexperience as an excuse here... :-)

So the original problem was not being able to compile a working executable of CNS v1.21 from source on Mac OSX 10.6.3. The reason for compiling from source is because in order to run CNS from Aria 2.3, a program used in NMR automated peak assignment and structure calculation, CNS needs to be recompiled with Aria-specific source code. With fink-installed gfortran/gcc 4.5 compilers, CNS compiles and links with no warnings or errors, but fails at the execution stage. With fink-installed 4.4, CNS compiles successfully but when executed produces a simple "segmentation fault" message.

The problem here is the fink-installed compilers. Harry Powell and Daniel O'Donovan have guided me to the light - the High Performance Computing for Mac OS X webpage (http://hpc.sourceforge.net) has binaries for the gcc 4.5 compiler package, which installs in /usr/local/. Compilation with this compiler set produces a working CNS executable. The only other modification is to copy the Makefile.header.2.gfortran file from cns_solve_1.21/instlib/machine/supported/intel-x86_64bit-linux to cns_solve_1.21/instlib/machine/supported/intel-x86_64bit-linux. Compile with 'make install compiler=gfortran', making sure that /usr/local/path is in $PATH.

With the Intel 11.1 compilers (and I used the evaluation version here), CNS compiles successfully, but fails on execution. Thanks to Axel Brunger and Benjamin Bardiaux, for sharing that the Intel fortran compiler is not compatible with Xcode 3.2.2, although it does not seem to break gfortran in this case. A little more information can be found here:

http://software.intel.com/en-us/articles/intel-fortran-for-mac-os-x-incompatible-with-xcode-322/

Thanks goes to Benjamin Bardiaux for the link. The webpage suggests two fixes. One is to add the '-use-asm' option to both the compilation and linker lines. This seems to work, and produces a working CNS executable. Not until now did I consider Xcode to be the problem, and at no point over the past few days did I come across or register the intel webpage linked above during my hours of google-trawling.

The other option is to reinstall Xcode 3.2.1, which I assume is the version Axel Brunger said he reinstalled. This can be downloaded from the Mac Development Centre. Then reinstall the Intel fortran compiler. I have not tried this option, since the first option seems to have worked quite well.

Thanks once again,
Pryank


On 7 Jun 2010, at 14:47, Pryank Patel wrote:

> 
> Hi All,
> Just a quick update: Using fink, I have now installed the gcc45 compiler 
> package (the latest version), and recompiled cns. Initially, it seemed 
> to work - it successfully compiled and completed the linking stage. 
> However, when I try to execute cns, either with './cns' or by running 
> one of the test scripts, I get the following:
> 
>  dmemory error code = ******
>  %ALLHP error encountered: fatal coding error
>    (CNS is in mode: SET ABORT=NORMal END)
>  *****************************************************
>  ABORT mode will terminate program execution.
>  *****************************************************
>  Program will stop immediately.
>           ============================================================
>            Maximum dynamic memory allocation:           0 bytes
>            Maximum dynamic memory overhead:             8 bytes
>            Program started at:  on
>            Program stopped at: 14:32:05 on 07-Jun-2010
>            CPU time used:       0.0036 seconds
>           ============================================================
> 
> Perhaps I was a bit hasty in going to gcc45, I probably should have 
> tried gcc43 or gcc44 first.
> 
> Any suggestions? I'm thinking it's just a matter of modifying the 
> compiler/linker options.
> 
> Best wishes,
> Pryank
> 
> 
> 
> On 07/06/10 09:15, Patel, Pryank wrote:
>> Hi Dan,
>> Yes, it is a 64-bit Intel Core 2 duo.
>> 
>> I did try gfortran. At the bottom of my first email, I listed the errors that I had. It seems to fail at the linking stage (these were with the undefined symbols to _csatty_, etc). Perhaps I'm just missing some linking options?
>> 
>> I also sent the queries to the Aria and CNS lists, so some people may be receiving my query three times...
>> 
>> Pryank
>> 
>> 
>> On 6 Jun 2010, at 22:58, Daniel O'Donovan wrote:
>> 
>> 
>>> Hi Pryank,
>>> 
>>> When I get to the lab tomorrow I'll have a crack at compiling all this and let you know my results. Two things that stand out;
>>> 
>>> First - 64 bit vs 32 bit is probably quite important here. As I take it, you're compiling on a new Mac - and so I expect that it's 64 bit (ie a Core 2 duo rather than a Core duo - like my old MacBook). Is that so?
>>> 
>>> Secondly - have you tried gfortran rather than g77? g77 is now legacy and not very well supported, a lot of my FORTRAN pain has derived from g77! gfortran is usually a simple drop-in replacement and available through fink. If you're not using fink then this website comes with recommendations: http://hpc.sourceforge.net/
>>> 
>>> I'm afraid I can't make much of the errors from here, but people on the CNS or ARIA lists might be of more use to you (CCPN Analysis provides more of a 'front end' interface into ARIA rather than bothering with the intricacies of installing it).
>>> 
>>> Hoping that helps,
>>> 
>>> Dan
>>> 
>>> 
>>> On 6 Jun 2010, at 21:55, Patel, Pryank wrote:
>>> 
>>> 
>>>> Hi All,
>>>> As a follow-up, I forgot to mention in my previous email message on this subject that I have also attempted to compile cns_solve 1.21, with aria 2.3 sources, with the evaluation version of ifort and icc, and seems to compile ok. But when I run the generated executable, the following error message appears:
>>>> 
>>>> forrtl: severe (174): SIGSEGV, segmentation fault occurred
>>>> Image              PC                Routine            Line        Source
>>>> cns                000000010029C7BE  _xtarmoin_               1813  xdeclare.f
>>>> cns                000000010029C68E  _xreres_                  764  xdeclare.f
>>>> cns                000000010003E04A  _MAIN__                   167  cns.f
>>>> cns                000000010000184C  Unknown               Unknown  Unknown
>>>> cns                00000001000017E4  Unknown               Unknown  Unknown
>>>> 
>>>> I did make sure I ran the command 'limit stacksize unlimited' as well.
>>>> 
>>>> Apologies for not including that in my original email.
>>>> 
>>>> Best wishes,
>>>> Pryank
>>>> 
>>>> 
>>>> On 6 Jun 2010, at 19:52, Patel, Pryank wrote:
>>>> 
>>>> 
>>>>> Hi All,
>>>>> Firstly, sincere apologies if this question has been asked and answered before, but I am looking for some clarification. I have recently acquired a Mac, and was hoping to be able to run Aria 2.3 with CNS 1.21 and CCPN Analysis projects for NMR structure calculation, and I'm wondering if this is at all possible.
>>>>> 
>>>>> First of all, I am unable to compile cns v1.21 source using gcc 4.2.1 (g77 compiler)- there are various errors, including:
>>>>> 
>>>>> compiling: angledb.f
>>>>> /var/folders/ZR/ZR2UPrAaGUOKd1MtnwJ7xU+++TI/-Tmp-//ccX0UDSm.s:11277:FATAL:Symbol L_angledbinit_$stub already defined.
>>>>> make[3]: *** [angledb.o] Error 1
>>>>> 
>>>>> and:
>>>>> 
>>>>> xscale.f: In subroutine `xsclsq2':
>>>>> xscale.f:850:
>>>>>        &                    MAXSET,TGSET,HPSFSET,TYPESF,ERROR,
>>>>>                            1
>>>>> xscale.f:868: (continued):
>>>>>         DOUBLE COMPLEX ARG(maxset)
>>>>>                            2
>>>>> Invalid declaration of or reference to symbol `maxset' at (2) [initially seen at (1)]
>>>>> xscale.f:850:
>>>>>        &                    MAXSET,TGSET,HPSFSET,TYPESF,ERROR,
>>>>>                            1
>>>>> xscale.f:874: (continued):
>>>>> 
>>>>> etc etc, resulting in:
>>>>> 
>>>>> compiling: xyzparse.f
>>>>> 
>>>>> compiling: dmemory.c
>>>>> 
>>>>> compiling: machine_c.c
>>>>> make[3]: Target `../bin/cns_solve' not remade because of errors.
>>>>> make[2]: *** [cns_solve] Error 2
>>>>> make[1]: *** [cns_solve] Error 2
>>>>> 
>>>>> As I understand it, it is difficult to compile CNS under Mac OSX, which is why I have the CNS Mac binary installed. However, I also understand that the Mac CNS binary cannot be used with Aria since the specific Aria routines (eg: the vean statements) are not running under Mac OSX with Intel (according to the aria installation notes), presumably because the Aria fortran sources are not part of the CNS binary(?). This also shows up when trying to running Aria with the CNS binary, with the following error messages:
>>>>> 
>>>>> CNSsolve>       vean class vea1 force $k_bor_1 $k_cen_1 end
>>>>> %CNSsolve-ERR: unrecognized command:
>>>>>       vean
>>>>>       ^^^^
>>>>> %CNSsolve-ERR: unrecognized command:
>>>>>       vean class
>>>>>            ^^^^^
>>>>> %CNSsolve-ERR: unrecognized command:
>>>>>       vean class vea1
>>>>>                  ^^^^
>>>>> 
>>>>> etc etc, and I obviously cannot re-compile the CNS executable because of the above compilation errors (and others).
>>>>> 
>>>>> I then tried compilation using gfortran instead of g77, since I compiled successfully under linux with gfortran, albeit with some modifications. The fortran sources seemed to compile successfully without errors, but then fails at the linking stage:
>>>>> 
>>>>> compiling: xyzparse.f
>>>>> 
>>>>> compiling: dmemory.c
>>>>> 
>>>>> compiling: machine_c.c
>>>>> 
>>>>> linking: cns_solve
>>>>> 
>>>>> Undefined symbols:
>>>>>  "_csatty_", referenced from:
>>>>>      _vchktt_ in machine_f.o
>>>>>  "_outbuf_", referenced from:
>>>>>      _vopen_ in machine_f.o
>>>>>  "_cnscalloc_", referenced from:
>>>>>      _chkalloc_ in heap.o
>>>>>  "_cnsqalloc_", referenced from:
>>>>>      _qryalloc_ in heap.o
>>>>>  "_cns0alloc_", referenced from:
>>>>>      _inithp_ in heap.o
>>>>>  "_cnsqptrsz_", referenced from:
>>>>>      _cnsheader_ in cns.o
>>>>>  "_cnsialloc_", referenced from:
>>>>>      _chkalloc_ in heap.o
>>>>> ld: symbol(s) not found
>>>>> collect2: ld returned 1 exit status
>>>>> 
>>>>> I have also read somewhere (although I don't know if this is true for the current version) that Aria on Mac cannot do torsional angle dynamics, and that modifications to sa_ltad_hightemp4.cns and sa_ltad_cool1.cns are required, changing tcoupling=true to vscaling=true (see http://daffy.uah.edu/nmr/private/AnalysisMods.html).
>>>>> 
>>>>> So, I guess I'm looking for some answers to the following:
>>>>> 1) Can CNS be compiled using g77/gfortran/gcc on Mac OSX 10.6.3? If so, can anyone advise on how to do this?
>>>>> 2) If CNS cannot be compiled on Mac OSX, can I run Aria as I would like? If so, how?
>>>>> 
>>>>> Many thanks in advance for any help/suggestions.
>>>>> 
>>>>> Best wishes,
>>>>> Pryank
>>>>> 
>>>>> 
>>>>> 
>>>> 
>>> Daniel O'Donovan
>>> [log in to unmask]
>>> 
>> 
> <pryank.vcf>

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
November 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004
July 2004
June 2004
May 2004
April 2004
March 2004
February 2004
January 2004
December 2003
November 2003
October 2003
September 2003


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager