Re: [OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread saahil . in
Also, btw using these two values and make clean, I was able to both configure and build Open MPI properly. After that I compiled an example code with -m32 flag and it compiled properly too :D. It remains to be seen whether my setup of machines run them properly or not. Regards, Saahil On O

Re: [OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread saahil . in
Ralph, well my --host flag contains i686-pc-linux-gnu and so does --build. On Oct 26, 2010 12:15am, Ralph Castain wrote: The problem is that you set the build and the host to the -same- architecture - that indicates it isn'ta cross-compile situation. The --host flag should indicate the arch

Re: [OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread Ralph Castain
The problem is that you set the build and the host to the -same- architecture - that indicates it isn't a cross-compile situation. The --host flag should indicate the arch of the machines that will run the code - in your case, that would be i386-pc-linux-gnu On Oct 25, 2010, at 12:30 PM, saahi

Re: [OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread Jeff Squyres
Make sure to "make clean", too -- just to clean up any kruft that may be left over from a prior build that is not necessarily compatible with your new set of configure/build/link options. On Oct 25, 2010, at 2:35 PM, Ralph Castain wrote: > I think you are missing the --host flag, so it still t

Re: [OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread Ralph Castain
I think you are missing the --host flag, so it still thinks it is building for the current machine. On Oct 25, 2010, at 12:29 PM, saahil...@gmail.com wrote: > Ralph, > As you suggested, I configured with the following options - > > ./configure --prefix=/home/wolf/openmpi/ CFLAGS=-m32 CXXFLAG

Re: [OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread saahil . in
I also tried by adding --host=i686-pc-linux-gnu alongwith the --build option. Same error :( On Oct 25, 2010 11:59pm, saahil...@gmail.com wrote: Ralph, As you suggested, I configured with the following options - ./configure --prefix=/home/wolf/openmpi/ CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=-m32

Re: [OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread saahil . in
Ralph, As you suggested, I configured with the following options - ./configure --prefix=/home/wolf/openmpi/ CFLAGS=-m32 CXXFLAGS=-m32 FFLAGS=-m32 FCFLAGS=-m32 --build=i686-pc-linux-gnu LDFLAGS=-m32 I'm afraid I am still getting the same error messages while making as I did last time. Did I

Re: [OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread Ralph Castain
Do ./configure --help and you'll see options for specifying the host and build target. You need to do that when cross-compiling. On Oct 25, 2010, at 12:01 PM, saahil...@gmail.com wrote: > -- Forwarded message -- > From: saahil...@gmail.com > Date: Oct 25, 2010 11:26pm > Subject:

[OMPI users] Fwd: Cross compiling for 32 bit from a 64 bit machine

2010-10-25 Thread saahil . in
-- Forwarded message -- From: saahil...@gmail.com List-Post: users@lists.open-mpi.org Date: Oct 25, 2010 11:26pm Subject: Cross compiling for 32 bit from a 64 bit machine To: us...@open-mpi.org CC: Hello, I am a beginner using Open MPI to set up a simple Beowulf cluster of PCs