[petsc-dev] petsc/master: unable to link in C++ with last night PETSC_WITH_EXTERNAL_LIB variable changes
Éric Chamberland
Eric.Chamberland at giref.ulaval.ca
Sat Feb 10 08:42:37 CST 2018
Hi,
we used to link our c++ code with PETSc using PETSC_WITH_EXTERNAL_LIB
variable defined in $PETSC_DIR/lib/petsc/conf/petscvariables and
everything was fine until this night.
It seems some libs have vanished from this variable, see the diff here:
-lptscotcherr
-lesmumps
-lscotch
-lscotcherr
-lm
-lX11
+-lstdc++
-ldl
-lmpi_usempi
-lmpi_mpifh
-lmpi
-lgfortran
-lm
-lgfortran
-lm
-lgcc_s
-lquadmath
-lpthread
--ldl
--lmpi_cxx
--lmpi
--lstdc++
--lm
--lgcc_s
--lpthread
-lrt
-lm
-lpthread
-lz
+-lstdc++
-ldl
causing these errors at link phase for us:
/pmi/cmpbib/compilation_BIB_gcc_redhat_petsc-master_debug/COMPILE_AUTO/GIREF/obj/dev/StatistiqueMemoire.o:
In function `MPI::Op::Init(void (*)(void const*, void*, int,
MPI::Datatype const&), bool)':
/opt/openmpi-1.10.2/include/openmpi/ompi/mpi/cxx/op_inln.h:122: undefined reference to `ompi_mpi_cxx_op_intercept'
/pmi/cmpbib/compilation_BIB_gcc_redhat_petsc-master_debug/COMPILE_AUTO/GIREF/obj/dev/StatistiqueMemoire.o:
In function `MPI::Intracomm::Create_graph(int, int const*, int const*,
bool) const':
/opt/openmpi-1.10.2/include/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined reference to `MPI::Comm::Comm()'
/pmi/cmpbib/compilation_BIB_gcc_redhat_petsc-master_debug/COMPILE_AUTO/GIREF/obj/dev/StatistiqueMemoire.o:
In function `MPI::Intercomm::Merge(bool) const':
/opt/openmpi-1.10.2/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23: undefined reference to `MPI::Comm::Comm()'
/pmi/cmpbib/compilation_BIB_gcc_redhat_petsc-master_debug/COMPILE_AUTO/GIREF/obj/dev/StatistiqueMemoire.o:
In function `MPI::Intracomm::Split(int, int) const':
/opt/openmpi-1.10.2/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23: undefined reference to `MPI::Comm::Comm()'
/pmi/cmpbib/compilation_BIB_gcc_redhat_petsc-master_debug/COMPILE_AUTO/GIREF/obj/dev/StatistiqueMemoire.o:
In function `MPI::Intracomm::Create(MPI::Group const&) const':
/opt/openmpi-1.10.2/include/openmpi/ompi/mpi/cxx/intracomm_inln.h:23: undefined reference to `MPI::Comm::Comm()'
/pmi/cmpbib/compilation_BIB_gcc_redhat_petsc-master_debug/COMPILE_AUTO/GIREF/obj/dev/StatistiqueMemoire.o:
In function `MPI::Intracomm::Clone() const':
Is this a normal and definitive change or an unwanted/unobserved bug?
Thanks,
Eric
ps: here are the logs:
this night:
---------
http://www.giref.ulaval.ca/~cmpgiref/petsc-master-debug/2018.02.10.02h00m01s_configure.log
http://www.giref.ulaval.ca/~cmpgiref/petsc-master-debug/2018.02.10.02h00m01s_make.log
a day before:
------------
http://www.giref.ulaval.ca/~cmpgiref/petsc-master-debug/2018.02.09.02h00m02s_configure.log
http://www.giref.ulaval.ca/~cmpgiref/petsc-master-debug/2018.02.09.02h00m02s_make.log
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20180210/75c51271/attachment.html>
More information about the petsc-dev
mailing list