[R-pkg-devel] CL/cl.hpp file not found
quirin stier
Qu|r|n_St|er @end|ng |rom gmx@de
Thu Aug 28 13:25:04 CEST 2025
Hi everyone,
sry for the double mail - I included the old error output from a
previous version, only the location of the #include "CL/cl.hpp" changed
to ocl.h in /src.
CRAN Submission of package
(https://github.com/Quirinms/GeneralizedUmatrixGPU/tree/main) leads to
an error.
Windows system:
* installing *source* package 'GeneralizedUmatrixGPU' ...
** this is package 'GeneralizedUmatrixGPU' version '0.0.1'
** using staged installation
=== configurig OpenCL for x64 ==
OCL=d:/RCompile/CRANpkg/extralibs/OpenCL
SDK appears to include only one architecture, assuming it is 64-bit
OCL64LIB not set, assuming d:/RCompile/CRANpkg/extralibs/OpenCL/lib/OpenCL.lib
OCL32LIB not set, assuming d:/RCompile/CRANpkg/extralibs/OpenCL/lib/x86/OpenCL.lib
OCLINC not set, assuming -Id:/RCompile/CRANpkg/extralibs/OpenCL/include
--- Compiling 64-bit ---
OCL=d:/RCompile/CRANpkg/extralibs/OpenCL
PKG_CPPFLAGS=-Id:/RCompile/CRANpkg/extralibs/OpenCL/include
PKG_LIBS=d:/RCompile/CRANpkg/extralibs/OpenCL/lib/OpenCL.lib
Similar in Debian system:
** libs
using C++ compiler: 'g++.exe (GCC) 14.2.0'
g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG '-I-Id:/RCompile/CRANpkg/extralibs/OpenCL/include' -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
In file included from D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include/current/armadillo:26,
from D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:51,
from D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include/RcppArmadillo.h:29,
from RcppExports.cpp:4:
D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include/current/armadillo_bits/config.hpp:373:72: note: '#pragma message: NOTE: option ARMA_CRIPPLED_LAPACK is not supported'
373 | #pragma message ("NOTE: option ARMA_CRIPPLED_LAPACK is not supported")
| ^
g++ -std=gnu++17 -I"D:/RCompile/recent/R/include" -DNDEBUG '-I-Id:/RCompile/CRANpkg/extralibs/OpenCL/include' -I'D:/RCompile/CRANpkg/lib/4.6/Rcpp/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppArmadillo/include' -I'D:/RCompile/CRANincoming/R-devel/lib/RcppParallel/include' -I"d:/rtools45/x86_64-w64-mingw32.static.posix/include" -pedantic -O2 -Wall -mfpmath=sse -msse2 -mstackrealign -c trainSESOM.cpp -o trainSESOM.o
In file included from trainSESOM.cpp:2:
ocl.h:7:10: fatal error: CL/cl.h: No such file or directory
7 | #include <CL/cl.h>
| ^~~~~~~~~
compilation terminated.
make: *** [D:/RCompile/recent/R/etc/x64/Makeconf:296: trainSESOM.o] Error 1
ERROR: compilation failed for package 'GeneralizedUmatrixGPU'
* removing 'd:/RCompile/CRANincoming/R-devel/lib/GeneralizedUmatrixGPU'
* installing *source* package ‘GeneralizedUmatrixGPU’ ...
** this is package ‘GeneralizedUmatrixGPU’ version ‘0.0.1’
** using staged installation
** libs
using C++ compiler: ‘Debian clang version 19.1.7 (3+b2)’
clang++-19 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/RcppArmadillo/include' -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/RcppParallel/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -Wno-missing-template-arg-list-after-template-kw -Wdeprecated-literal-operator -c RcppExports.cpp -o RcppExports.o
clang++-19 -std=gnu++17 -I"/home/hornik/tmp/R/include" -DNDEBUG -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/Rcpp/include' -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/RcppArmadillo/include' -I'/home/hornik/lib/R/Library/4.6/x86_64-linux-gnu/RcppParallel/include' -I/usr/local/include -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=3 -fpic -g -O3 -Wall -pedantic -Wno-missing-template-arg-list-after-template-kw -Wdeprecated-literal-operator -c trainSESOM.cpp -o trainSESOM.o
In file included from trainSESOM.cpp:2:
./ocl.h:9:10: fatal error: 'CL/cl.hpp' file not found
9 | #include <CL/cl.hpp>
| ^~~~~~~~~~~
1 error generated.
make: *** [/home/hornik/tmp/R/etc/Makeconf:209: trainSESOM.o] Error 1
ERROR: compilation failed for package ‘GeneralizedUmatrixGPU’
* removing ‘/srv/hornik/tmp/CRAN_pretest/GeneralizedUmatrixGPU.Rcheck/GeneralizedUmatrixGPU’
Best,
Quirin
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list