Intel® oneAPI Math Kernel Library
Ask questions and share information with other developers who use Intel® Math Kernel Library.
7146 Discussions

ldconfig: /opt/intel/oneapi/redist/lib/libmkl_sycl.so is not an ELF file

Orion_P_
New Contributor I
4,262 Views

Running AlmaLinux 8.9 with intel-oneapi-runtime-mkl-2024-2024.0.0-49656.x86_64

When running yum/dnf updates I get the following output:

Running transaction
ldconfig: /opt/intel/oneapi/redist/lib/libmkl_sycl.so is not an ELF file - it has the wrong magic bytes at the start.

 

Labels (1)
0 Kudos
10 Replies
VarshaS_Intel
Moderator
4,208 Views

Hi,

 

Thanks for posting in Intel Communities.

 

>>Running AlmaLinux 8.9 with intel-oneapi-runtime-mkl-2024-2024.0.0-49656.x86_64

From the information provided by you, we can see that you are using Alma Linux which is not a supported Operating System as per the  Intel MKL System Requirements. We recommend you use the supported Operating System.

 

Also, if your issue persists with the supported Operating Systems, could you please provide us with the details of the OS and the steps you have followed to reproduce the issue at our end?

 

Thanks & Regards,

Varsha

 

0 Kudos
Orion_P_
New Contributor I
4,165 Views

AlmaLinux is a RedHat Enterprise Linux clone like CentOS and Rocky Linux, so it should be equivalent.

Hower I can reproduce it on RHEL8.9 with:

root@vmrhel8.cora.nwra.com [~]# yum install intel-oneapi-runtime-mkl-2024-2024.0.0-49656.x86_64 -y 
Updating Subscription Management repositories.
Last metadata expiration check: 18:34:17 ago on Tue 05 Dec 2023 02:08:55 PM MST.
Dependencies resolved.
==================================================================================================
Package                                            Arch      Version             Repo       Size
==================================================================================================
Installing:
intel-oneapi-runtime-mkl-2024                      x86_64    2024.0.0-49656      oneAPI    149 M
Installing dependencies:
intel-oneapi-runtime-compilers-2024                x86_64    2024.0.0-49819      oneAPI     34 M
intel-oneapi-runtime-compilers-common-2024         noarch    2024.0.0-49819      oneAPI     16 k
intel-oneapi-runtime-dpcpp-cpp-2024                x86_64    2024.0.0-49819      oneAPI     12 k
intel-oneapi-runtime-dpcpp-cpp-common-2024         noarch    2024.0.0-49819      oneAPI     26 k
intel-oneapi-runtime-dpcpp-sycl-core-2024          x86_64    2024.0.0-49819      oneAPI    2.8 M
intel-oneapi-runtime-dpcpp-sycl-cpu-rt-2024        x86_64    2024.0.0-49819      oneAPI    6.6 k
intel-oneapi-runtime-dpcpp-sycl-fpga-emul-2024     x86_64    2024.0.0-49819      oneAPI     11 k
intel-oneapi-runtime-dpcpp-sycl-opencl-cpu-2024    x86_64    2024.0.0-49819      oneAPI     93 M
intel-oneapi-runtime-dpcpp-sycl-rt-2024            x86_64    2024.0.0-49819      oneAPI    6.6 k
intel-oneapi-runtime-mkl-common-2024               noarch    2024.0.0-49656      oneAPI     23 k
intel-oneapi-runtime-opencl-2024                   x86_64    2024.0.0-49819      oneAPI     64 k
intel-oneapi-runtime-openmp-2024                   x86_64    2024.0.0-49819      oneAPI     19 M
intel-oneapi-runtime-openmp-opencl-shared-2024     x86_64    2024.0.0-49819      oneAPI    3.8 M
intel-oneapi-runtime-tbb-2021                      x86_64    2021.11.0-49513     oneAPI    954 k
intel-oneapi-runtime-tbb-common-2021               noarch    2021.11.0-49513     oneAPI     24 k
intel-oneapi-runtime-tcm-1                         x86_64    1.0.0-435           oneAPI    1.2 M

Transaction Summary
==================================================================================================
Install  17 Packages
...
root@vmrhel8.cora.nwra.com [~]# ldconfig
ldconfig: /opt/intel/oneapi/redist/lib/libmkl_sycl.so is not an ELF file - it has the wrong magic
bytes at th
e start

 

0 Kudos
VarshaS_Intel
Moderator
4,107 Views

Hi,


Thanks for the details.


We are able to reproduce your issue at our end. We are working on your issue internally, we will get back to you soon.


Thanks & Regards,

Varsha


0 Kudos
MarthaSlaughter
Employee
3,886 Views

I am having the same problem, installing on SLES12 SP5.  Would you please provide a working libmkl_sycl.so[.3] file?

 

