[lammps-users] Making LAMMPS (cygwin error)

I’m trying to compile lammps with mpi & fftw using cygwin on a windows 7 machine.

After typing “make cygwin” in the source directory I’m interrupted with

collect[2]: ld returned 1 exit status
make[1]: ***[…/lmp_cygwin] Error[1]
make[1]: Leaving directory ‘/lammps-3Oct10/src/Obj_cygwin’
make: *** [cygwin] Error 2

v/r,

dc

I'm trying to compile lammps with mpi & fftw using cygwin on a windows 7
machine.

After typing "make cygwin" in the source directory I'm interrupted with

collect[2]: ld returned 1 exit status
make[1]: ***[../lmp_cygwin] Error[1]
make[1]: Leaving directory '/lammps-3Oct10/src/Obj_cygwin'
make: *** [cygwin] Error 2

i assume that you want to ask what the problem is, right?

there should be some error message right _before_ these
lines and they are indicative of the reason for the error.
no way to tell without them.

axel.

Directly above the lines in the previous thread the following error message is printed.

“cannot find -lfftw”

What’s causing this problem?

There aren’t much previous messages on the lammps forum archives on issues with the GNU linker.

Also, when it comes to making lammps with cygwin, the lammps website says one is basically on their own.

"see Makefile.cygwin. Or you should be able to pull all the source files into Visual C++ (ugh) or some similar development environment and build it. In the src/MAKE/Windows directory are some notes from users on how they built LAMMPS under Windows, so you can look at their instructions for tips. Good luck - we can’t help you on this one. "

Directly above the lines in the previous thread the following error
message is printed.

"cannot find -lfftw"

What's causing this problem?

this is a linker problem. you are probably missing
the proper -L option.

There aren't much previous messages on the lammps forum archives on
issues with the GNU linker.

no surprise. this is a trivial issue and not at all
specific to LAMMPS. here is a link to talk slides
for a set of lectures that gave at an HPC school a
couple years ago. have a look at slide 14 in particular.

http://cdsagenda5.ictp.it//askArchive.php?categ=a07176&id=a07176s2t3&ifd=28024&down=1&type=lecture_notes

Also, when it comes to making lammps with cygwin, the lammps website
says one is basically on their own.

the LAMMPS build system is designed for unix-like machines
and personally i find windows machine very cumbersome
to use with command line tools. you have to install a
whole set of ported unix tools, which still have some
deficiencies every once in a while, so that i have
completely given up using windows (knowingly).

"see Makefile.cygwin. Or you should be able to pull all the source
files into Visual C++ (ugh) or some similar development environment
and build it. In the src/MAKE/Windows directory are some notes from
users on how they built LAMMPS under Windows, so you can look at their
instructions for tips. Good luck - we can't help you on this one. "

that being said, i am providing a cross compiled(!) lammps binary
for windows with all optional features outside of GPU support included
(i.e. the status of lammps of last night) and you can download it here:
http://goo.gl/4fcq

again, if you want to build it on windows, you can try,
but i cannot help you with it. i do all of this on linux.

cheers,
   axel.

Daniel,

I regularly build LAMMPS under cygwin, so I can probably help with cygwin build questions.

Did you already build FFTW and provide the proper path in the Makefile?

In the end, the steps for building under cygwin are not that much different from the steps for building under linux systems, which you can find in the LAMMPS documentation:

http://lammps.sandia.gov/doc/Section_start.html#2_2

Paul

Thanks,

I forgot to reply to all (lammps-users) in my previous reply.

sorry bout that.

dc