Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] ptrdiff_t undefined error on intel 64bit machine with intel compilers
From: Tamara Rogers (talmesha_r_at_[hidden])
Date: 2009-02-23 18:07:32


Jeff:
That patch didn't work. However, I hacked the configure file and got it to work by forcing OMPI_PTRDIFF_TYPE to be long:
line 65040 of configure
#define OMPI_PTRDIFF_TYPE long
 
It compiled just fine after this.
 
Thanks for all your efforts

--- On Fri, 2/20/09, Jeff Squyres <jsquyres_at_[hidden]> wrote:

From: Jeff Squyres <jsquyres_at_[hidden]>
Subject: Re: [OMPI users] ptrdiff_t undefined error on intel 64bit machine with intel compilers
To: "Open MPI Users" <users_at_[hidden]>
Date: Friday, February 20, 2009, 6:18 PM

Does applying the following patch fix the problem?

Index: ompi/datatype/dt_args.c
===================================================================
--- ompi/datatype/dt_args.c (revision 20616)
+++ ompi/datatype/dt_args.c (working copy)
@@ -18,6 +18,9 @@
  */

 #include "ompi_config.h"
+
+#include <malloc.h>
+
 #include "opal/util/arch.h"
 #include "opal/include/opal/align.h"
 #include "ompi/constants.h"

On Feb 20, 2009, at 4:33 PM, Tamara Rogers wrote:

> Jeff:
> See attached.I'm using the 9.0 version of the intel compilers.
Interestngly I have no problems on a 32bit intel machine using these same
compilers. There only seems to be a problem on the 64bit machine.
>
> --- On Fri, 2/20/09, Jeff Squyres <jsquyres_at_[hidden]> wrote:
> From: Jeff Squyres <jsquyres_at_[hidden]>
> Subject: Re: [OMPI users] ptrdiff_t undefined error on intel 64bit machine
with intel compilers
> To: "Open MPI Users" <users_at_[hidden]>
> Date: Friday, February 20, 2009, 8:37 AM
>
> Can you also send a copy of your mpi.h? (OMPI's mpi.h is generated by
> configure; I want to see what was put into your mpi.h)
>
> Finally, what version of icc are you using? I test regularly with icc
9.0,
> 9.1, 10.0, and 10.1 with no problems. Are you using newer or older? (I
> don't have immediate access to 11.x or 8.x)
>
>
> On Feb 20, 2009, at 8:09 AM, Jeff Squyres wrote:
>
> > Can you send your config.log as well?
> >
> > It looks like you forgot to specify FC=ifort on your configure line
(i.e.,
> you need to specify F77=ifort for the Fortran 77 *and* FC=ifort for the
Fortran
> 90 compiler -- this is an Autoconf thing; we didn't make it up).
> >
> > That shouldn't be the problem here, but I thought I'd mention
it.
> >
> >
> > On Feb 19, 2009, at 12:00 PM, Tamara Rogers wrote:
> >
> >>
> >> Jeff:
> >> You're correct. That was the incorrect config file. I've
> attached the correct one as per the recommendations in the help page.
> >>
> >> Thanks for your help
> >>
> >> --- On Thu, 2/19/09, Jeff Squyres <jsquyres_at_[hidden]>
wrote:
> >> From: Jeff Squyres <jsquyres_at_[hidden]>
> >> Subject: Re: [OMPI users] ptrdiff_t undefined error on intel
64bit
> machine with intel compilers
> >> To: talmesha_r_at_[hidden], "Open MPI Users"
> <users_at_[hidden]>
> >> Date: Thursday, February 19, 2009, 8:32 AM
> >>
> >> Your config.log looks incomplete -- it failed saying that your C
and
> C++
> >> compilers were incompatible with each other.
> >>
> >> This does not seem related to what you described -- are you sure
> you're
> >> sending the right config.log?
> >>
> >> Specifically, can you send all the information listed here:
> >>
> >> http://www.open-mpi.org/community/help/
> >>
> >>
> >> On Feb 17, 2009, at 5:10 PM, Tamara Rogers wrote:
> >>
> >> > Hello all:
> >> > I was unable to compile the latest version (1.3) on my intel
> 64bit system
> >> with the intel compilers (version 9.0). Configuration goes fine,
but I
> get this
> >> error when running make:
> >> >
> >> > ../../ompi/include/mpi.h(203): error: identifier
> "ptrdiff_t" is
> >> undefined
> >> > typedef OMPI_PTRDIFF_TYPE MPI_Aint;
> >> >
> >> > compilation aborted for dt_args.c (cod 21)
> >> >
> >> > My config line was:
> >> > ./configure CC=icc CXX=icpc F77=ifort FC=ifort --prefix=xxx
> >> >
> >> > I've attached my config.log file. Has anyone encourtered
> this? I was
> >> able to build openmpi on this exact system using the gcc/g++
> compilers, however
> >> the intel compilers are substantially faster on our system.
> >> >
> >> > Thanks!
> >> >
> >> >
<config.log>_______________________________________________
> >> > users mailing list
> >> > users_at_[hidden]
> >> > http://www.open-mpi.org/mailman/listinfo.cgi/users
> >>
> >>
> >> --Jeff Squyres
> >> Cisco Systems
> >>
> >>
> >>
> >>
>
<openmp-1.3_output.tar.gz>_______________________________________________
> >> users mailing list
> >> users_at_[hidden]
> >> http://www.open-mpi.org/mailman/listinfo.cgi/users
> >
> >
> > --Jeff Squyres
> > Cisco Systems
> >
> > _______________________________________________
> > users mailing list
> > users_at_[hidden]
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> --Jeff Squyres
> Cisco Systems
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
<openmpi-1.3_64_output.tar.gz>_______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users

--Jeff Squyres
Cisco Systems

_______________________________________________
users mailing list
users_at_[hidden]
http://www.open-mpi.org/mailman/listinfo.cgi/users