Coder Social home page Coder Social logo

Mac build does not work about ethminer HOT 11 OPEN

TomDev234 avatar TomDev234 commented on June 30, 2024
Mac build does not work

from ethminer.

Comments (11)

danieleftodi avatar danieleftodi commented on June 30, 2024

ethminer 0.18.0

wrong version.

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

from ethminer.

TomDev234 avatar TomDev234 commented on June 30, 2024

There is no Intel code inside.

from ethminer.

danieleftodi avatar danieleftodi commented on June 30, 2024

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).

from ethminer.

TomDev234 avatar TomDev234 commented on June 30, 2024

from ethminer.

danieleftodi avatar danieleftodi commented on June 30, 2024

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

from ethminer.

TomDev234 avatar TomDev234 commented on June 30, 2024

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

from ethminer.

danieleftodi avatar danieleftodi commented on June 30, 2024

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

from ethminer.

TomDev234 avatar TomDev234 commented on June 30, 2024

from ethminer.

zaptrem avatar zaptrem commented on June 30, 2024

@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)

from ethminer.

TomDev234 avatar TomDev234 commented on June 30, 2024

@zaptrem

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

from ethminer.

zaptrem avatar zaptrem commented on June 30, 2024

@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

from ethminer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.