jgarzik / cpuminer

CPU miner for bitcoin
Other
952 stars 2.34k forks source link

sse2_64 support for OS X #31

Closed skandragon closed 8 years ago

skandragon commented 13 years ago

Someone provided this: https://gist.github.com/971291

This works for me! It should be compiled on OS X using yasm -f mach064 ...

Kudu commented 13 years ago
mv -f .deps/minerd-sha256_sse2_amd64.Tpo .deps/minerd-sha256_sse2_amd64.Po
gcc -DHAS_YASM -g -O2 -pthread  -o minerd minerd-cpu-miner.o minerd-util.o minerd-sha256_generic.o minerd-sha256_4way.o minerd-sha256_via.o minerd-sha256_cryptopp.o minerd-sha256_sse2_amd64.o -lcurl -ljansson -lpthread x86_64/libx8664.a 
ld: warning: in x86_64/libx8664.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
Undefined symbols:
  "_CalcSha256_x64", referenced from:
      _scanhash_sse2_64 in minerd-sha256_sse2_amd64.o
      _scanhash_sse2_64 in minerd-sha256_sse2_amd64.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [minerd] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
NotBugger commented 11 years ago

Please include this patch so Mac users can use the program. It's been a year since this bug was first reported and no comment by the author...

jgarzik commented 11 years ago

@NotBugger the original poster says " It should be compiled on OS X using yasm -f mach064 ..." which seems to indicate that it is an OSX-specific patch. OSX-specific patches would break other platforms.

If someone can create a patch that is tested and shown to work on non-OSX platforms, the patch can be accepted.

jgarzik commented 8 years ago

closed - obsolete software - not actively supported or maintained.