Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with compiling NUFEB on Mac OSX (10.13.4) #1

Closed
MI-SIM opened this issue Jun 21, 2018 · 5 comments
Closed

Issue with compiling NUFEB on Mac OSX (10.13.4) #1

MI-SIM opened this issue Jun 21, 2018 · 5 comments

Comments

@MI-SIM
Copy link

MI-SIM commented Jun 21, 2018

I am trying to compile the latest version of NUFEB on Mac High Sierra following the Readme instructions.

  1. In STUBS I get the following Warning messages:

g++ -O -fPIC -c mpi.c
clang: warning: treating 'c' input as 'c++' when in C++ mode, this behavior is deprecated [-Wdeprecated]
mpi.c:114:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
1 warning generated.
ar rs libmpi_stubs.a mpi.o
ar: creating archive libmpi_stubs.a

  1. Then when compiling in src, using make serial:

../../src/molecule.h:14:9: warning: 'LMP_ONE_MOLECULE_H' is used as a header
guard here, followed by #define of a different macro [-Wheader-guard]
#ifndef LMP_ONE_MOLECULE_H
^~~~~~~~~~~~~~~~~~
../../src/molecule.h:15:9: note: 'LMP_ONE_MOLEUCULE_H' is defined here; did you
mean 'LMP_ONE_MOLECULE_H'?
#define LMP_ONE_MOLEUCULE_H

This is fixed by correcting the spelling of MOLECULE in molecule.h

  1. An error message is also generated:

*g++ -std=c++0x -O -pg -DLAMMPS_GZIP -I../../src -I../STUBS -M ../finish.cpp > finish.d
g++ -std=c++0x -O -pg -DLAMMPS_GZIP -I../../src -I../STUBS -c ../finish.cpp
../finish.cpp:574:40: error: ordered comparison between pointer and zero
('int ' and 'int')
if (neighbor->lists[m]->numneigh > 0) {

This issue I cannot resolve and may be linked to warning 1.

Please advise.

Thanks,
Matt

@shelllbw
Copy link
Member

Hi Matt,

We haven't tested the code on Mac, but please try with the latest version in https://github.com/shelllbw/nufeb repository. The instruction for compilation is in code/doc/nufeb3.0-manual/ dir. Basically, you will need to have openmpi library installed and then in src/
$ make yes-user-nufeb
$ make yes-granular
$ make -j4 mpi
Let me know if it still does not work.

Bowen

@MI-SIM
Copy link
Author

MI-SIM commented Jun 22, 2018 via email

@MI-SIM
Copy link
Author

MI-SIM commented Jun 22, 2018 via email

@shelllbw
Copy link
Member

Hi Matt, I cannot find your attachment here. Could you resend it via email please.
Bowen

@MI-SIM
Copy link
Author

MI-SIM commented Jun 24, 2018 via email

shelllbw pushed a commit that referenced this issue Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants