[mvapich-discuss] MVAPICH undefined refence to `MPI_INIT_`

Jonathan Perkins perkinjo at cse.ohio-state.edu
Thu May 6 14:48:10 EDT 2010


Good to hear.  I'm cc'ing this to the list for everyone's information.

On Thu, May 6, 2010 at 2:36 PM, Hongfa Huo <hongfa.huo at gmail.com> wrote:

> It works. Thanks very much.
>
> Best regards,
>
> Hongfa
>
> Jonathan Perkins wrote:
>
>> I looked at your config-mine.log and see that you're using the gnu c
>> compiler but the intel fortran compiler.  I believe that this is causing the
>> problem.  Please use the intel c compilers if you wish to use the intel
>> fortran compiler.  You can achieve this by setting CC=icc and CXX=icpc.
>>  Please let us know if this works.
>>
>> On Mon, May 3, 2010 at 11:39 PM, Hongfa Huo <hongfa.huo at gmail.com<mailto:
>> hongfa.huo at gmail.com>> wrote:
>>
>>    Dear Mr. Perkins,
>>
>>    Thanks very much for your reply. Here is what I did and attached
>>    are the .log files.
>>
>>    1. I downloaded mvapich-1.2 and extracted the tar ball.
>>    2. change the make.mvapich.gen2 files:
>>       export F77=${F77:-ifort}
>>        export F90=${F90:-ifort}
>>      To make sure I run $export F77=ifort
>>                                  $export F90=ifort
>>    3. I run
>>             $./make.mvapich.gen2 --enabled-f90
>>    I got a error message as:
>>              viainit.c: In function āxrc_initā:
>>    viainit.c:1148: error: āIBV_DEVICE_XRCā undeclared (first use in
>>
>>    this function)
>>    viainit.c:1148: error: (Each undeclared identifier is reported
>>    only once
>>    viainit.c:1148: error: for each function it appears in.)
>>    viainit.c:1165: warning: assignment makes pointer from integer
>>    without a cast
>>    make[3]: *** [viainit.o] Error 1
>>    Exit status from make was 2
>>    make[2]: *** [mpilib] Error 1
>>    make[1]: *** [mpi-modules] Error 2
>>    make: *** [mpi] Error 2
>>    4. I searched online and removed the -DXRC option in line 86 of
>>    make.mvapich.gen2.
>>    export CFLAGS=${CFLAGS:--D${ARCH} ${PROCESSOR} ${PTMALLOC}
>>    -DEARLY_SEND_COMPLETION -DMEMORY_SCALE -DVIADEV_RPUT_SUPPORT
>>    -D_SMP_ -D_SMP_RNDV_ * -DXRC* -DCH_GEN2 -D_GNU_SOURCE
>>    ${COMPILER_FLAG}  -I${IBHOME}/include $OPT_FLAG}
>>    5. I redo the installation without -DXRC. The installation was
>>    gave error when testing compiling the example files.
>>
>>       pi3f90.o(.text+0x37): In function `MAIN__':
>>    : undefined reference to `mpi_init_'
>>    pi3f90.o(.text+0x50): In function `MAIN__':
>>    : undefined reference to `mpi_comm_rank_'
>>    pi3f90.o(.text+0x6c): In function `MAIN__':
>>    : undefined reference to `mpi_comm_size_'
>>    pi3f90.o(.text+0x1e7): In function `MAIN__':
>>    : undefined reference to `mpi_bcast_'
>>    pi3f90.o(.text+0x2bb): In function `MAIN__':
>>    : undefined reference to `mpi_reduce_'
>>    pi3f90.o(.text+0x352): In function `MAIN__':
>>    : undefined reference to `mpi_finalize_'
>>
>>    Attached please find the .log files for installing Mvapich.
>>
>>    I really appreciate your kind help !
>>
>>    Best regards,
>>
>>    Hongfa
>>
>>
>>    On Mon, May 3, 2010 at 6:34 PM, Jonathan Perkins
>>    <perkinjo at cse.ohio-state.edu <mailto:perkinjo at cse.ohio-state.edu>>
>>
>>    wrote:
>>
>>        Hello Mr. Huo.  I tried to reproduce your problem using the
>>        same version of intel compilers however everything worked
>>        fine.  Can you provide the *.log files so that we can debug
>>        this further.  Anything peculiar or other issues encountered
>>        during the build should be noted as well.  Thanks in advance.
>>
>>        On Sun, May 2, 2010 at 10:47 PM, Hongfa Huo
>>        <hongfa.huo at gmail.com <mailto:hongfa.huo at gmail.com>> wrote:
>>
>>            Hi all,
>>
>>            I have a problem installing the MVAPICH1.2. It was
>>            installed with make.mvapich.gen2 file with the
>>            F90=${F90-ifort} modified in the make.mvapich.ge2 file and
>>            --enabled-f90 options.
>>
>>            intel fortran 10.1 was used.
>>
>>            The problem is: when I tested the installation with
>>              # mpif90 ../examples/pi3f90.f90
>>            I got error message:
>>
>>            pi3f90.o(.text+0x37): In function `MAIN__':
>>            : undefined reference to `mpi_init_'
>>            pi3f90.o(.text+0x50): In function `MAIN__':
>>            : undefined reference to `mpi_comm_rank_'
>>            pi3f90.o(.text+0x6c): In function `MAIN__':
>>            : undefined reference to `mpi_comm_size_'
>>            pi3f90.o(.text+0x1e7): In function `MAIN__':
>>            : undefined reference to `mpi_bcast_'
>>            pi3f90.o(.text+0x2bb): In function `MAIN__':
>>            : undefined reference to `mpi_reduce_'
>>            pi3f90.o(.text+0x352): In function `MAIN__':
>>            : undefined reference to `mpi_finalize_'
>>
>>            Would you please give me some clue on this?
>>
>>            Best regards,
>>
>>            Hongfa
>>
>>
>>            _______________________________________________
>>            mvapich-discuss mailing list
>>            mvapich-discuss at cse.ohio-state.edu
>>            <mailto:mvapich-discuss at cse.ohio-state.edu>
>>
>>
>> http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>>
>>
>>
>>
>>        --         Jonathan Perkins
>>
>>
>>
>>
>>
>> --
>> Jonathan Perkins
>>
>
>
> --
> Hongfa Huo
> Ph.D. Candidate
> Department of Mechanical and Nuclear Engineering
> The Pennsylvania State University
> State College, PA 16802
>                                                Current Address:
> 402 Montgomery Knight Building
> Georgia Institute of Technology
> Atlanta,  GA  30332-0150
> Email: hongfa at psu.edu
> Phone: 404-769-4653
>
>


-- 
Jonathan Perkins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20100506/cf72d701/attachment-0001.html


More information about the mvapich-discuss mailing list