-
Notifications
You must be signed in to change notification settings - Fork 641
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
allow MPI compiler to be set with CXX=... instead of MPICXX=... #379
Comments
If |
I have this problem too, despite Specifying the full path for |
That's the problem - |
This is the required modification to correctly make meep:
|
I'm guessing that the For (I guess the ACX_MPI script could be updated to first check whether |
No, I have only one mpic++ installed, the one that is in /usr/local/bin/
But /usr/local/bin isn't in PATH by default, I add it through an equivalent
of .bashrc, meaning the it is not in the PATH that sudo sees.
Funnily enough though, sudo -E, which should preserve environment vars,
still doesn't see mpic++...
…On Thu, Jun 14, 2018, 20:50 Steven G. Johnson ***@***.***> wrote:
I'm guessing that the mpic++ in your PATH is not the same as
/usr/local/bin/mpicc (i.e. you have two versions of MPI installed) … what
does which mpic++ report?
For --with-mpi, you have to set MPICXX=/usr/local/bin/mpic++.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#379 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AH2oYQ41K72RcyCzgcrMWo6LTdIzjof8ks5t8lwfgaJpZM4Uj4T_>
.
|
You shouldn’t run configure with sudo, generally. Only use sudo for the final |
Passing |
This script successfully builds meep on a clean CentOS 6 install. I build
And another issue - this builds a python wrapper that cannot be imported without appyling the patch
by |
For the swig patch, see #189. There is a bug for SWIG 3.0.[9,10,11,12] and currently we only work around the problem for 3.0.12. Updates for other SWIG versions would be welcome. (Hmm, it looks like you are using SWIG 3.0.12, though, which should already be handled by a patch in our Makefile?) |
Note that 5ba3b72 fixes the documentation problem in the original post: setting |
Note that to allow the MPI compiler to be set with |
Using the build steps from the build script found the docs (http://meep.readthedocs.io/en/latest/Build_From_Source/),
On CentOS 6.9, with a custom built OpenMPI, installed to
/usr/local
and a custom built HDF5, also in/usr/local
, the link commands executed duringsudo make install
fall over because they are unable to find mpic++.LDFLAGS, CC, CXX, CPPFLAGS
are all modified to point to the correct directories.CC and CXX point to the full paths of mpicc/mpic++, e.g.
CXX=/usr/local/bin/mpic++
.Running
make install
from root works correctly,/usr/local/bin
is in the system path.Passing the environment variable to
sudo
withsudo -E
doesn't help...This is the exact command that falls over:
Not sure if this is me having screwed up my setup or a bug in the makefiles...
The text was updated successfully, but these errors were encountered: