sieve-dev error compiling PETSc-3.1 with Sieve on Blue Gene/L

Matthew Knepley knepley at gmail.com
Sun Apr 4 13:58:48 CDT 2010


Yes, this is a bug in the IBM compiler version I have had other places. In
the latest
petsc-dev, I just commented out the #include of ALE_args.hh in ALE.hh. This
fixes
it. Everyone hates compiler bugs.

 Thanks,

   Matt

On Sun, Apr 4, 2010 at 1:52 PM, Shi Jin <jinzishuai at gmail.com> wrote:

> Hi,
>
> I was recently asked to port my code developed a year ago using
> petsc-dev-sieve.
> I just checked, the code works without problem on a Linux cluster with
> gcc-4.3.2 built against petsc-3.1.0.
>
> However, I got the following error built on the BlueGene. I used the
> following steps:
>
>    - ./configure —with-clanguage=C++ —with-sieve=1 —with-opt-sieve=1
>    —download-chaco=1 —download-boost=1 —with-shared=0 —with-debugging=no
>    —with-mpi-shared=0 —download-f-blas-lapack=1 —with-batch
>    - cqsub -q debug -n 2 -t 00:10:00 conftest. Make sure the job is
>    finished by "cqstat".
>    - ./reconfigure.py
>
> It works fine. The output is
>
> Compilers:
>   C Compiler:         mpicc  -Wall -Wwrite-strings -Wno-strict-aliasing -O
>   C++ Compiler:       mpicxx  -Wall -Wwrite-strings -Wno-strict-aliasing -O
>
>   Fortran Compiler:   mpif77  -Wall -Wno-unused-variable -O
> Linkers:
>   Static linker:   /usr/bin/ar cr
> MPI:
>   Includes: -I/bgl/BlueLight/V1R3M4_300_2008-080728/ppc/bglsys/include
> BLAS/LAPACK: -Wl,-rpath,/home/guntaka/src/petsc-3.1-p0/linux-gnu-cxx-opt/lib -L/home/guntaka/src/petsc-3.1-p0/linux-gnu-cxx-opt/lib -lflapack -Wl,-rpath,/home/guntaka/src/petsc-3.1-p0/linux-gnu-cxx-opt/lib -L/home/guntaka/src/petsc-3.1-p0/linux-gnu-cxx-opt/lib -lfblas
>
> Chaco:
>   Library:  -Wl,-rpath,/home/guntaka/src/petsc-3.1-p0/linux-gnu-cxx-opt/lib -L/home/guntaka/src/petsc-3.1-p0/linux-gnu-cxx-opt/lib -lchaco
> Sieve:
>   Includes: -I/home/guntaka/src/petsc-3.1-p0/include/sieve
>
> Boost:
>   Includes: -I/home/guntaka/src/petsc-3.1-p0/externalpackages/Boost/ -I/bgl/BlueLight/V1R3M4_300_2008-080728/ppc/bglsys/include
> PETSc:
>   PETSC_ARCH: linux-gnu-cxx-opt
>   PETSC_DIR: /home/guntaka/src/petsc-3.1-p0
>
>   Clanguage: Cxx
>   Scalar type: real
>   Precision: double
>   shared libraries: disabled
>   dynamic libraries: disabled
>   Memory alignment: 16
> xxx=========================================================================xxx
>
>    Configure stage complete. Now build PETSc libraries with:
>    make PETSC_DIR=/home/guntaka/src/petsc-3.1-p0 PETSC_ARCH=linux-gnu-cxx-opt all
>
>
> xxx=========================================================================xxx
>
>
> Then I moved ahead to build it
>
> make PETSC_DIR=/home/guntaka/src/petsc-3.1-p0 PETSC_ARCH=linux-gnu-cxx-opt all
> But I got the following error in compiling sieve:
> /home/guntaka/src/petsc-3.1-p0/include/sieve/ALE_args.hh: In member function `ALE::ArgValue ALE::ArgDB::operator[](const string&) const':
>
> /home/guntaka/src/petsc-3.1-p0/include/sieve/ALE_args.hh:132: error: call of overloaded `ArgValue(ALE::ArgValue)' is ambiguous
> /home/guntaka/src/petsc-3.1-p0/include/sieve/ALE_args.hh:64: note: candidates are: ALE::ArgValue::ArgValue(const ALE::ArgValue&)
>
> /home/guntaka/src/petsc-3.1-p0/include/sieve/ALE_args.hh:67: note:                 ALE::ArgValue::ArgValue(const boost::program_options::variable_value&)
>
> I am using the mpicxx which is using g++ 3.4.3:
>
> guntaka at fr0103en:~/src/petsc-3.1-p0> mpicxx -show
>
> /bgl/BlueLight/V1R3M4_300_2008-080728/ppc/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++ -I/bgl/BlueLight/V1R3M4_300_2008-080728/ppc/bglsys/include -L/bgl/BlueLight/V1R3M4_300_2008-080728/ppc/bglsys/lib -lcxxmpich.rts -lmpich.rts -L/bgl/BlueLight/V1R3M4_300_2008-080728/ppc/bglsys/lib -lmsglayer.rts -ldevices.rts -lrts.rts -ldevices.rts -lrts.rts
>
> guntaka at fr0103en:~/src/petsc-3.1-p0> /bgl/BlueLight/V1R3M4_300_2008-080728/ppc/blrts-gnu/bin/powerpc-bgl-blrts-gnu-g++ --version
>
> I remember there was some issues with older versions of GCC. Not sure this is the same problem.
>
> Has anyone have any experience on this?
>
> Thank you very much.
>
> Shi
> powerpc-bgl-blrts-gnu-g++ (GCC) 3.4.3
>
> /home/guntaka/src/petsc-3.1-p0/include/sieve/ALE_args.hh:132: error:   initializing temporary from result of `ALE::ArgValue::ArgValue(const boost::program_options::variable_value&)'
>
>
>
>
>
> --
> Shi Jin, Ph.D.
>
>


-- 
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/sieve-dev/attachments/20100404/e3e0cf6d/attachment.htm>


More information about the sieve-dev mailing list