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-c...
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
sbateman | Tue, 01/22/2013 - 23:50
That's a strange error.
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
Tamoghna | Wed, 01/23/2013 - 05:58
Hi!
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
rberger | Wed, 01/23/2013 - 11:03
Known Bug
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
Tamoghna | Wed, 01/23/2013 - 12:05
Thanks a lot it worked :)
Thanks a lot it worked :)
ckloss | Thu, 01/24/2013 - 14:52
Hi all,
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
Tamoghna | Sun, 01/27/2013 - 11:17
Hi Christoph!
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
Tamoghna | Mon, 01/28/2013 - 03:45
Please ignore the above
Please ignore the above comment. The problem was solved by using macports_mpi makefile from the website.
qfhou | Tue, 03/12/2013 - 04:52
mac os make file problem
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