Failure to install gmp shared library with Intel compiler
Tomonori Kouya
tkouya at gmail.com
Thu Nov 4 03:04:51 UTC 2021
Dear GMP users and developpers,
I want to solve installation error of shared library when GMP 6.2.1 is
complied with Intel compiler. Static library installation is
completely successful.
My environment is:
OS: Ubuntu 18.04
Intel OneAPI compiler: Version 2021.4.0 20210910.
Compilation is successful after configuration as following:
./configure --prefix=/usr/local --enable-static --enable-shared
--enable-cxx CC=icc CXX=icpc
But the installation failure occurred when installing GMP shared
library as follows:
--
/bin/mkdir -p '/usr/local/lib'
/bin/bash ./libtool --mode=install /usr/bin/install -c libgmp.la
libgmpxx.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libgmp.so.10.4.1
/usr/local/lib/libgmp.so.10.4.1
libtool: install: (cd /usr/local/lib && { ln -s -f libgmp.so.10.4.1
libgmp.so.10 || { rm -f libgmp.so.10 && ln -s libgmp.so.10.4.1
libgmp.so.10; }; })
libtool: install: (cd /usr/local/lib && { ln -s -f libgmp.so.10.4.1
libgmp.so || { rm -f libgmp.so && ln -s libgmp.so.10.4.1 libgmp.so; };
})
libtool: install: /usr/bin/install -c .libs/libgmp.lai /usr/local/lib/libgmp.la
libtool: warning: relinking 'libgmpxx.la'
libtool: install: (cd /home/tkouya/pool/gmp/gmp-6.2.1; /bin/bash
"/home/tkouya/pool/gmp/gmp-6.2.1/libtool" --tag CXX --mode=relink
icpc -version-info 10:1:6 -o libgmpxx.la -rpath /usr/local/lib
cxx/dummy.lo cxx/isfuns.lo cxx/ismpf.lo cxx/ismpq.lo cxx/ismpz.lo
cxx/ismpznw.lo cxx/limits.lo cxx/osdoprnti.lo cxx/osfuns.lo
cxx/osmpf.lo cxx/osmpq.lo cxx/osmpz.lo libgmp.la )
libtool: relink: icpc -shared cxx/.libs/dummy.o cxx/.libs/isfuns.o
cxx/.libs/ismpf.o cxx/.libs/ismpq.o cxx/.libs/ismpz.o
cxx/.libs/ismpznw.o cxx/.libs/limits.o cxx/.libs/osdoprnti.o
cxx/.libs/osfuns.o cxx/.libs/osmpf.o cxx/.libs/osmpq.o
cxx/.libs/osmpz.o -L/usr/local/lib -lgmp
-L/opt/intel/oneapi/vpl/2021.6.0/lib
-L/opt/intel/oneapi/tbb/2021.4.0/env/../lib/intel64/gcc4.8
-L/opt/intel/oneapi/mpi/2021.4.0//libfabric/lib
-L/opt/intel/oneapi/mpi/2021.4.0//lib/release
-L/opt/intel/oneapi/mpi/2021.4.0//lib
-L/opt/intel/oneapi/mkl/2021.4.0/lib/intel64
-L/opt/intel/oneapi/ippcp/2021.4.0/lib/intel64
-L/opt/intel/oneapi/ipp/2021.4.0/lib/intel64
-L/opt/intel/oneapi/dnnl/2021.4.0/cpu_dpcpp_gpu_dpcpp/lib
-L/opt/intel/oneapi/dal/2021.4.0/lib/intel64
-L/opt/intel/oneapi/compiler/2021.4.0/linux/compiler/lib/intel64_lin
-L/opt/intel/oneapi/compiler/2021.4.0/linux/lib
-L/opt/intel/oneapi/clck/2021.4.0/lib/intel64
-L/opt/intel/oneapi/ccl/2021.4.0/lib/cpu_gpu_dpcpp
-L/opt/intel/oneapi/compiler/2021.4.0/linux/bin/intel64/../../compiler/lib/intel64_lin
-L/opt/intel/oneapi/vpl/2021.6.0/lib/../lib/
-L/opt/intel/oneapi/mpi/2021.4.0//libfabric/lib/../lib/
-L/opt/intel/oneapi/mpi/2021.4.0//lib/../lib/
-L/opt/intel/oneapi/dnnl/2021.4.0/cpu_dpcpp_gpu_dpcpp/lib/../lib/
-L/opt/intel/oneapi/compiler/2021.4.0/linux/lib/../lib/
-L/usr/lib/gcc/x86_64-linux-gnu/7/
-L/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/
-L/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib/
-L/lib/x86_64-linux-gnu/ -L/lib/../lib64 -L/lib/../lib/
-L/usr/lib/x86_64-linux-gnu/ -L/usr/lib/../lib/
-L/opt/intel/oneapi/vpl/2021.6.0/lib/
-L/opt/intel/oneapi/tbb/2021.4.0/env/../lib/intel64/gcc4.8/
-L/opt/intel/oneapi/mpi/2021.4.0//libfabric/lib/
-L/opt/intel/oneapi/mpi/2021.4.0//lib/release/
-L/opt/intel/oneapi/mpi/2021.4.0//lib/
-L/opt/intel/oneapi/mkl/2021.4.0/lib/intel64/
-L/opt/intel/oneapi/ippcp/2021.4.0/lib/intel64/
-L/opt/intel/oneapi/ipp/2021.4.0/lib/intel64/
-L/opt/intel/oneapi/dnnl/2021.4.0/cpu_dpcpp_gpu_dpcpp/lib/
-L/opt/intel/oneapi/dal/2021.4.0/lib/intel64/
-L/opt/intel/oneapi/compiler/2021.4.0/linux/compiler/lib/intel64_lin/
-L/opt/intel/oneapi/compiler/2021.4.0/linux/lib/
-L/opt/intel/oneapi/clck/2021.4.0/lib/intel64/
-L/opt/intel/oneapi/ccl/2021.4.0/lib/cpu_gpu_dpcpp/
-L/usr/lib/gcc/x86_64-linux-gnu/7/../../../ -L/lib64 -L/lib/
-L/usr/lib -limf -lirng -lm -lipgo -ldecimal -lcilkrts -lstdc++
-lintlc -lsvml -lgcc -lgcc_s -lirc_s -ldl -lc -Wl,-soname
-Wl,libgmpxx.so.4 -o .libs/libgmpxx.so.4.6.1
/home/tkouya/pool/gmp/gmp-6.2.1/libtool: line 10556: icpc: command not found
libtool: error: error: relink 'libgmpxx.la' with the above command
before installing it
Makefile:848: recipe for target 'install-libLTLIBRARIES' failed
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: ディレクトリ '/home/tkouya/pool/gmp/gmp-6.2.1' から出ます
Makefile:1304: recipe for target 'install-am' failed
make[2]: *** [install-am] Error 2
make[2]: ディレクトリ '/home/tkouya/pool/gmp/gmp-6.2.1' から出ます
Makefile:998: recipe for target 'install-recursive' failed
make[1]: *** [install-recursive] Error 1
make[1]: ディレクトリ '/home/tkouya/pool/gmp/gmp-6.2.1' から出ます
Makefile:1298: recipe for target 'install' failed
make: *** [install] Error 2
--
The "icpc" command can be used on my environment and the above libtool
command can be executed standalone in bash shell.
Any suggestions or comments?
--
Tomonori Kouya <tkouya at gmail.com>
More information about the gmp-discuss
mailing list