[Trilinos-Users] Installation; Better situation but another Problem

amjad ali amjad11 at gmail.com
Tue Sep 16 02:32:13 MDT 2008


Hi, Thanks for motivating.
Now I used following but error in start. (config failed)

 --enable-mpi --with-mpi-compilers --with-mpi=/home/openmpi-1.2.6

Following gave the same error in Teuchos which above gave:

 --enable-mpi --with-mpi-compilers

If I use only --with-mpi=/home/openmpi-1.2.6 then config run
successfully but "make examples" gets failed.

"--with-mpi-compilers" behaves as alternative to

"CC=/home/openmpi-1.2.6/bin/mpicc CXX=/home/openmpi-1.2.6/bin/mpicxx
F77=/home/openmpi-1.2.6/bin/mpif77 "

regards,
AA.

On Tue, Sep 16, 2008 at 12:31 PM, Daniele Avitabile
<d.avitabile at gmail.com> wrote:
> Amjad,
>
> first Trilinos installation is sometimes painful... as you're experiencing
> yourself. There are a lot of things that may go wrong. Which is why I have
> given you, so far, wrong suggestions. I would try to
>
> --enable-mpi --with-mpi-compilers
>
> and I would also try to specify the mpiroot directory. I am sure  you have
> tried already one (or many) of these flags combined together. I suggest you
> to wipe out completely your build directory and restart from scratch with a
> new configuration file that contains
> --enable-mpi --with-mpi-compilers and the mpiroot *without* specifying the
> CC flags. Trilinos should be capable of calling mpicxx. Try and understand
> whether Trilinos recognizes your mpi path. I have never had problems with
> that, and I have been using openmpi on RedHat, Ubuntu, MacOS X and Solaris.
>
> Dont' give up...
>
> Daniele
>
>
> On Tue, Sep 16, 2008 at 8:22 AM, amjad ali <amjad11 at gmail.com> wrote:
>>
>> Hi,
>> Thanks.
>> On Tue, Sep 16, 2008 at 12:15 PM, Daniele Avitabile
>> <d.avitabile at gmail.com> wrote:
>> > Heidi is right,
>> >
>> > you aren't compiling with mpic++ but with g++, something must have gone
>> > wrong with the flags.
>>
>> Its OK but note that using options "CC=/home/openmpi-1.2.6/bin/mpicc
>> CXX=/home/openmpi-1.2.6/bin/mpicxx F77=/home/openmpi-1.2.6/bin/mpif77"
>>
>> leads to error.
>>
>> So what to in this situation?
>>
>> Regards,
>> AA.
>> >
>> > Best.
>> >
>> > Daniele
>> >
>> > On Tue, Sep 16, 2008 at 6:50 AM, amjad ali <amjad11 at gmail.com> wrote:
>> >>
>> >> Hi, Heidi,
>> >>
>> >> I experienced that runing configure with options
>> >> "--with-mpi-compilers" or "CC=/home/openmpi-1.2.6/bin/mpicc
>> >> CXX=/home/openmpi-1.2.6/bin/mpicxx F77=/home/openmpi-1.2.6/bin/mpif77"
>> >> both leads to serious error in Teuchos in start.
>> >>
>> >> But configure runs fine with option "--with-mpi=/home/openmpi-1.2.6".
>> >>
>> >> After that
>> >>
>> >> 1) make  (It runs fine)
>> >> 2) make  install (It runs fine)
>> >> 3) make examples  (it got stuck saying some problem related to MPI)
>> >>
>> >> regards,
>> >> AA.
>> >>
>> >> :
>> >> :
>> >> :
>> >> ed reference to `MPI::Comm::Set_errhandler(MPI::Errhandler const&)'
>> >> cxx_main.o:(.rodata._ZTVN3MPI9IntracommE[vtable for
>> >> MPI::Intracomm]+0xd4): undefined reference to
>> >> `MPI::Comm::Set_errhandler(MPI::Errhandler const&)'
>> >> cxx_main.o:(.rodata._ZTVN3MPI4CommE[vtable for MPI::Comm]+0xd4):
>> >> undefined reference to `MPI::Comm::Set_errhandler(MPI::Errhandler
>> >> const&)'
>> >> cxx_main.o:(.rodata._ZTVN3MPI8DatatypeE[vtable for
>> >> MPI::Datatype]+0x3c): undefined reference to `MPI::Datatype::Free()'
>> >> collect2: ld returned 1 exit status
>> >> make[4]: *** [CLP_example.exe] Error 1
>> >> make[4]: Leaving directory
>> >>
>> >>
>> >> `/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/example/CommandLineProcessor'
>> >> make[3]: *** [all-recursive] Error 1
>> >> make[3]: Leaving directory
>> >>
>> >> `/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos/example'
>> >> make[2]: *** [examples] Error 2
>> >> make[2]: Leaving directory
>> >> `/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages/teuchos'
>> >> Error, the make of target examples failed for the package !
>> >> make[1]: *** [examples] Error 2
>> >> make[1]: Leaving directory
>> >> `/home/amjad/softwares/trilinos-8.0.8/LINUX_MPI/packages'
>> >> make: *** [examples] Error 2
>> >> [root at localhost LINUX_MPI]#
>> >>
>> >> _______________________________________________
>> >> Trilinos-Users mailing list
>> >> Trilinos-Users at software.sandia.gov
>> >> http://software.sandia.gov/mailman/listinfo/trilinos-users
>> >>
>> >
>> >
>
>



More information about the Trilinos-Users mailing list