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

Miner not working on Ubuntu 18.04 #27

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

dracosc22679
Copy link

When running on Ubuntu 18.04 i get this error! /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_|
2.29' not found

andrewtookay and others added 9 commits December 17, 2021 16:43
This is a fast solution I found for Windows compilation with newest versions of gcc (Ex: gcc v11.2.0)

Edit CMakeLists.txt:

IF (WIN32 AND NOT MSVC)
    set(DEPRECATION_FLAGS "-Xlinker --allow-multiple-definition -w")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${DEPRECATION_FLAGS}")
    set(C_DEP_FLAGS "-w")
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${C_DEP_FLAGS}")
ENDIF()

And at line 314

IF (WIN32)
     target_compile_options(a.multiminer PRIVATE -O1 -mtune=native -march=native -I.)
ELSE()
     target_compile_options(a.multiminer PRIVATE -O3 -mtune=native -march=native -I.)
ENDIF()

Use cmake with the extra params to remove some warnings and setup NO_CUDA var here to avoid editing CMakeLists.txt file:

cmake .. -Wno-dev -DNO_CUDA=TRUE -G "MinGW Makefiles"
Added instructions on how to build for Windows
Small modifications to improve building process in Windows
Building CUDA library for Windows
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

Successfully merging this pull request may close these issues.

3 participants