genesismining / sgminer-gm

A multi-algo GPU miner
GNU General Public License v3.0
339 stars 146 forks source link

how to properly build on macOS #56

Open ghost opened 7 years ago

ghost commented 7 years ago

whats wrong on my Mac?

CCLD sgminer Undefined symbols for architecture x86_64: "_lyra2rehash", referenced from: _lyra2re_test in sgminer-lyra2re.o _lyra2re_regenhash in sgminer-lyra2re.o _scanhash_lyra2re in sgminer-lyra2re.o "_lyra2rev2hash", referenced from: _lyra2rev2_test in sgminer-lyra2rev2.o _lyra2rev2_regenhash in sgminer-lyra2rev2.o _scanhash_lyra2rev2 in sgminer-lyra2rev2.o "_pluckrehash", referenced from: _pluck_test in sgminer-pluck.o _pluck_regenhash in sgminer-pluck.o _scanhash_pluck in sgminer-pluck.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [sgminer] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2

CFLAGS="-O2 -Wall -march=native -std=gnu99" ./configure

gave me:


sgminer 5.5.5-gm-a

Configuration Options Summary:

Use git version......: yes libcurl(GBT+getwork).: Enabled: -lcurl curses.TUI...........: FOUND: -lncurses OpenCL...............: FOUND. GPU mining support enabled ADL..................: SDK NOT found, GPU monitoring support DISABLED

Compilation............: make (or gmake) CPPFLAGS.............: CFLAGS...............: -O2 -Wall -march=native -std=gnu99 LDFLAGS..............:
LDADD................: -lcurl submodules/jansson/src/.libs/libjansson.a -lpthread -framework OpenCL -lm

Installation...........: make install (as root if needed, with 'su' or 'sudo') prefix...............: /usr/local

anybody has successfully build on newest macOS?

matteodelv commented 7 years ago

I managed to compile it on macOS 10.12.5 but there are problems which cause a segmentation fault. Anyway, to compile it, remove inline before function declarations. More precisely, before lyra2rehash in lyra2re.c, before lyra2rev2hash in lyra2rev2.c and before pluckrehash in pluck.c. If you have any luck executing it, please let me know!