Re: [AMBER] compilation error AMBER16

From: Seibold, Steve Allan <stevesei.ku.edu>
Date: Fri, 28 Dec 2018 15:52:56 +0000

Thanks for the response...I really appreciate the help and will do as you suggest....
Steve

-----Original Message-----
From: David Case <david.case.rutgers.edu>
Sent: Thursday, December 27, 2018 2:56 PM
To: AMBER Mailing List <amber.ambermd.org>
Subject: Re: [AMBER] compilation error AMBER16

On Thu, Dec 27, 2018, Seibold, Steve Allan wrote:
>
>I am attempting to compile AMBER16 on a cluster, and after I did
>"./configure gnu" successfully, I did "make install" after awhile I got
>the errors listed below. I am using gcc 6.3 compiler...Is this the
>problem? Do I need an older/newer version gcc?

Make the following change to
AMBERHOME/AmberTools/src/rism/getopts_c.F90:

--- a/AmberTools/src/rism/getopts_c.F90
+++ b/AmberTools/src/rism/getopts_c.F90
.. -587,10 +587,11 .. contains
 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   function get_c_pt(key, type,length)! result(value)
     implicit none
+
+ integer, intent(in) :: length
     character(len=*), intent(in) :: key
     character(len=length),pointer,dimension(:) :: type
     character(len=length),pointer,dimension(:) :: get_c_pt
- integer, intent(in) :: length
     integer :: ikey, nval
     get_c_pt=>NULL()
     ikey = array_index(clongkey,key)

That is, move the declaration of length up to right after the "implict none" statement.

This, and many, many other problems, are fixed in AmberTools18, so you should really consider upgrading. It's easy to combine AmberTools18 with Amber16, or you could also upgrade pmemd to Amber18.

Here's the explanation: gcc6.3 was released in Dec. of 2016, well after the April 2016 release of Amber16. The fix above was made in October, 2016, and is fixed in both AmberTools17 and AmberTools18. Most people who are still using Amber16 have either upgraded to AmberTools17, or are still using old compilers that were around when they originally installed AmberTools16.

...regards...dac


_______________________________________________
AMBER mailing list
AMBER.ambermd.org
https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.ambermd.org%2Fmailman%2Flistinfo%2Famber&amp;data=02%7C01%7Cstevesei%40ku.edu%7C21609d934a6140d65dd208d66c3dccb5%7C3c176536afe643f5b96636feabbe3c1a%7C0%7C1%7C636815410013491458&amp;sdata=QqOMOfH21A0SzBQzGyNX6tARGwk1kcOZzsP5KGjM1Ew%3D&amp;reserved=0

_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Dec 28 2018 - 08:00:02 PST
Custom Search