Why is this not being tested at ./configure time?    If the 
--with-shared-libraries is on, then each package tested needs to also test that 
the package can be used with shared libraries.  Easy enough to test. Matt could 
you please add this? 

   Thanks

   Barry




On Oct 3, 2013, at 10:27 AM, Michel Laurent <[email protected]> wrote:

> Hi, 
> 
> Here is what I did to install petsc-3.4.2, download today on the web: 
> 
> CURR=$PWD
> PETSC="petsc-3.4.2"
> LAPACK="lapack-3.4.2"
> CMAKE="cmake-2.8.11.2"
> 
> tar xvfz $PETSC.tar.gz
> tar xvfz $LAPACK.tar.gz
> tar xvfz $CMAKE.tar.gz
> 
> sudo apt-get install gfortran
> 
> cd $CMAKE
> ./configure --prefix=/home/lmichel/cfsSIA3D/cmake
> make
> make install
> cd ..
> rm -Rf $CMAKE
> CMAKE=$CMAKE/bin/cmake
> 
> cd $LAPACK
> mkdir build
> cd build
> $CMAKE -D CMAKE_BUILD_TYPE:STRING="Release" -D 
> CMAKE_INSTALL_PREFIX:STRING="$CURR/lapack" ..
> make
> make install
> cd ..
> cd ..
> rm -Rf $LAPACK
> 
> cd $PETSC
> export PETSC_DIR=$PWD
> ./configure --prefix=$CURR/petsc --PETSC_ARCH=cxx_gnu --with-clanguage=C++ 
> --with-debugging=0 --with-mpi=0 --with-blas-lib=$CURR/lapack/lib/libblas.a 
> --with-lapack-lib=$CURR/lapack/lib/liblapack.a
> make PETSC_DIR=$CURR/$PETSC PETSC_ARCH=cxx_gnu all
> 
> Now, the thing is I get following error messages: 
> 
> making shared libraries in /home/lmichel/cfsSIA3D/petsc-3.4.2/cxx_gnu/lib
> building libpetsc.so
> /usr/bin/ld: /home/lmichel/cfsSIA3D/lapack/lib/liblapack.a(dgeev.f.o): 
> relocation R_X86_64_32 against `.rodata' can not be used when making a shared 
> object; recompile with -fPIC
> /home/lmichel/cfsSIA3D/lapack/lib/liblapack.a: could not read symbols: Bad 
> value
> collect2: error: ld returned 1 exit status
> make[2]: [shared_linux] Error 1 (ignored)
> =========================================
> **************************ERROR************************************
>   Error during compile, check cxx_gnu/conf/make.log
>   Send it and cxx_gnu/conf/configure.log to [email protected]
> ********************************************************************
> make: *** [all] Error 1
> 
> and I can figure out what is wrong. Can you help me?
> 
> Cheers, 
> 
> LM
> 
> -- 
> Laurent Michel
> Docteur ès Sciences
> 
> EPFL SB IACS ASN
> MA C2 644
> 
> +41 21 693 42 46
> +41 77 428 83 94
> 
> http://mathicse.epfl.ch/~lmichel
> <make.log><configure.log>

Reply via email to