We have found out that the cause of the error is a bug in the cblas.h file in the libopenblas-dev package.
As a workaround, this package needs to be purged first before building hark-core.
Please try the commands below.
sudo apt purge libopenblas-dev
cmake -DENABLE_RASP24=OFF -DENABLE_WS=OFF ..
sudo make install
sudo apt install libopenblas-dev
Also, the installation instructions has been updated.
Please see it for reference.