[petsc-users] external libHYPRE is installed in lib64 and causes a configure error

Andre Massing massing at simula.no
Wed Aug 17 22:15:55 CDT 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dear all

Today I wanted to install petsc-3.1-p8 on a openSUSE 11.4 (which I
have done successfully in the past) but some reason I got a configure
error


===============================================================================
                      Configuring hypre; this may take several minutes

===============================================================================


===============================================================================
                      Compiling hypre; this may take several minutes

===============================================================================

TESTING: check from
config.libraries(/home/andre/Work/software/FEniCS-dependencies/src/testdir/petsc-3.1-p8/config/BuildSystem/config/libraries.py:133)
*******************************************************************************
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log
for details):
-
-------------------------------------------------------------------------------
Downloaded hypre could not be used. Please check install in
/home/andre/Work/software/FEniCS-dependencies/src/testdir/petsc-3.1-p8/linux-gnu-cxx-opt

when I executed
export
PARMETIS_DIR="/home/andre/Work/software/FEniCS-dependencies\/install"
./config/configure.py --with-debugging=0 --with-shared=1 \
 --with-clanguage=cxx --with-parmetis=1 \
 --with-parmetisdir=${PARMETIS_DIR} \
 --download-umfpack=1 --download-hypre=1

The main reason seems to be that the libHYPRE.a for some reason is
copied to
linux-gnu-cxx-opt/lib64/
and not to
linux-gnu-cxx-opt/lib

According to the configure.log file

Executing: mpicxx  -o conftest    -Wall -Wwrite-strings
- -Wno-strict-aliasing -O  conftest.o
-
-Wl,-rpath,/home/andre/Work/software/FEniCS-dependencies/src/testdir/petsc-3.1-p8/linux-gnu-cxx-opt/lib
-
-L/home/andre/Work/software/FEniCS-dependencies/src/testdir/petsc-3.1-p8/linux-gnu-cxx-opt/lib
- -lHYPRE -llapack -lblas -Wl,-rpath,/usr/lib64/mpi/gcc/openmpi/lib64
- -L/usr/lib64/mpi/gcc/openmpi/lib64
- -Wl,-rpath,/usr/lib64/gcc/x86_64-suse-linux/4.5
- -L/usr/lib64/gcc/x86_64-suse-linux/4.5
- -Wl,-rpath,/usr/x86_64-suse-linux/lib -L/usr/x86_64-suse-linux/lib
- -ldl -lmpi -lopen-rte -lopen-pal -lnsl -lutil -lgcc_s -lpthread
- -lmpi_f90 -lmpi_f77 -lgfortran -lm -lm
- -Wl,-rpath,/usr/lib64/mpi/gcc/openmpi/lib64
- -Wl,-rpath,/usr/lib64/gcc/x86_64-suse-linux/4.5
- -Wl,-rpath,/usr/x86_64-suse-linux/lib -lm -lm
- -Wl,-rpath,/usr/lib64/mpi/gcc/openmpi/lib64
- -L/usr/lib64/mpi/gcc/openmpi/lib64
- -Wl,-rpath,/usr/lib64/gcc/x86_64-suse-linux/4.5
- -L/usr/lib64/gcc/x86_64-suse-linux/4.5
- -Wl,-rpath,/usr/x86_64-suse-linux/lib -L/usr/x86_64-suse-linux/lib
- -ldl -lmpi -lopen-rte -lopen-pal -lnsl -lutil -lgcc_s -lpthread -ldl
sh:
Possible ERROR while running linker:
/usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld:
cannot find -lHYPRE
collect2: ld returned 1 exit status


the lib64 location of libHYPRE.a causes a linking error since the
above command does only include
-
-L/home/andre/Work/software/FEniCS-dependencies/src/testdir/petsc-3.1-p8/linux-gnu-cxx-opt/lib

Do you have any idea what could cause that location mismatch? Is the
libHYPRE.a location wrong or does the mpicxx command above omit a
needed library path? This error is kind of strange since I have an old
installation (same petsc version, same OS) where everything went
through...

Any pointers are very much appreciated!!

Cheers,
Andre









-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJOTIPrAAoJEA79ggnbq9dmwDAIAJCM5SfUfh3I+qCr9fPG3pMW
Spzc+hrJNQyZegIZIqR1RgHwCue0Fgkh2vmvglGmzYsfMiHl5CI88qBYxnxSF0wH
imvZoXXeLqpy1pmPn2RtB4gRaMsarx1AMpnsVn0A6aIPEkn07rfJOEf19egSxO/r
Yr+fnY2a4yXPrC4dfzgFjdsGHWSXCabzMwznQQldhQ+kF7bQ5V5InPPTYal6qSLm
/0sz7ZwAsyuL+29vj8+8aD4uVN/yVEDIGJtNg5RburBK4FDqEcZOsrQMjZGNB/6B
iPSJoQ8XK5b6yKqlzCmU9Qu9i/yxvKezUUTYMpGRK6Gd5mBEQSWOYz0jdz/CfYo=
=1QvU
-----END PGP SIGNATURE-----


More information about the petsc-users mailing list