Re: AMBER: problems compiling amber on mac OSX

From: David A. Case <case.scripps.edu>
Date: Fri, 26 Oct 2007 08:48:35 -0700

On Thu, Oct 25, 2007, francesco zonta wrote:
> I did not manage to compile amber on MAC OSX using two different compiler.
>
> if I use f95 this is the result.
>
> Starting installation of Amber9 (serial) at Tue Oct 23 11:15:42 CEST 2007.
> cd lib; make install
> cpp -traditional -P new2oldparm.f > _new2oldparm.f
> f95 -c -O1 -safefp -o new2oldparm.o _new2oldparm.f
> Unrecognised option -safefp passed to ld
> Evaluation trial version of NAGWare Fortran 95 Release 5.1(282)
> Error: _new2oldparm.f: Invalid #line directive
> Warning: _new2oldparm.f, line 400: Unused symbol OUTFIL
> detected at END.<end-of-statement>
> Warning: _new2oldparm.f, line 400: Unused symbol INFIL
> detected at END.<end-of-statement>
> [f95 terminated - errors found by pass 1]
> make[1]: *** [new2oldparm.o] Error 2
> make: *** [serial] Error 2
>
> if I try with g95 the problem is another:
>
> Starting installation of Amber9 (serial) at Tue Oct 23 11:20:32 CEST 2007.
> cd lib; make install
> cpp -traditional -P -xassembler-with-cpp new2oldparm.f > _new2oldparm.f
> g95 -c -O0 -fno-second-underscore -o new2oldparm.o _new2oldparm.f
> /var/tmp//ccwA3Lzw.s:1:Unknown pseudo-op: .machine
> /var/tmp//ccwA3Lzw.s:1:Rest of line ignored. 1st junk character valued 112
> (p).
> /var/tmp//ccwA3Lzw.s:10647:Unknown pseudo-op: .subsections_via_symbols
> make[1]: *** [new2oldparm.o] Error 1
>

Do your compilers work on test fortran codes (not related to Amber)? You can
look at _new2oldparm.f to see what is happening. The problem with f95 (what
is this?) could be related to the way cpp is being called...try using cpp in
the way listed above for g95 and see if that helps.

I'm not a mac person, so I really should not be posting here; but new2oldparm
is a very simple fortran program, and errors there are almost always related
to installation/configuration problems for the compilers. Hence my questions.

...dac

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Sun Oct 28 2007 - 06:07:39 PDT
Custom Search