Well, the first thing is that there is no reason to cross compile in this 
arrangement. Your target and host are the same, and the configuration won’t do 
anything with it.

Normally you would set host and target. However, like I said, in this case you 
are providing the same argument to both, and so nothing will happen.


> On Feb 8, 2015, at 3:45 AM, simona bellavista <afy...@gmail.com> 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.
> 
> The output of  uname -a on the two systems is:
> 1) Host
> Linux host 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 
> x86_64 x86_64 GNU/Linux
> 
> 2) Target
> Linux target 2.6.35-32-server #67-Ubuntu SMP Mon Mar 5 21:13:25 UTC 2012 
> x86_64 GNU/Linux
> 
> I am using the following configuration:
> 
> export CC=icc
> export FC=ifort
> export CXX=icpc
> export LDFLAGS=-static-intel
> export LANG=C
> 
> ./configure --prefix=/home/user/local/openmpi-1.8.4-cc/ 
> --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --enable-static 
> --disable-shared
> 
> I am not sure if the configuration triplets I am using are correct. I know 
> that in this case I am not technically cross-compiling, but I was wondering 
> if in the general case I have also to set --target and to what.
> 
> I get this error:
> 
> Catastrophic error: could not set locale "" to allow processing of multibyte 
> characters
> 
> I attach make.out and output.out (zipped)
> <config.out.bz2><make.out.bz2>_______________________________________________
> users mailing list
> us...@open-mpi.org
> Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users
> Link to this post: 
> http://www.open-mpi.org/community/lists/users/2015/02/26305.php

Reply via email to