Simona,

On 2015/02/08 20:45, simona bellavista wrote:
> I have two systems A (aka Host) and B (aka Target). On A a compiler suite
> is installed (intel 14.0.2), on B there is no compiler. I want to compile
> openmpi on A for running it on system B (in particular, I want to use
> mpirun and mpif90), so I want to have static linking to the intel
> libraries. First of all, I would like to know if it is possible to do this.
as Ralph already wrote, there is no need to cross compile.

you are building on a fedora box, and plan running on an ubuntu box,
all i can think is you might get some issues with system libraries versions.
also, since both systems have different paths, that might be a mess to build
(the simplest option is to run configure and make on system A and run
make install on system B)

do you really want to use mpif90 on system B ?
since system B has no compilers, that will not work.
-static-intel means the intel runtime is linked statically.
this is necessary only if system B do not have the intel runtime installed,
and you might want to configure with
--with-wrapper-{c,cxx,fc}flags=-static-intel

if you want to build ompi with static libs only, then you can configure with
--enable-static --disable-shared

about the missing libraries (liblsf and libbat), i can only assume
system A has LSF installed
but not system B. in this case, you can add the --without-lsf parameter
to your configure
line.

since system B is an ubuntu box, i think things would be much easier for
you if you built
an ubuntu virtual machine with the same os version, set accounts and
path the way they
are set on system B (you are root on your vm) , and build ompi on this VM.

Cheers,

Gilles

Reply via email to