ls -al /<somedir>/intel/oneapi/mkl/2024.0/lib | grep libmkl_sycl
-rw-r--r-- 1 mslaught tmgtools 960730860 Oct 26 14:59 libmkl_sycl.a
-rwxr-xr-x 1 mslaught tmgtools 144 Oct 26 14:59 libmkl_sycl.so
lrwxrwxrwx 1 mslaught tmgtools 21 Nov 15 19:32 libmkl_sycl_blas.so -> libmkl_sycl_blas.so.4
-rwxr-xr-x 1 mslaught tmgtools 101199688 Oct 26 14:59 libmkl_sycl_blas.so.4
lrwxrwxrwx 1 mslaught tmgtools 29 Nov 15 19:32 libmkl_sycl_data_fitting.so -> libmkl_sycl_data_fitting.so.4
-rwxr-xr-x 1 mslaught tmgtools 10966304 Oct 26 14:59 libmkl_sycl_data_fitting.so.4
lrwxrwxrwx 1 mslaught tmgtools 20 Nov 15 19:32 libmkl_sycl_dft.so -> libmkl_sycl_dft.so.4
-rwxr-xr-x 1 mslaught tmgtools 52730120 Oct 26 14:59 libmkl_sycl_dft.so.4
lrwxrwxrwx 1 mslaught tmgtools 23 Nov 15 19:32 libmkl_sycl_lapack.so -> libmkl_sycl_lapack.so.4
-rwxr-xr-x 1 mslaught tmgtools 46722400 Oct 26 14:59 libmkl_sycl_lapack.so.4
lrwxrwxrwx 1 mslaught tmgtools 20 Nov 15 19:32 libmkl_sycl_rng.so -> libmkl_sycl_rng.so.4
-rwxr-xr-x 1 mslaught tmgtools 139976664 Oct 26 14:59 libmkl_sycl_rng.so.4
lrwxrwxrwx 1 mslaught tmgtools 23 Nov 15 19:32 libmkl_sycl_sparse.so -> libmkl_sycl_sparse.so.4
-rwxr-xr-x 1 mslaught tmgtools 126036688 Oct 26 14:59 libmkl_sycl_sparse.so.4
lrwxrwxrwx 1 mslaught tmgtools 22 Nov 15 19:32 libmkl_sycl_stats.so -> libmkl_sycl_stats.so.4
-rwxr-xr-x 1 mslaught tmgtools 36150344 Oct 26 14:59 libmkl_sycl_stats.so.4
lrwxrwxrwx 1 mslaught tmgtools 19 Nov 15 19:32 libmkl_sycl_vm.so -> libmkl_sycl_vm.so.4
-rwxr-xr-x 1 mslaught tmgtools 182190512 Oct 26 14:59 libmkl_sycl_vm.so.4

 

Note that libmkl_sycl.so is 144 characters.  Its file type:

file libmkl_sycl.so
libmkl_sycl.so: ASCII text

 

Thanks,

Martha

0 Kudos
Gennady_F_Intel
Moderator
3,839 Views

the problem would be fixed the next update of oneMKL. We will keep this thread updated.

as a temporarily workaround you could just remove libmkl_sycl.so 

0 Kudos
lzyla
Beginner
3,770 Views

same issue here on ubuntu 23.10

0 Kudos
jdal
Beginner
3,339 Views

This is also happening with ubuntu 22.04.3. The file has a length of 144 and doesn't appear to have been properly compiled.
-rwxr-xr-x 1 root root 144 Oct 26 15:59 /opt/intel/oneapi/mkl/latest/lib/libmkl_sycl.so
(base) jd@muir:~$ ls -lrth /opt/intel/oneapi/mkl/2024.0/lib/*sy*
-rwxr-xr-x 1 root root 144 Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl.so
-rwxr-xr-x 1 root root 45M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_lapack.so.4
-rwxr-xr-x 1 root root 51M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_dft.so.4
-rwxr-xr-x 1 root root 11M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_data_fitting.so.4
-rwxr-xr-x 1 root root 97M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_blas.so.4
-rw-r--r-- 1 root root 917M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl.a
-rwxr-xr-x 1 root root 174M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_vm.so.4
-rwxr-xr-x 1 root root 35M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_stats.so.4
-rwxr-xr-x 1 root root 121M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_sparse.so.4
-rwxr-xr-x 1 root root 134M Oct 26 15:59 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_rng.so.4
lrwxrwxrwx 1 root root 21 Oct 26 19:13 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_blas.so -> libmkl_sycl_blas.so.4
lrwxrwxrwx 1 root root 19 Oct 26 19:13 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_vm.so -> libmkl_sycl_vm.so.4
lrwxrwxrwx 1 root root 22 Oct 26 19:13 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_stats.so -> libmkl_sycl_stats.so.4
lrwxrwxrwx 1 root root 23 Oct 26 19:13 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_sparse.so -> libmkl_sycl_sparse.so.4
lrwxrwxrwx 1 root root 20 Oct 26 19:13 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_rng.so -> libmkl_sycl_rng.so.4
lrwxrwxrwx 1 root root 23 Oct 26 19:13 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_lapack.so -> libmkl_sycl_lapack.so.4
lrwxrwxrwx 1 root root 20 Oct 26 19:13 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_dft.so -> libmkl_sycl_dft.so.4
lrwxrwxrwx 1 root root 29 Oct 26 19:13 /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl_data_fitting.so -> libmkl_sycl_data_fitting.so.4
The contents are the following:

cat /opt/intel/oneapi/mkl/2024.0/lib/libmkl_sycl.so
INPUT(-lmkl_sycl_blas -lmkl_sycl_lapack -lmkl_sycl_sparse -lmkl_sycl_dft -lmkl_sycl_vm -lmkl_sycl_rng -lmkl_sycl_stats -lmkl_sycl_data_fitting)

0 Kudos
Gennady_F_Intel
Moderator
3,332 Views

as we noticed above, the problem will be fixed in the next update ( 2024.1) of oneMKL. 

check the MKL Linker Adviser to see how properly links against oneMKL.

0 Kudos
cpmech
Beginner
1,151 Views

The issue persists in 2024.2

0 Kudos
crobar
Beginner
212 Views

Issue persists in 2025.0

at least when installing from apt on Ubuntu

0 Kudos
Reply