LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Mailing List Archives
[lammps-users] fix imd compilation error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lammps-users] fix imd compilation error


From: Christer Honore Ersland <christer.h.ersland@ntnu.no>
Date: Tue, 23 Aug 2011 08:11:15 +0000

Dear LAMMPS users,

I try to compile the most recent LAMMPS version on my machine (Mac OS X 10.6.8), and I get the following error:

mpic++  -O -MMD  -DLAMMPS_GZIP -I../../lib/atc -I../../lib/reax -I../../lib/poems -I../../lib/meam  -DOMPI_SKIP_MPICXX -DFFT_FFTW -I/sw/include      -c fix_imd.cpp
fix_imd.cpp: In function ‘void* imdsock_accept(void*)’:
fix_imd.cpp:1246:76: error: invalid conversion from ‘int*’ to ‘socklen_t*’
fix_imd.cpp:1246:76: error:   initializing argument 3 of ‘int accept(int, sockaddr*, socklen_t*)’
make[1]: *** [fix_imd.o] Error 1
make: *** [mac_mpi] Error 2

This only occurs when the USER-MISC package is included, obviously.

Also, when I try to include packages using e.g. "make yes-standard", I tend to get the following error, which I have not seen before:

sed: 1: "../Makefile.package.set ...": invalid command code .

Any ideas about how to fix this?

Finally, when trying to include any package using gfortran, I get a lot(!) of errors at the very end of the compilation process related to fortran, so I guess it is not linking correctly. I know there has been some restructuring of makefiles lately, and I have been using my own (slightly modified) makefile where I have specified reax_SYSLIB and reax_SYSPATH. These lines are now gone from the makefiles in the src/MAKE folder - where would be the right place to specify this instead?


Sincerely,
Christer H. Ersland.