chia-plotter icon indicating copy to clipboard operation
chia-plotter copied to clipboard

Mac M1 - ld: library not found for -lgmp

Open noloco opened this issue 3 years ago • 9 comments

I have 2 different M1 Mac Minis I'm trying to compile on and both get the same error.

clang: warning: argument unused during compilation: '-fmax-errors=1' [-Wunused-command-line-argument] ld: library not found for -lgmp clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [chia_plot] Error 1 make[1]: *** [CMakeFiles/chia_plot.dir/all] Error 2 make: *** [all] Error 2

noloco avatar Jun 16 '21 14:06 noloco

Same problem here on Mac intel

juslex avatar Jun 16 '21 14:06 juslex

I no longer link to gmp...

madMAx43v3r avatar Jun 17 '21 07:06 madMAx43v3r

Mac Intel here: Still the same error after your commit, sugestions ?

dt3ft avatar Jun 17 '21 12:06 dt3ft

Mac intel here: Same error

mbonkowski avatar Jun 17 '21 14:06 mbonkowski

I fix it. Go to /usr/local/include and delete gmp.h symlink and try restart all fases do compile the chia-plotter

juslex avatar Jun 17 '21 14:06 juslex

working

dt3ft avatar Jun 17 '21 15:06 dt3ft

for m1 /opt/homebrew/include thx! 🚀

alexey1312 avatar Jun 18 '21 04:06 alexey1312

Seems like brew unlink gmp is more appropriate.

jankkhvej avatar Jun 20 '21 08:06 jankkhvej

it works for me

export LIBRARY_PATH=/opt/homebrew/lib

ikhin avatar Jun 09 '23 09:06 ikhin