AMBER Archive (2006)

Subject: Re: AMBER: Amber 8 under Solaris 9 compilation failed

From: Scott Brozell (sbrozell_at_scripps.edu)
Date: Mon Mar 27 2006 - 01:16:27 CST


Hi,

Based on gooooggggllleing, the error below appears to be a compiler bug.
The recommendation is to upgrade the compiler and the operating system.
Another patch if lmod is not used is to gut src/sander/lmod.f :

%%%%%****begin lmod.f
#include "assert.h"
#include "dprec.h"

!+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
!+ Interface to Istvan Kolossvary's LMOD libraries.

module lmod_driver

end module lmod_driver
%%%%%****end lmod.f

My details:
SunOS chemistry.ohio-state.edu 5.7 Generic_106541-41 sun4u sparc SUNW,Ultra-4
f90: WorkShop Compilers 5.0 00/05/17 FORTRAN 90 2.0 Patch 107356-05

f90 -c -O1 -free -o lmod.o _lmod.f
Assertion failed: at_handle_table[at_idx].tag == VAR_TAG, file ../srcfw/FWcvrt.c, line 4018
f90: Fatal error in f90comp: Abort

Gutting worked for me.

A google hit:
http://www.nordita.dk/software/pencil-code/www/faq.html
   user_at_sun> f90 -c param_io.f90
    Assertion failed: at_handle_table[at_idx].tag == VAR_TAG,
                      file ../srcfw/FWcvrt.c, line 4018
    f90: Fatal error in f90comp: Abort

This is a compiler bug that we find at least with Sun’s WorkShop Compiler version 5.0 00/05/17 FORTRAN 90 2.0 Patch 107356-05’. Upgrade the compiler version (and possibly also the operating system): we find that the code compiles and works with version Sun WorkShop 6 update 2 Fortran 95 6.2 Patch 111690-05 2002/01/17’ under SunOS version 5.8 Generic?108528-11’.

I'll add this to
http://amber.scripps.edu/sunos.html

Scott

On Tue, 7 Mar 2006, David A. Case wrote:

> On Tue, Mar 07, 2006, Dror wrote:
> >
> > 2. when compilation gets into src/sander directory it founds #include
> > files which have same name as in /usr/lib and compiler try to include them
> > from system location instead of
>
> What is the value of your FPP flag in config.h? I have never come across
> a preprocessor that would do what you describe. Maybe you can examine
> the output from "man cpp" (or whatever program is being invoked), and see
> if there is an option to avoid searching /usr/include first.
>
> It *might* help to know the exact version of the compiler suite and OS you
> are using. Maybe others on the list with Solaris experience can offer some
> better advice.

On Tue, 7 Mar 2006, Dror wrote:

> Sorry tthe my last message was cut here my all mesaage:
>
> I am trying to install AMBER 8 on SPARC Solaris 9 system.
>
> The compilation is failed when it arrives to the sander part.
>
> I have already tried to switch between compilers (g77 ,g95 ,f90 of SUN
> Studio 11)
>
> with not match success.
>
> > the last error I get before compilation failed is:
>
> > "Assertion failed: at_handle_table[at_idx].tag==VAR_TAG, file
>
> >../srcfw/FWcvrt.c, line 4017
>
> > f90: Fatal error in f90comp: Abort (core dumped)
>
> > make[1]:*** [lmod.o] Error 1
>
> > make[1]: Leaving directory `/disk1/amber8/src/sander'
>
> > make: *** [serial] Error 2"
>
> I have investigated little more and have some cunclusions:
>
> 1. The FLAGS in config file not recognized the same way in different
> compilers (such as -free ..)
>
> 2. when compilation gets into src/sander directory it founds #include
> files which have same name as in /usr/lib and compiler try to include them
> from system location instead of
>
> look for them in src/sander directory (memory.h, assert.h random.h etc.)
>
> It doesn't look proper way to change every *.f file in this directory to
> redirect the include file.
-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu