[petsc-users] Error configuring with --download-ml and Intel MKL

Satish Balay balay at mcs.anl.gov
Thu Apr 2 00:52:30 CDT 2015


And to get g++ to behave similar to gcc on 14.04 - you can add an
extra configure option LIBS="-Wl,--no-as-needed -lc" [so
--with-clanguage=cxx should work with it]

./configure --with-scalar-type=complex --with-clanguage=cxx --download-metis --download-parmetis --download-superlu_dist --with-blas-lapack-dir=/opt/intel/system_studio_2015.2.050/mkl/lib/intel64 LIBS="-Wl,--no-as-needed -lc"

Satish

On Thu, 2 Apr 2015, Satish Balay wrote:

> Also - you can try not using '--with-clanguage=cxx'. Complex should
> work with C build aswell.
> 
> Satish
> 
> On Wed, 1 Apr 2015, Satish Balay wrote:
> 
> > Perhaps you can try using MKL with intel compilers - and see if the problem persists.
> > 
> > Satish
> > 
> > On Wed, 1 Apr 2015, Satish Balay wrote:
> > 
> > > On Wed, 1 Apr 2015, David Knezevic wrote:
> > > 
> > > > On Wed, Apr 1, 2015 at 11:46 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:
> > > > 
> > > > >
> > > > >  Send configure.log from the failed configure
> > > > >
> > > > 
> > > > 
> > > > It's attached.
> > > > 
> > > 
> > > Same issue as before - for some reason mpicxx is not finding math symbols in -lm
> > > 
> > > Satish
> > > 
> > > -----
> > > Executing: mpicxx  -o /tmp/petsc-rljk4x/config.libraries/conftest    -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g -O0  /tmp/petsc-rljk4x/config.libraries/conftest.o  -Wl,-rpath,/home/dknez/software/petsc-3.5.2/arch-linux2-cxx-debug/lib64 -L/home/dknez/software/petsc-3.5.2/arch-linux2-cxx-debug/lib64 -lsuperlu_dist_3.3 -Wl,-rpath,/opt/intel/system_studio_2015.2.050/mkl/lib/intel64 -L/opt/intel/system_studio_2015.2.050/mkl/lib/intel64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -Wl,-rpath,/usr/lib/openmpi/lib -L/usr/lib/openmpi/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -lmpi_f90 -lmpi_f77 -lgfortran -lm -Wl,-rpath,/usr/lib/openmpi/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.8 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -lgfortran -lm -lquadmath -lm -Wl,-rpath,/home/dknez/software/petsc-3.5.2/arch-linux2-cxx-debug/lib -L/home/dknez/software/petsc-3.5.2/arch-linux2-cxx-debug/lib -lparmetis -Wl,-rpath,/home/dknez/software/petsc-3.5.2/arch-linux2-cxx-debug/lib -L/home/dknez/software/petsc-3.5.2/arch-linux2-cxx-debug/lib -lmetis -lm -lm -Wl,-rpath,/usr/lib/openmpi/lib -L/usr/lib/openmpi/lib -Wl,-rpath,/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -Wl,-rpath,/lib/x86_64-linux-gnu -L/lib/x86_64-linux-gnu -Wl,-rpath,/usr/lib/x86_64-linux-gnu -L/usr/lib/x86_64-linux-gnu -ldl -lmpi -lhwloc -lgcc_s -lpthread -ldl
> > > Possible ERROR while running linker: exit code 256
> > > stderr:
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `logf'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `atan2'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `sin'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `fabs'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `exp'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `cos'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `sqrt'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_intel_lp64.so: undefined reference to `log'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `pow'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `log10'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `ceil'
> > > /opt/intel/system_studio_2015.2.050/mkl/lib/intel64/libmkl_core.so: undefined reference to `expf'
> > 


More information about the petsc-users mailing list