[petsc-dev] wrong makefile variables?

Barry Smith bsmith at mcs.anl.gov
Sat Oct 16 08:23:16 CDT 2010


On Oct 16, 2010, at 3:43 AM, Lisandro Dalcin wrote:

> It seems that after changes to BuildSystem, the makefile variables
> PETSC_LIB_BASIC and PETSC_EXTERNAL_LIB_BASIC are not properly set for
> single-library builds.
 
   This is a change.  ./configure now generates PETSC_EXTERNAL_LIB_BASIC  and PETSC_LIB_BASIC is never used

  Barry

> 
> A few days ago we had:
> 
> $ grep _BASIC $PETSC_ARCH/conf/petscvariables
> PETSC_LIB_BASIC = -lpetsc
> PETSC_CONTRIB_BASIC = -lpetsc
> PETSC_SNES_LIB_BASIC = -lpetsc
> PETSC_KSP_LIB_BASIC = -lpetsc
> PETSC_MAT_LIB_BASIC = -lpetsc
> PETSC_VEC_LIB_BASIC = -lpetsc
> PETSC_DM_LIB_BASIC = -lpetsc
> PETSC_TS_LIB_BASIC = -lpetsc
> PETSC_SYS_LIB_BASIC = -lpetsc
> 
> but now:
> 
> $ grep _BASIC $PETSC_ARCH/conf/petscvariables
> SL_LINKER_LIBS = ${PETSC_EXTERNAL_LIB_BASIC}
> PETSC_EXTERNAL_LIB_BASIC = -lX11 -llapack -lblas -lm
> -Wl,-rpath,/usr/lib64/mpich2 -L/usr/lib64/mpich2
> -Wl,-rpath,/usr/lib/gcc/x86_64-redhat-linux/4.4.1
> -L/usr/lib/gcc/x86_64-redhat-linux/4.4.1 -ldl -lmpich -lopa -lpthread
> -lrt -lgcc_s -lmpichf90 -lgfortran -lm -lm -ldl -lmpich -lopa
> -lpthread -lrt -lgcc_s -ldl
> 
> 
> Could any of you check and fix this?
> 
> -- 
> Lisandro Dalcin
> ---------------
> CIMEC (INTEC/CONICET-UNL)
> Predio CONICET-Santa Fe
> Colectora RN 168 Km 472, Paraje El Pozo
> Tel: +54-342-4511594 (ext 1011)
> Tel/Fax: +54-342-4511169




More information about the petsc-dev mailing list