Installing LIGGGHTS 2 in MacOS

Submitted by Tamoghna on
sbateman

That's a strange error. Could you post your compiler version and flags, like this:


$ mpic++ --version
i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ mpic++ --showme
/usr/bin/g++-4.2 -I/opt/local/include/openmpi -L/opt/local/lib -lmpi_cxx -lmpi -lm

Tue, 22 Jan 2013 - 23:50 Permalink
Tamoghna

Hi!

Here is the output:

dhcp-20054:~ tamoghna$ mpic++ --version
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin11.4.2
Thread model: posix
dhcp-20054:~ tamoghna$ mpic++ --showme
/usr/bin/clang++ -I/opt/local/include/openmpi -L/opt/local/lib -lmpi_cxx -lmpi -lm
dhcp-20054:~ tamoghna$

Tamoghna

Wed, 23 Jan 2013 - 05:58 Permalink
rberger

In reply to by anonymous_stub (not verified)

Hi,
Had the same problem when using clang. A QuickFix is simply changing the affected lines to:
this->memory->template create(tmp,NUM_NODES,3,"MultiNodeMesh:tmp");
and
this->memory->template destroy(tmp);

Richard

Wed, 23 Jan 2013 - 11:03 Permalink
ckloss

In reply to by anonymous_stub (not verified)

Hi all,

thanks for the feed-back. Template stuff is often handled differently by different compilers. i'll incorporate the fix for 2.2.4

Cheers, Christoph

Thu, 24 Jan 2013 - 14:52 Permalink
Tamoghna

Hi Christoph!
I tried to install 2.2.4 but it did nt have macports makefile. So I tried with mac_mpi.... I got some more error...!!

mpic++ -O -MMD -MG -DLAMMPS_GZIP -DOMPI_SKIP_MPICXX -DFFT_FFTW -I/sw/include -M angle.cpp > angle.d
clang: warning: argument unused during compilation: '-MMD'
mpic++ -O -MMD -MG -DLAMMPS_GZIP -DOMPI_SKIP_MPICXX -DFFT_FFTW -I/sw/include -c angle.cpp
clang: error: option '-MG' requires '-M' or '-MM'
make[1]: *** [angle.o] Error 1
make: *** [mac_mpi] Error 2

Regards,
Tamoghna

Sun, 27 Jan 2013 - 11:17 Permalink
Tamoghna

In reply to by anonymous_stub (not verified)

Please ignore the above comment. The problem was solved by using macports_mpi makefile from the website.

Mon, 28 Jan 2013 - 03:45 Permalink
qfhou

In reply to by anonymous_stub (not verified)

hi,
I downloaded the make file. However, I met a makefile 81 error, it says 'try to using tab instead of 8 spaces'. The mac os is mountain lion (10.8.2). It is 64 bit defaultly. Anyone met this problem?

Or could you please send me your working makefile under mac? my email: q.hou2012 (at)gmail dot com
Thanks, QF

Tue, 12 Mar 2013 - 04:52 Permalink

Hi!

I was trying to install LIGGGHTS 2 in MacOS using macports using instructions in http://letstryscience.wordpress.com/2012/02/04/dont-reinvent-the-wheel-…

But I was getting the following errors.....

In file included from compute_pair_gran_local.cpp:40:
In file included from ./fix_wall_gran.h:33:
In file included from ./fix_mesh_surface.h:39:
In file included from ./tri_mesh.h:31:
In file included from ./surface_mesh.h:31:
In file included from ./tracking_mesh.h:31:
In file included from ./multi_node_mesh_parallel.h:26:
In file included from ./multi_node_mesh.h:226:
./multi_node_mesh_I.h:306:25: error: use 'template' keyword to treat 'create' as
a dependent template name
this->memory->create(tmp,NUM_NODES,3,"MultiNodeMesh:tmp");
^
template
./multi_node_mesh_I.h:320:25: error: use 'template' keyword to treat 'destroy'
as a dependent template name
this->memory->destroy(tmp);
^
template
2 errors generated.
make[1]: *** [compute_pair_gran_local.o] Error 1
make: *** [macports_mpi] Error 2

Could anybody help please??

Regards,
TM