[petsc] 05/07: cancel valgrind build: bad shared flags

Drew Parsons dparsons at moszumanska.debian.org
Thu Oct 1 18:32:30 UTC 2015


This is an automated email from the git hooks/post-receive script.

dparsons pushed a commit to branch master
in repository petsc.

commit 63daaa25dc343a05dee09754abe3497facaccaf6
Author: Drew Parsons <dparsons at debian.org>
Date:   Fri Oct 2 00:48:31 2015 +0800

    cancel valgrind build: bad shared flags
    
    The build compiles with valgrind but fails to link:
      /usr/bin/ld: /usr/lib/valgrind/libcoregrind-amd64-linux.a(libcoregrind_amd64_linux_a-m_main.o): relocation R_X86_64_32S against `vgPlain_interim_stack' can not be used when making a shared object; recompile with -fPIC
      /usr/lib/valgrind/libcoregrind-amd64-linux.a: error adding symbols: Bad value
      collect2: error: ld returned 1 exit status
    
    Adding -fPIC to LDFLAGS does not help.
    
    I think the error means that for PETSc to be built with -fPIC, then
    valgrind should also be built with -fPIC (which it is not),
    
    The -fPIC flag is generated by PETSc configuration,
    cf. config/BuildSystem/config/setCompilers.py
    
    It can be switched off with --with-pic=0, but that is incompatible
    with --with-shared-libraries.  And we want PETSc to be a shared library.
    
    Could be the only fix is to ask if valgrind can be built with -fPIC
    (bug reported Bug#800614)
    
    So we'll have to do without valgrind for now :(
---
 debian/control | 3 +--
 debian/rules   | 1 -
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/debian/control b/debian/control
index ab0dd35..d46576b 100644
--- a/debian/control
+++ b/debian/control
@@ -12,8 +12,7 @@ Build-Depends: debhelper (>= 9), quilt, python (>= 2.2), gfortran,
  libspooles-dev (>= 2.2-6), libhypre-dev (>= 2.4.0), libptscotch-dev,
  libhdf5-mpi-dev (>= 1.8.8),
  libblacs-mpi-dev, libscalapack-mpi-dev, libmumps-dev,
- libfftw3-dev, libfftw3-mpi-dev, libssl-dev,
- valgrind-mpi
+ libfftw3-dev, libfftw3-mpi-dev, libssl-dev
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/petsc.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/petsc.git
 Homepage: http://www.mcs.anl.gov/petsc
diff --git a/debian/rules b/debian/rules
index be13747..7fe96a8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -86,7 +86,6 @@ CONFIGURATION_OPTIONS=--with-shared-libraries \
 	  --with-ptscotch-lib=[/usr/lib/libptesmumps.so,/usr/lib/libptscotch.so,/usr/lib/libptscotcherr.so] \
 	  --with-fftw=1 --with-fftw-include=/usr/include \
 	  --with-fftw-lib=[/usr/lib/$(DEB_HOST_MULTIARCH)/libfftw3.so,/usr/lib/$(DEB_HOST_MULTIARCH)/libfftw3_mpi.so] \
-	  --with-valgrind=1 --with-valgrind-pkg-config=/usr/lib/pkgconfig \
 	  $(PETSC_HDF5_FLAGS) --CXX_LINKER_FLAGS="-Wl,--no-as-needed" 
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/petsc.git



More information about the debian-science-commits mailing list