Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

Mac build does not work #2401

Open
TomDev234 opened this issue Jan 9, 2022 · 11 comments
Open

Mac build does not work #2401

TomDev234 opened this issue Jan 9, 2022 · 11 comments

Comments

@TomDev234
Copy link

TomDev234 commented Jan 9, 2022

Describe the bug
ethminer 0.18.0
Build: darwin/release/appleclang

Unrecognized platform Apple
Error: No usable mining devices found

To Reproduce
start it

Environment (please complete the following information):

  • Operating System: macOS 12.1 Monterey
  • Hardware: i9-9900K, Radeon™ RX 6900 XT
  • Ethminer Version 0.18.0
  • Ethminer options used: ./ethminer --opencl -P stratum1+ssl://[email protected]:5555
@danieleftodi
Copy link

danieleftodi commented Jan 9, 2022

ethminer 0.18.0

wrong version.

try this tag instead
https://github.com/gyf304/ethminer-m1/releases/tag/v0.19.0-alpha.0-m1

@TomDev234
Copy link
Author

There is no Intel code inside.

@danieleftodi
Copy link

danieleftodi commented Jan 10, 2022

There is no Intel code inside.

sorry, maybe I wasn't clear. But what I ment is that you checkout he's tag "v0.19.0-alpha.0-m1" from the fork he made.

and then compile it, yourself.

I did that, and compiled it on my old Mac Pro 3,1 ... and ran it with an AMD RX 570 gpu ...

Update:
After I double-checked, checkout his "master" branch:
https://github.com/gyf304/ethminer-m1/tree/master

as he's last commit adds a vital update to his code. Since he hard-coded the config-settings to only compile it for arm64-arch. With this last commit, the toolchain compiles it for Intel or arm64 (depending on what you're compiling one).

@TomDev234
Copy link
Author

TomDev234 commented Jan 10, 2022 via email

@danieleftodi
Copy link

danieleftodi commented Jan 12, 2022

Error: locale::facet::_S_create_c_locale name not valid
How can I fix that?

I haven't seen that error before. So I don't know.

But could you try out this branch from my fork? It's what works for me, on my macOS 12 (Monterey)
https://github.com/danieleftodi/ethminer/tree/macOS_compile

I'm in the process of merging more and more Pull Requests into it, step by step. At the current state as I'm typing this, it contains the code from:

Next on my list is to make this merge & work: #2222

@TomDev234
Copy link
Author

That one does not build. It wants a CableToolchain

CMake Error at CMakeLists.txt:3 (include):
include could not find requested file:

cmake/cable/bootstrap.cmake

CMake Error at CMakeLists.txt:5 (include):
include could not find requested file:

CableBuildInfo

CMake Error at CMakeLists.txt:6 (include):
include could not find requested file:

CableBuildType

CMake Error at CMakeLists.txt:7 (include):
include could not find requested file:

CableToolchains

@danieleftodi
Copy link

danieleftodi commented Jan 14, 2022

That one does not build.

You are most likely getting that Error because you haven't cloned the repro with the required sub modules:
git clone --recurse-submodules https://github.com/danieleftodi/ethminer.git

@TomDev234
Copy link
Author

TomDev234 commented Jan 24, 2022 via email

@zaptrem
Copy link

zaptrem commented Mar 24, 2022

@danieleftodi Getting this error following BUILD.md "build from source" instructions (cmake ,,), any ideas? Shouldn't have to deal with CUDA as this is MacOS and NVIDIA was abandoned long ago.

-- Performing Test Wl,--gc-sections - Success
-- Found Git: /usr/bin/git (found version "2.32.0 (Apple Git-132)") 
CMake Error at /usr/local/Cellar/cmake/3.22.3/share/cmake/Modules/FindCUDA.cmake:859 (message):
  Specify CUDA_TOOLKIT_ROOT_DIR
Call Stack (most recent call first):
  libhwmon/CMakeLists.txt:19 (find_package)

@TomDev234
Copy link
Author

@zaptrem

build with cmake .. -DETHASHCUDA=OFF -DETHASHCL=ON

@zaptrem
Copy link

zaptrem commented Apr 2, 2022

@zaptrem

build with cmake .. -DETHASHCUDA=OFF -DETHASHCL=ON

Thanks! It built, but I'm now running into a segfault (SIGSEGV) when running:

ryantremblay@Ryans-MacBook-Pro-2 ethminer % ./ethminer -P stratum+tcp://[email protected]:9999 --opencl


ethminer 0.19.2+commit.59e063c5
Build: darwin/release/appleclang

 i 13:35:47          Configured pool eth-us-east1.nanopool.org:9999
 i 13:35:47          Selected pool eth-us-east1.nanopool.org:9999
 i 13:35:48          Stratum mode : Stratum
 i 13:35:48          Established connection to eth-us-east1.nanopool.org [142.44.242.100:9999]
 i 13:35:48          Spinning up miners...
cl 13:35:48 cl-0     Using Device : Intel GPU 0.0 Intel(R) UHD Graphics 630 OpenCL 1.2  Memory : 1.50 GB (1610612736 B)
cl 13:35:48 cl-1     Using Device : Intel GPU 0.1 AMD Radeon Pro 5600M Compute Engine OpenCL 1.2  Memory : 7.98 GB (8573157376 B)
 i 13:35:48          Epoch : 483 Difficulty : 10.00 Gh
 i 13:35:48          Job: b5a2c6fb… eth-us-east1.nanopool.org [142.44.242.100:9999]
cl 13:35:50 cl-0     Epoch 483 requires 4.77 GB memory. Only 1.50 GB available on device.
cl 13:35:50 cl-1     Generating split DAG + Light (total): 4.77 GB
 i 13:35:50          Authorized worker 0xMYETHADDRESS.mac
SIGSEGV encountered ...
stack trace:
backtrace() returned 6 addresses
 i 13:35:50          Job: b5a2c6fb… eth-us-east1.nanopool.org [142.44.242.100:9999]
0   ethminer                            0x000000010c6d7a38 _ZN8MinerCLI13signalHandlerEi + 280
1   libsystem_platform.dylib            0x00007ff805606e2d _sigtramp + 29
2   libsystem_c.dylib                   0x00007ff8054ced36 funlockfile + 36
3   ethminer                            0x000000010c742e6d _ZNSt3__1L14__thread_proxyINS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN3dev6Worker12startWorkingEvE3$_0EEEEEPvSB_ + 141
4   libsystem_pthread.dylib             0x00007ff8055f14f4 _pthread_start + 125
5   libsystem_pthread.dylib             0x00007ff8055ed00f thread_start + 15

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

No branches or pull requests

3 participants