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]
|