Bitcoin Forum
September 25, 2016, 08:50:06 AM *
News: Due to DDoS attacks, there may be periodic downtime.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Build error SVN r115 on my Mac: workaround  (Read 956 times)
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
July 28, 2010, 03:18:25 PM
 #1

I get:
Code:
/var/folders/n7/n7Do3Krz2RWPeE+1YxvhUU+++TM/-Tmp-//cc8PgHsQ.s:879:suffix or operands invalid for `call'
... compiling cryptopp/sha.cpp (latest SVN source) on my Mac (gcc version 4.2.1).

I fixed it by adding -DCRYPTOPP_DISABLE_ASM  to my makefile; perhaps somebody with more experience compiling C++ on a Mac can figure out a better fix.

How often do you get the chance to work on a potentially world-changing project?
1474793406
Hero Member
*
Offline Offline

Posts: 1474793406

View Profile Personal Message (Offline)

Ignore
1474793406
Reply with quote  #2

1474793406
Report to moderator
1474793406
Hero Member
*
Offline Offline

Posts: 1474793406

View Profile Personal Message (Offline)

Ignore
1474793406
Reply with quote  #2

1474793406
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1474793406
Hero Member
*
Offline Offline

Posts: 1474793406

View Profile Personal Message (Offline)

Ignore
1474793406
Reply with quote  #2

1474793406
Report to moderator
1474793406
Hero Member
*
Offline Offline

Posts: 1474793406

View Profile Personal Message (Offline)

Ignore
1474793406
Reply with quote  #2

1474793406
Report to moderator
1474793406
Hero Member
*
Offline Offline

Posts: 1474793406

View Profile Personal Message (Offline)

Ignore
1474793406
Reply with quote  #2

1474793406
Report to moderator
satoshi
Founder
Sr. Member
*
qt
Offline Offline

Activity: 364


View Profile
July 28, 2010, 09:23:23 PM
 #2

Was that the only thing I broke in the OSX build?!  Does it actually work after just that one change?

I had to do that for makefile.vc also.  It compiled, but SHA-256 didn't work correctly; it returned the same incorrect hash each time.

We'll disable it now, and if anyone figures out how to fix it, we can re-enable it then.  It's still 1.7x faster from the midstate optimisation.

The Crypto++ ASM SHA-256 works with GCC on Linux and Windows (MinGW).

I uploaded this makefile.osx change to SVN.  (let me know if that compiles now)
Gavin Andresen
Legendary
*
qt
Offline Offline

Activity: 1652


Chief Scientist


View Profile WWW
July 28, 2010, 09:40:55 PM
 #3

Was that the only thing I broke in the OSX build?!  Does it actually work after just that one change?
I built a TEST-network bitcoind with the SVN r115 changes merged in, and yes, after that one change it's been happily generating coins all afternoon.
I don't use the stock makefile.osx, though-- I setup the dependency directory structure a little differently (for no really good reason).

How often do you get the chance to work on a potentially world-changing project?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!