Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] OpenMPI Compilation Error
From: George Bosilca (bosilca_at_[hidden])
Date: 2014-06-05 13:12:21


A fix has been pushed in the trunk (r31955). Once reviewed it will
make it to the next release 1.8.2.

  George.

On Thu, Jun 5, 2014 at 11:29 AM, Jeff Squyres (jsquyres)
<jsquyres_at_[hidden]> wrote:
> George and I are together at the MPI Forum this week -- we just looked at this in more detail; it looks like this is a more pervasive problem.
>
> Let us look at this a bit more...
>
>
> On Jun 5, 2014, at 10:37 AM, George Bosilca <bosilca_at_[hidden]> wrote:
>
>> Alan,
>>
>> I think we forgot to cleanup after a merge and as a result we have
>> c_destweights and c_sourceweights defined twice. Please try the
>> following patch and let us know if this fixes your issue.
>>
>> Index: ompi/mpi/fortran/mpif-h/dist_graph_create_adjacent_f.c
>> ===================================================================
>> --- ompi/mpi/fortran/mpif-h/dist_graph_create_adjacent_f.c (revision 31954)
>> +++ ompi/mpi/fortran/mpif-h/dist_graph_create_adjacent_f.c (working copy)
>> @@ -72,8 +72,6 @@
>> {
>> MPI_Info c_info;
>> MPI_Comm c_comm_old, c_comm_graph;
>> - const int *c_destweights, *c_sourceweights;
>> -
>> OMPI_ARRAY_NAME_DECL(sources);
>> OMPI_ARRAY_NAME_DECL(sourceweights);
>> OMPI_ARRAY_NAME_DECL(destinations);
>>
>> George.
>>
>>
>> On Thu, Jun 5, 2014 at 12:34 AM, Alan Sang Loon <alan988_at_[hidden]> wrote:
>>> Hello,
>>>
>>> I have downloaded OpenMPI-1.8.1 and compiled it using Intel Compilers (Intel
>>> Composer XE Suites 2013) and the command used is as follow:
>>>
>>> [Code]
>>> ./configure --prefix=/opt/openmpi-1.8.1 CC=icc CXX=icpc F77=ifort FC=ifort
>>> make all install
>>> [/code]
>>>
>>> Everything works just fine except I realized that the MPI library was built
>>> for 32-bit integers (fort integer size=4)
>>>
>>> Then I reconfigured it using this command:
>>>
>>> [Code]
>>> ./configure --prefix=/opt/openmpi-1.8.1 CC=icc CXX=icpc F77=ifort FC=ifort
>>> FFLAGS=-i8 FCFLAGS=-i8
>>> [/code]
>>>
>>> However, when I tried to compile it using the make all install command, some
>>> errors appeared at the end of the compilation which is described as
>>> followed:
>>>
>>> [qoute]
>>> ... ...
>>> CC pdist_graph_create_adjacent_f.lo
>>> pdist_graph_create_adjacent_f.c(79): error: "c_sourceweights" has already
>>> been declared in the current scope
>>> OMPI_ARRAY_NAME_DECL(sourceweights);
>>> ^
>>>
>>> pdist_graph_create_adjacent_f.c(81): error: "c_destweights" has already been
>>> declared in the current scope
>>> OMPI_ARRAY_NAME_DECL(destweights);
>>> ^
>>>
>>> compilation aborted for pdist_graph_create_adjacent_f.c (code 2)
>>> make[3]: *** [pdist_graph_create_adjacent_f.lo] Error 1
>>> make[3]: Leaving directory
>>> `/opt/openmpi-1.8.1/ompi/mpi/fortran/mpif-h/profile'
>>> make[2]: *** [all-recursive] Error 1
>>> make[2]: Leaving directory `/opt/openmpi-1.8.1/ompi/mpi/fortran/mpif-h'
>>> make[1]: *** [all-recursive] Error 1
>>> make[1]: Leaving directory `/opt/openmpi-1.8.1/ompi'
>>> make: *** [all-recursive] Error 1
>>> [/qoute]
>>>
>>> I have no idea of what is happening. Would anyone please help me to solve
>>> the problem if it is possible?
>>>
>>> Thank you very much.
>>>
>>> _______________________________________________
>>> users mailing list
>>> users_at_[hidden]
>>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
>
> --
> Jeff Squyres
> jsquyres_at_[hidden]
> For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users