[petsc-users] duplicated libs
Runjian Wu
wurunjian at gmail.com
Mon May 13 21:15:14 CDT 2024
First clarification, NO issues happened. I am just curious about the
duplicated libraries while I compile PFLOTRAN with PETSc.
PETSc version: 3.16.2
Configure Options: --configModules=PETSc.Configure
--optionsModule=config.compilerOptions --with-make-np=4 --with-cc=mpicc
--with-cxx=mpicxx --with-fc=mpif90 --download-fblaslapack=yes
--download-hdf5=/home/wurunjian/petsc_pkg/hdf5-1.12.1.tar.bz2
--download-hdf5-fortran-bindings=yes --download-metis=yes
--download-parmetis=yes --CFLAGS=-O3 --CXXFLAGS=-O3 --FFLAGS=-O3
--with-debugging=0
PETSC_EXTERNAL_LIB_BASIC =
-Wl,-rpath,/home/wurunjian/petsc/arch-linux2-c-opt/lib
-L/home/wurunjian/petsc/arch-linux2-c-opt/lib
-Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/11
-L/usr/lib/gcc/x86_64-linux-gnu/11 -lflapack -lfblas -lhdf5hl_fortran
-lhdf5_fortran -lhdf5_hl -lhdf5 -lparmetis -lmetis -lm -lstdc++ -ldl
-lmpichfort -lmpich -lgfortran -lm -lgfortran -lm -lgcc_s -lquadmath
-lstdc++ -ldl
On Mon, May 13, 2024 at 9:34 PM Satish Balay <balay at mcs.anl.gov> wrote:
> what version of PETSc? What configure command? What do you have for
> PETSC_EXTERNAL_LIB_BASIC?
>
> You can send configure.log for your build to petsc-maint
>
> Generally duplicates should not cause grief. [as one needs them to
> overcome circular dependencies].
>
> What issues are you seeing? [send relevant logs]
>
> If the duplicates are coming form "compiler library" detection part of
> configure - you can skip this part by listing the correct "compiler
> libraries"
>
> for ex: with gcc/gfortran:
>
> LIBS="-lgfortran -lstdc++"
>
> However -lgfortran could be required for gcc - but a duplicate for
> gfortran.
>
> Satish
>
> On Mon, 13 May 2024, Runjian Wu wrote:
>
> > Hi all,
> >
> > After I compiled PETSc, I found some duplicated libs in the variable
> > PETSC_EXTERNAL_LIB_BASIC, e.g., -lm, -lgfortran -lstdc++. I am curious
> how
> > it happened and how to remove the duplicates?
> >
> > Thanks,
> >
> > Runjian Wu
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240514/fe4c79bd/attachment.html>
More information about the petsc-users
mailing list