c-blosc2 icon indicating copy to clipboard operation
c-blosc2 copied to clipboard

Failure compiling on windows with Intel OneAPI

Open byrnHDF opened this issue 1 year ago • 2 comments

D:\a\hdf5\hdf5\build\ci-StdShar-Intel_deps\blosc2-src\blosc\directories.c(65,5): error: call to undeclared function 'rmdir'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] rmdir(dir_path);

Adding -Wno-implicit-function-declaration then causes a failure with linking because __cpu_mod is undefined in shuffle.c/blosc_get_cpu_features()

IntelOneAPI is available to use in github CI runners.

byrnHDF avatar May 13 '24 14:05 byrnHDF

Hi @byrnHDF ! We would be happy to fix this. Would you mind to send a PR?

FrancescAlted avatar May 14 '24 08:05 FrancescAlted

Not sure how to fix the failure - but Intel OneAPI is LLVM based and CMake identifies it as IntelLLVM. HDF5 workflows use OneAPI for both CMake and autotools, see the intel-*.yml files for our steps. The main step is: - name: Install oneAPI (Linux) uses: fortran-lang/setup-fortran@v1 id: setup-fortran with: compiler: intel version: '2024.1'

byrnHDF avatar May 14 '24 14:05 byrnHDF