Hi,
I tried to compile ADDA with with no root account. In order to satisfy the dependencies, I build a miniforge environment under my home directory, and I tried to install into it the packages that provide the equivalent functionality to the Ubuntu packages, listed on the compilation page. It went smoothly as their names were mostly matching the Ubuntu packages names:
fftw, openmpi, gcc, gfortran, ocl-icd-system, clfft
mamba install gcc gfortran fftw openmpi ocl-icd-system clfft -c conda-forge
However, when I try to "make ocl" I get the following error:
make[1]: *** [cmplx.o] Error 1
make[1]: *** [comm.o] Error 1
In file included from ../calculator.c:26:
../oclcore.h: At top level:
../oclcore.h:30:17: fatal error: CL/cl.h: No such file or directory
30 | # include <CL/cl.h>
| ^~~~~~~~~
compilation terminated.
This can be solved by:
export C_INCLUDE_PATH=$C_INCLUDE_PATH:$CONDA_PREFIX/include:$CONDA_PREFIX/envs/adda/include
But then I am left with a list of errors like this:
make[1]: *** [CalculateE.o] Error 1
/home/users/km357/miniforge3/envs/adda/x86_64-conda-linux-gnu/sysroot/usr/include/bits/math-finite.h:280:10: error: implicit declaration of function 'lgammal_r'; did you mean 'lgammal'? [-Wimplicit-function-declaration]
280 | return lgammal_r (__d, &__local_signgam);
| ^~~~~~~~~
| lgammal
Any idea how to resolve this issue?
gcc version 14.1.0 (conda-forge gcc 14.1.0-1)
Kamil