[AMBER] Amber20 installation error

From: Chen, Guoquan <guoquan.chen.intel.com>
Date: Fri, 25 Mar 2022 22:23:03 +0000

Hi,

  I am trying to install Amber20 (with AmberTools21), and have the following error
The compiler is gcc11.2, CUDA is cuda 11.6, and the system is Ubuntu 21.10

*****************
[ 86%] Building C object AmberTools/src/leap/src/leap/CMakeFiles/leap_common_obj.dir/getline.c.o
/scratch/users/guoquanc/amber20_debug/amber20_src/AmberTools/src/leap/src/leap/getline.c:117:17: error: conflicting types for ??write??; have ??int()??
  117 | extern int write();
      | ^~~~~
In file included from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,
                 from /usr/include/signal.h:328,
                 from /scratch/users/guoquanc/amber20_debug/amber20_src/AmberTools/src/leap/src/leap/getline.c:36:
/usr/include/unistd.h:378:16: note: previous declaration of ??write?? with type ??ssize_t(int, const void *, size_t)?? {aka ??long int(int, const void *, long unsigned int)??}
  378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur
      | ^~~~~
/scratch/users/guoquanc/amber20_debug/amber20_src/AmberTools/src/leap/src/leap/getline.c:133:17: error: conflicting types for ??read??; have ??int()??
  133 | extern int read();
      | ^~~~
*****************

It is very to the previous question asked before, but I don't know how it was resolved, except the original poster change gcc to gcc9.
http://archive.ambermd.org/202110/0191.html


  Thanks a lot,

                                guoquan
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Mar 25 2022 - 15:30:02 PDT
Custom Search