[AMBER] Fwd: Ambertools21 installation problems

From: Victor Nazarychev <nazarychev.imc.macro.ru>
Date: Sat, 23 Oct 2021 15:46:43 +0300

Dear Amber's users,

I tried to install AmberTools21 using Option 1 in the instruction manual
from the website https://ambermd.org/GetAmber.php#ambertools .

I use Ubuntu 21.10, cmake 3.22.0-rcc, gcc-9.4.0 ,

However, at the end of the installation process the error appears. Please
see below.

Maybe you know how to solve this problem?

Best regards,
Victor

#################################################################

 [ 94%] Building C object
AmberTools/src/leap/src/leap/CMakeFiles/leap_common_obj.dir/getline.c.o

/home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c:117:17:
error: conflicting types for ‘write’

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 /home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c:36:

/usr/include/unistd.h:378:16: note: previous declaration of ‘write’ was here

378 | extern ssize_t write (int __fd, const void *__buf, size_t __n) __wur

| ^~~~~

/home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c:133:17:
error: conflicting types for ‘read’

133 | extern int read();

| ^~~~

In file included from /usr/include/unistd.h:1200,

from /usr/include/x86_64-linux-gnu/bits/sigstksz.h:24,

from /usr/include/signal.h:328,

from /home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c:36:

/usr/include/x86_64-linux-gnu/bits/unistd.h:36:1: note: previous definition
of ‘read’ was here

36 | read (int __fd, void *__buf, size_t __nbytes)

| ^~~~

/home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c: In
function ‘hist_save’:

/home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c:920:25:
warning: ‘malloc’ argument 1 type is ‘int’ where ‘long unsigned int’ is
expected in a call to built-in function declared without prototype
[-Wbuiltin-declaration-mismatch]

920 | if ((s = malloc(len)) != 0) {

| ^~~

/home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c:46:17:
note: built-in ‘malloc’ declared here

46 | extern void *malloc();

| ^~~~~~

/home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c:925:28:
warning: ‘malloc’ argument 1 type is ‘int’ where ‘long unsigned int’ is
expected in a call to built-in function declared without prototype
[-Wbuiltin-declaration-mismatch]

925 | if ((s = malloc(len+1)) != 0) {

| ~~~^~

/home/victor/src/amber20_src/AmberTools/src/leap/src/leap/getline.c:46:17:
note: built-in ‘malloc’ declared here

46 | extern void *malloc();

| ^~~~~~

make[2]: ***
[AmberTools/src/leap/src/leap/CMakeFiles/leap_common_obj.dir/build.make:132:
AmberTools/src/leap/src/leap/CMakeFiles/leap_common_obj.dir/getline.c.o]
Ошибка 1

make[1]: *** [CMakeFiles/Makefile2:6295:
AmberTools/src/leap/src/leap/CMakeFiles/leap_common_obj.dir/all] Ошибка 2

make: *** [Makefile:156: all] Ошибка 2
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Sat Oct 23 2021 - 06:00:02 PDT
Custom Search