<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr">Hi PETSc Team,<br><br><br><b>I successfully configured PETSc with TAU using:</b><br><br>


        
        
        
        


<p style="margin-bottom: 0in; font-weight: normal; text-decoration: none">
<font color="#000000"><span style="background: transparent">>  ./configure
--with-mpi=1 --with-cc=tau_cc.sh --with-cxx=mpicxx --with-fc=mpif90
--download-f-blas-lapack=${SESKADIR}/packages/downloads/fblaslapacklinpack-3.1.1.tar.gz</span></font></p>

>  make PETSC_DIR=/home/hills/seska/packages/petsc PETSC_ARCH=linux-gnu-cxx-opt all<br><br><b>While building I received this error message:</b><br><br>[100%] Built target petsc<br><br>**************************ERROR************************************<br>  Error during compile, check linux-gnu-cxx-opt/conf/make.log<br>  Send it and linux-gnu-cxx-opt/conf/configure.log to petsc-maint@mcs.anl.gov<br>********************************************************************<br><br><br>Because of their large file size, I've attached links to the log files below. Any assistance would be greatly appreciated.<b><br></b><br>make.log - https://www.dropbox.com/s/n6y8nl8go4s41tq/make.log?dl=0<br>configure.log - https://www.dropbox.com/s/ipvt4urvgldft8x/configure.log?dl=0<br><b><br><br></b>Matthew <br><br><br><div>> Date: Mon, 22 Sep 2014 10:24:15 -0500<br>> From: balay@mcs.anl.gov<br>> To: hillsmattc@outlook.com<br>> CC: petsc-users@mcs.anl.gov<br>> Subject: Re: [petsc-users] PETSc/TAU configuration<br>> <br>> On Mon, 22 Sep 2014, Matthew Hills wrote:<br>> <br>> > Hi PETSc Team,<br>> > <br>> > I'm still experiencing difficulties  with configuring PETSc with TAU. I'm currently:<br>> > <br>> > building OpenMPI<br>> > 1. ./configure --prefix=${SESKADIR}/packages/openmpi <br>> > 2. make all install<br>> > <br>> > set library path<br>> > 1. export LD_LIBRARY_PATH=${SESKADIR}/lib:${SESKADIR}/packages/openmpi /lib:${SESKADIR}/packages/pdt/x86_64/lib:/${SESKADIR}/packages/tau/x86_64/lib:${SESKADIR}/packages/petsc/${PETSC_ARCH}/lib:$LD_LIBRARY_PATH<br>> > 2. export PATH=${SESKADIR}/bin:${SESKADIR}/packages/petsc/${PETSC_ARCH}/bin:$PATH<br>> > <br>> > build PDT (pdtoolkit-3.20)<br>> > 1. ./configure -GNU<br>> > 2. export PATH=${SESKADIR}/packages/pdt/x86_64/bin:${SESKADIR}/packages/pdt/x86_64//bin:$PATH<br>> > 5. make<br>> > 6. make install<br>> > <br>> > build TAU (tau-2.23.1) using OpenMPI<br>> > 1. ./configure -prefix=`pwd` -cc=mpicc -c++=mpicxx -fortran=mpif90 -pdt=${SESKADIR}/packages/pdt -mpiinc=${SESKADIR}/packages/openmpi/include -mpilib=${SESKADIR}/packages/openmpi/lib -bfd=download<br>> > 2. export PATH=${SESKADIR}/packages/tau/x86_64/bin:$PATH<br>> > 3. make install<br>> > <br>> > build fblaslapacklinpack-3.1.1<br>> > 1. make<br>> <br>> Should have said '--download-fblaslapack' would be fine here [as it<br>> uses mpif90 - not tau_cc.sh]. Building seperately is also fine.<br>> <br>> > build PETSc using TAU_CC/MPI<br>> > 1. export TAU_MAKEFILE=${SESKADIR}/packages/tau/x86_64/lib/Makefile.tau-mpi-pdt<br>> > 2. ./configure --prefix='pwd' --with-mpi=1 --with-cc=tau_cc.sh  --with-cxx=mpicxx --with-fc=mpif90  --with-blas-lapack-dir=${SESKADIR}/packages/fblaslapack<br>> <br>> --prefix='pwd' doesn't make sense. Please remove it.<br>> <br>> > Error: Tried looking for file: /tmp/petsc-U9YCMv/config.setCompilers/conftest<br>> > Error: Failed to link with TAU options<br>> > Error: Command(Executable) is -- gcc<br>> <br>> configure.log looks complete [and indicates a successful run]. Did the<br>> messages above come during configure step on the terminal?<br>> <br>> Can you try the following and see if PETSc builds successfully? [but<br>> recommend rerunning configure first - without --prefix option]<br>> <br>> make PETSC_DIR=/home/hills/seska/packages/petsc PETSC_ARCH=linux-gnu-cxx-opt all<br>> <br>> Satish<br>> <br>> > <br>> > <br>> > Attached you'll find my configure log. Any assistance would be greatly appreciated.<br>> > <br>> > Warm regards,<br>> > Matthew<br>> > <br>> > > Date: Tue, 16 Sep 2014 08:21:41 -0500<br>> > > From: balay@mcs.anl.gov<br>> > > To: hillsmattc@outlook.com<br>> > > CC: petsc-users@mcs.anl.gov<br>> > > Subject: Re: [petsc-users] PETSc/TAU configuration<br>> > > <br>> > > I haven't tried using TAU in a while - but here are some obvious things to try.<br>> > > <br>> > > 1. --download-mpich [or openmpi] with TAU does not make sense.<br>> > > <br>> > > You would have to build MPICH/OpenMPI first.<br>> > > <br>> > > Then build TAU to use this MPI.<br>> > > <br>> > > And then build PETSc to use this TAU_CC/MPI<br>> > > <br>> > > 2. I would use only tau_cc.sh - and not bother with c++/fortran<br>> > > <br>> > > i.e [with TAU build with a given mpicc] - configure PETSc with:<br>> > > ./configure --with-cc=tau_cc.sh --with-cxx=mpicxx --with-fc=mpif90<br>> > > <br>> > > 3. Do not use any --download-package when using tau_cc.sh. First check<br>> > > if you are able to use TAU with PETSc - without externalpackages [you<br>> > > would need blas,mpi. Use system blas/lapack for blas/lapack - and<br>> > > build MPI as mentioned above for use with TAU and later PETSc]<br>> > > <br>> > > And if you really need these externalpackage [assuming the above basic<br>> > > build with TAU works] - I would recommend the following 2 step build process:<br>> > > <br>> > > <build packages without TAU><br>> > > 4.1. ./configure --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --download-PACKAGE PETSC_ARCH=arch-packages<br>> > > <br>> > > 4.2. Now strip out the petsc relavent stuff from this location<br>> > > rm -f arch-packages/include/petsc*.h<br>> > > <br>> > > 4.3. Now build PETSc with TAU - using these prebuilt-packages<br>> > > <br>> > > ./configure --with-cc=tau_cc.sh --with-cxx=mpicxx --with-fc=mpif90 PETSC_ARCH=arch-tau --with-PACKAGE-dir=`pwd`/arch-packages<br>> > > <br>> > > BTW: the current release is petsc-3.5 - we recommend upgrading to<br>> > > using it [as we usually support the latest release wrt debugging/bug<br>> > > fixes]<br>> > > <br>> > > Satish<br>> > > <br>> > > <br>> > > On Tue, 16 Sep 2014, Matthew Hills wrote:<br>> > > > <br>> > > > Hi PETSc Team,]<br>> > > > <br>> > > > I am experiencing difficulties with configuring PETSc with TAU. I have replaced the standard compilers with the tau_cc.sh, tau_cxx.sh, and tau_f90.sh scripts but this produces multiple errors. I have also attempted to use OpenMPI and MPICH, but both produce their own unique errors.<br>> > > > <br>> > > > After successfully compiling PDT, TAU was compiled with:<br>> > > > <br>> > > > ./configure<br>> > > > -prefix=`pwd`<br>> > > > -cc=gcc<br>> > > > -c++=g++ -fortran=gfortran<br>> > > > -pdt=${SESKADIR}/packages/pdt<br>> > > > -mpiinc=${PETSC_DIR}/${PETSC_ARCH}/include<br>> > > > -mpilib=${PETSC_DIR}/${PETSC_ARCH}/lib -bfd=download<br>> > > > <br>> > > > Attached you'll find the PETSc configuration logs. If any more information is needed please let me know.<br>> > > > <br>> > > > Warm regards,<br>> > > > <br>> > > > Matthew Hills<br>> > > > University of Cape Town<br>> > > <br>> > <br>> >                                        <br>> <br></div></div>
                                          </div></body>
</html>