Problems compiling with MPI
Hi,
Sorry to add my similar problems as I compile my optional files with mpi = 'OPENMPI' in xenial_options.py
It comes out:
RuntimeError: Unable to link against ['mpi_cxx', 'mpi', 'open-rte', 'open-pal'] (paths: /usr/lib/
File "/home/
env=
File "/home/
mpi_
File "/home/
raise RuntimeError(
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Revision history for this message
|
#1 |
And the config.log is:
file /home/lc/
Configure(confdir = .sconf_temp)
scons: Configure: Checking whether the C++ compiler works...
.sconf_
|
|int main()
|{
| return 0;
|}
|
g++ -o .sconf_
scons: Configure: yes
scons: Configure: Checking for C++ function gethostname()...
.sconf_
|
|
|#include <assert.h>
|
|#ifdef __cplusplus
|extern "C"
|#endif
|char gethostname();
|
|int main() {
|#if defined (__stub_
| fail fail fail
|#else
| gethostname();
|#endif
|
| return 0;
|}
|
g++ -o .sconf_
g++ -o .sconf_
scons: Configure: yes
scons: Configure: Checking for C++ header file byteswap.h...
.sconf_
|
|#include "byteswap.h"
|
|
g++ -o .sconf_
scons: Configure: yes
scons: Configure: Checking for C++ function SCbswap32()...
.sconf_
|
|
|#include <assert.h>
|#include <byteswap.h>
|#define SCbswap32() {int x=0;bswap_32(x);}
|
|int main() {
|#if defined (__stub_SCbswap32) || defined (__stub_
| fail fail fail
|#else
| SCbswap32();
|#endif
|
| return 0;
|}
|
g++ -o .sconf_
g++ -o .sconf_
scons: Configure: yes
scons: Configure: Checking for C++ header file sys/endian.h...
.sconf_
|
|#include "sys/endian.h"
|
|
g++ -o .sconf_
.sconf_
compilation terminated.
scons: Configure: no
scons: Configure: Checking for C++ header file libkern/
.sconf_
|
|#include "libkern/
|
|
g++ -o .sconf_
.sconf_
compilation terminated.
scons: Configure: no
scons: Configure: Checking for working complex std::acos()...
.sconf_
|
|#include <complex>
|int main() { std::complex<
|return std::abs(
|
g++ -o .sconf_
g++ -o .sconf_
.sconf_
scons: Configure: yes
file /home/lc/
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C++ header file Python.h...
.sconf_
|
|#include "Python.h"
|
|
g++ -o .sconf_
scons: Configure: yes
scons: Configure: Checking for C++ function Py_Exit()...
.sconf_
|
|
|#include <assert.h>
|
|#ifdef __cplusplus
|extern "C"
|#endif
|char Py_Exit();
|
|int main() {
|#if defined (__stub_Py_Exit) || defined (__stub___Py_Exit)
| fail fail fail
|#else
| Py_Exit();
|#endif
|
| return 0;
|}
|
g++ -o .sconf_
g++ -o .sconf_
scons: Configure: yes
file /home/lc/
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C++ library boost_python-
.sconf_
|
|
|#include "boost/python.hpp"
|
|int
|main() {
|
|return 0;
|}
|
g++ -o .sconf_
g++ -o .sconf_
scons: Configure: yes
file /home/lc/
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C++ header file numpy/ndarrayob
.sconf_
|#include "Python.h"
|
|#include "numpy/
|
|
g++ -o .sconf_
In file included from /usr/include/
/usr/include/
#warning "Using deprecated NumPy API, disable it by " \
^
scons: Configure: yes
file /home/lc/
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C++ library netcdf_c++...
.sconf_
|
|
|#include "netcdf.h"
|
|int
|main() {
|
|return 0;
|}
|
g++ -o .sconf_
g++ -o .sconf_
scons: Configure: yes
file /home/lc/
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C++ library umfpack...
.sconf_
|
|
|#include "umfpack.h"
|
|int
|main() {
|
|return 0;
|}
|
g++ -o .sconf_
g++ -o .sconf_
scons: Configure: yes
file /home/lc/
Configure(confdir = .sconf_temp)
scons: Configure: Checking for C++ library mpi_cxx...
.sconf_
|
|
|#include "mpi.h"
|
|int
|main() {
|
|return 0;
|}
|
g++ -o .sconf_
scons: Configure: Caught exception while building ".sconf_
Traceback (most recent call last):
File "/usr/lib/
task.prepare()
File "/usr/lib/
t.prepare()
File "/usr/lib/
SCons.
File "/usr/lib/
raise SCons.Errors.
SCons.Errors.
scons: Configure: no
Revision history for this message
|
#2 |
$which mpirun
/usr/bin/mpirun
$ mpirun -V
mpirun (Open MPI) 1.10.2
$ dpkg -l | grep openmpi
ii libhdf5-
ii libopenmpi-dev 1.10.2-8ubuntu1 amd64 high performance message passing library -- header files
ii libopenmpi1.10 1.10.2-8ubuntu1 amd64 high performance message passing library -- shared library
ii openmpi-bin 1.10.2-8ubuntu1 amd64 high performance message passing library -- binaries
ii openmpi-common 1.10.2-8ubuntu1 all high performance message passing library -- common files
Revision history for this message
|
#3 |
>mpicxx -show
g++ -I/usr/
Revision history for this message
|
#4 |
"... SCons.Errors.
What is the output of
ls -l /usr/lib/libopen-*
Revision history for this message
|
#5 |
Manfred, Hi
$ ls -l /usr/lib/libopen-*
lrwxrwxrwx 1 root root 16 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 21 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 33 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 16 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 21 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 33 2月 26 2016 /usr/lib/
Revision history for this message
|
#6 |
Something messed up your OpenMPI libraries:
lrwxrwxrwx 1 root root 16 2月 26 2016 /usr/lib/
libopen-rte.so.4 does not exist.
I would try reinstalling the openmpi dev package, i.e.
apt-get install --reinstall libopenmpi-dev
Revision history for this message
|
#7 |
Hi, caltinay
$ sudo apt-get install --reinstall libopenmpi-dev
$ ls -l /usr/lib/libopen-*
lrwxrwxrwx 1 root root 16 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 21 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 33 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 16 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 21 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 33 2月 26 2016 /usr/lib/
$ ls -l /usr/lib/
lrwxrwxrwx 1 root root 21 2月 26 2016 /usr/lib/
-rw-r--r-- 1 root root 620720 2月 26 2016 /usr/lib/
lrwxrwxrwx 1 root root 21 2月 26 2016 /usr/lib/
-rw-r--r-- 1 root root 492464 2月 26 2016 /usr/lib/
Revision history for this message
|
#8 |
This might be a bug in the packaging of libopenmpi.
As far as I can see the package http://
"/usr/lib/
"/usr/lib/
but the package http://
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
It seems that for Debian this is covered in https:/
For Ubuntu I found only bug #1597508 which is not related to the dangling links that you have, but some other problems covered in the mentioned Debian bug.
My suggestions:
1. try correcting the links on your system and check whether esys-script works then
2. create a bug report (or add information to bug #1597508) to signal the problem to the developers.
Can you help with this problem?
Provide an answer of your own, or ask liucheng83 for more information if necessary.