MoneroOcean / xmrig

Monero (rx/0, rx/wow, rx/loki, defyx, rx/arq, rx/sfx, rx/keva, cn/0, cn/1, cn/2, cn/r, cn/fast, cn/half, cn/xao, cn/rto, cn/rwz, cn/zls, cn/double, cn/gpu, cn-lite/0, cn-lite/1, cn-heavy/0, cn-heavy/tube, cn-heavy/xhv, cn-pico, cn-pico/tlo, argon2/chukwa, argon2/wrkz, astrobwt) CPU/GPU miner
https://moneroocean.stream
GNU General Public License v3.0
275 stars 86 forks source link

Need static Linux binary #116

Open a-p-jo opened 1 year ago

a-p-jo commented 1 year ago

The released linux binaries seem to be dynamically linked to glibc. It would be better if they were static binaries, maybe linked to musl, as dynamically linked binaries make little sense on Linux.

As a note to anyone on Alpine Linux, you need to:

  1. Enable community repos
  2. apk add gcompat
Spudz76 commented 1 year ago

glibc won't static, if you build your own it will be all static except for glibc.

I don't think alternative libc's work, for some non-trivial reason.

realsetvin commented 5 months ago

the instructions were easy enough for me to follow, I have confidence in you

https://xmrig.com/docs/miner/build

please close this issue

a-p-jo commented 5 months ago

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

realsetvin commented 5 months ago

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

apologize for my lack of understanding, do you think you could form a pull request to solve the issue? any suggestions?

GhostDog98 commented 5 months ago

There's instructions to statically compile here:

  1. sudo apt install git build-essential cmake automake libtool autoconf
  2. git clone https://github.com/xmrig/xmrig.git
  3. mkdir xmrig/build && cd xmrig/scripts
  4. ./build_deps.sh && cd ../build
  5. cmake .. -DXMRIG_DEPS=scripts/deps
  6. make -j$(nproc)

I've attached a static build for linux here. Use at own risk etc. etc. xmrig.zip

Spudz76 commented 5 months ago

@realsetvin I am not asking how to build. Your link is irrelevant to the issue. The issue requests that the project should not be (and should not need) linking to glibc because dynamic linking is undesirable on Linux for compatibility reasons.

Must be why every package on the Debian repo is dynamic linked 🤡

Spudz76 commented 5 months ago

Also as far as I know the compat release is static.

https://github.com/MoneroOcean/xmrig/releases/download/v6.21.3-mo15/xmrig-v6.21.3-mo15-lin64-compat.tar.gz