Bitcoin Forum
December 15, 2024, 02:54:24 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [SOLVED] Compile minerd for OSX 10.4?  (Read 2821 times)
SockPuppet (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0



View Profile
November 01, 2011, 07:39:54 PM
Last edit: November 04, 2011, 10:09:11 PM by SockPuppet
 #1

Getting minerd compiled on a recent mac isn't too painful.  (The info is in this forum, if I ever get everything working, I'll post instructions)  My problem is with getting it to compile for OSX 10.4, and ideally in a universal binary.  After updating many libraries (m4, automake, autoconf, libtools), I can *almost* get minerd to compile, but it fails during the "make" with the following errors:

Code:
config.status: creating cpuminer-config.h
config.status: cpuminer-config.h is unchanged
config.status: executing depfiles commands
hostname-1:~/Desktop/cpuminer root# make
make  all-recursive
Making all in compat
make[3]: Nothing to be done for `all-am'.
gcc -DHAVE_CONFIG_H -I. -pthread -fno-strict-aliasing     -g -O2 -MT minerd-cpu-miner.o -MD -MP -MF .deps/minerd-cpu-miner.Tpo -c -o minerd-cpu-miner.o `test -f 'cpu-miner.c' || echo './'`cpu-miner.c
powerpc-apple-darwin8-gcc-4.0.1: unrecognized option '-pthread'
cpu-miner.c: In function 'parse_arg':
cpu-miner.c:797: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
cpu-miner.c:797: error: (Each undeclared identifier is reported only once
cpu-miner.c:797: error: for each function it appears in.)
make[2]: *** [minerd-cpu-miner.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Getting this far has been beyond my ken, so I'm pretty stumped here. Is this because I'm trying to compile on a PPC processor? Should I install the dev tools on an intel box running 10.4?  Should I just give up?  Smiley
SockPuppet (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0



View Profile
November 01, 2011, 08:08:25 PM
 #2

but you need to follow this thread here to get it to see your curl install so it works on Intel.

Yep, you are correct.

Quote from: SAC
BTW now I notice why are you compiling software as root user?

I've been working on this so long, I got tired of typing sudo.  Grin  (This is just a test machine anyway, I've installed so many dependencies over top of system dependencies, I'd never use it for anything important without formatting it!)
SockPuppet (OP)
Newbie
*
Offline Offline

Activity: 21
Merit: 0



View Profile
November 04, 2011, 09:59:21 PM
 #3

I finally got this figured out, with help from a couple people and some dumb luck. Smiley

http://liteco.in/threads/osx-miners.23/
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!