Problems with installation from source compilation

HARK FORUM Problems with installation from source compilation

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #831
    Avatarfurletov
    Participant

    Hello!

    During the installation of HARK from source compilation, on the step of installing hark-core error appears:

    /home/furletov/hark/hark-core-3.0.4/src/BF_Matrix.cc: In member function ‘const BF::Matrix BF::Matrix::multiplied(const BF::Matrix&) const’:
    /home/furletov/hark/hark-core-3.0.4/src/BF_Matrix.cc:476:10: error: invalid conversion from ‘void*’ to ‘const double*’ [-fpermissive]
    (void*)&alpha, this->values, this->cols,
    ^~~~~~~~~~~~~
    /home/furletov/hark/hark-core-3.0.4/src/BF_Matrix.cc:478:39: error: cannot convert ‘BF::Complex* const {aka std::complex<double>* const}’ to ‘const double*’ for argument ‘8’ to ‘void cblas_zgemm(CBLAS_ORDER, CBLAS_TRANSPOSE, CBLAS_TRANSPOSE, blasint, blasint, blasint, const double*, const double*, blasint, const double*, blasint, const double*, double*, blasint)’
    (void*)&beta, m.values, m.cols);
    ^
    src/CMakeFiles/hark-core.dir/build.make:1492: recipe for target ‘src/CMakeFiles/hark-core.dir/BF_Matrix.cc.o’ failed
    make[2]: *** [src/CMakeFiles/hark-core.dir/BF_Matrix.cc.o] Error 1
    CMakeFiles/Makefile2:158: recipe for target ‘src/CMakeFiles/hark-core.dir/all’ failed
    make[1]: *** [src/CMakeFiles/hark-core.dir/all] Error 2
    Makefile:129: recipe for target ‘all’ failed
    make: *** [all] Error 2

    #833
    AvatarSy.Krizel
    Moderator

    Hello.

    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.

    
    cd hark-core-*.*.*
    mkdir build
    cd build
    sudo apt purge libopenblas-dev
    cmake -DENABLE_RASP24=OFF -DENABLE_WS=OFF ..
    make
    sudo make install
    sudo apt install libopenblas-dev
    

    Also, the installation instructions has been updated.
    Please see it for reference.

    Best Regards,
    HARK Support Team

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.