Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building nheqminer on an Ubuntu 21.10 VM #2

Open
Cigydd opened this issue Apr 14, 2022 · 0 comments
Open

Building nheqminer on an Ubuntu 21.10 VM #2

Cigydd opened this issue Apr 14, 2022 · 0 comments

Comments

@Cigydd
Copy link

Cigydd commented Apr 14, 2022

First of all, I should ask if building nheqminer on Ubuntu 21.10 is supported at all. Because I found that the CUDA toolkit is provided for 18.04 and 20.04 only. I installed the 20.04 CUDA into the 21.10 virtual machine and suspect that somebody is doing something nasty here. 😉

Nevertheless, I am going to report my issue just for the case it could reveal a bug.

This is my system information:
bunt-inxi.log

I slightly but minimally modified the build instructions.

  • Cloned nheqminer in the ~/software/nheqminer directory.

  • Created this script called nheqminer_build.sh in the ~/software directory:

    #!/bin/bash
    
    export LC_ALL=C
    export LANG=C
    export LANGUAGE=C
    cd nheqminer/cpu_xenoncat/asm_linux &&
    chmod +x fasm &&
    sh assemble.sh &&
    cd ../../../
    mkdir -p build && cd build &&
    rm -Rvf * &&
    cmake \
        -DCUDA_CUDART_LIBRARY="/usr/local/cuda-9.2/lib64/libcudart.so" \
        ../nheqminer &&
        # -DUSE_CUDA_DJEZO=0
    make clean &&
    make -j $(nproc)
  • Then I ran the command ./nheqminer_build.sh 2>&1 | tee nheqminer_build.log the input of which follows:

    nheqminer_build.log

    The error reads as follows (excerpt from the above log):

    /home/pavel/software/nheqminer/cuda_djezo/../cpu_tromp/blake2/blake2.h:100:21: error: size of array element is not a multiple of its alignment
      100 |     blake2s_state S[8][1];
          |                     ^
    /home/pavel/software/nheqminer/cuda_djezo/../cpu_tromp/blake2/blake2.h:100:21: error: size of array element is not a multiple of its alignment
    /home/pavel/software/nheqminer/cuda_djezo/../cpu_tromp/blake2/blake2.h:108:21: error: size of array element is not a multiple of its alignment
      108 |     blake2b_state S[4][1];
          |                     ^
    /home/pavel/software/nheqminer/cuda_djezo/../cpu_tromp/blake2/blake2.h:108:21: error: size of array element is not a multiple of its alignment
    CMake Error at cuda_djezo_generated_equi_miner.cu.o.cmake:280 (message):
      Error generating file
      /home/pavel/software/build/cuda_djezo/CMakeFiles/cuda_djezo.dir//./cuda_djezo_generated_equi_miner.cu.o
    
    
    make[2]: *** [cuda_djezo/CMakeFiles/cuda_djezo.dir/build.make:84: cuda_djezo/CMakeFiles/cuda_djezo.dir/cuda_djezo_generated_equi_miner.cu.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:190: cuda_djezo/CMakeFiles/cuda_djezo.dir/all] Error 2
    make: *** [Makefile:149: all] Error 2
    

As you can see, I also played around with disabling the USE_CUDA_DJEZO flag (see the line commented out in the build script). Having that disabled, I ran basically into the same error in the blake2.h file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant