Closed MichailDanikas closed 2 years ago
Have you followed the instructions for installing MKL
from the Intel repository using zypper
?
After following the steps to add the Intel repository you should be able to use
sudo zypper install intel-oneapi-mkl-devel
Make sure to activate the Intel oneAPI package with
. /opt/intel/oneapi/setvars.sh
Or the MKL will not be findable when building crest
.
Eventually this was the problem. I skiped soome step which caused the problem to not find mkl. However the following error was prompted:
localhost:/opt/crest # meson install -C _build_intel
ninja: Entering directory '/opt/crest/_build_intel'
[3/89] Compiling Fortran object crest.p/src_filemod.f90.o
FAILED: crest.p/src_filemod.f90.o crest.p/filemod.mod
gfortran -Icrest.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -O2 -g -ffree-line-length-none -fbacktrace -DWITH_MKL -fopenmp -Jcrest.p -o crest.p/src_filemod.f90.o -c ../src/filemod.f90
../src/filemod.f90:331:20:
integer :: cursor
1
Warning: Unused variable ‘cursor’ declared at (1) [-Wunused-variable]
[..more]
I also think this problem is caused by my end also. Do you may have an idea what could cause this kind of an error?
Hi,
this is just an -Wunused-variable
warning, these are usually ignored.
There must be some other error (also declared as such by the compiler) that causes the build to fail. Can you look into the output again?
Note that I updated the code just yesterday (#126) to remove all those -Wunused-variable
warnings with gfortran
. Maybe you want to use this source.
Hi, I'm really sorry for the late replies but I don't always have access to the working station. I just cloned the updated repository and tried again. This time the error that was prompted is:
meson install -C _build_intel
ninja: Entering directory `/opt/crest/_build_intel'
[3/86] Compiling Fortran object crest.p/src_filemod.f90.o
FAILED: crest.p/src_filemod.f90.o crest.p/filemod.mod
gfortran -Icrest.p -I. -I.. -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -O2 -g -ffree-line-length-none -fbacktrace -Wno-maybe-uninitialized -Wno-uninitialized -DWITH_MKL -fopenmp -Jcrest.p -o crest.p/src_filemod.f90.o -c ../src/filemod.f90
../src/filemod.f90:306:0:
call move_alloc(tmp, self%f)
internal compiler error: in gimplify_expr, at gimplify.c:12290
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://bugs.opensuse.org/> for instructions.
[24/86] Compiling Fortran object crest.p/src_strucreader.f90.o
ninja: build stopped: subcommand failed.
Could not rebuild /opt/crest/_build_intel
I am not sure how to follow these errors. Thank you in advance
This is an error in your GFortran compiler distributed by OpenSuse, nothing we can do anything about this in crest
. You can follow the instructions at https://bugs.opensuse.org/ to report a bug at the OpenSuse distribution team, however GFortran 7.5.0 is out of long-term support for a few years now.
Since you already use GCC 11.2.1 as C compiler, it might be worth to upgrade your GFortran to the same more recent version and try again.
Ok, at least now I know the problem is on my end. Thank you so much for all the information!
I'm working on OpenSUSE leap 15 OS and I have trouble on building crest with cmake and meson. I follow the commands bellow.
export FC=gfortran CC=gcc
meson setup -Dla_backend=mkl _build_intel --prefix=$PWD/_dist
Any tips on how to solve the problem with mkl_gf_lp64? I tried to install multiple packages regarding mkl, but I'm new to all these. When I try with cmake or simple make I also have errors. With meson was the easiest to follow.