Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Gavin Andresen on September 19, 2012, 01:53:12 PM



Title: Help wanted: Mac developer with OSX 10.5
Post by: Gavin Andresen on September 19, 2012, 01:53:12 PM
We're getting reports that version 0.7.0 isn't working on OSX 10.5-- are there any Mac developers with a 10.5 machine who can help figure out what is wrong?

The OSX builds are done on my OSX 10.6.8 machine, compiled against the 10.5 SDK in 32-bit mode (see http://gavintech.blogspot.com/2011/11/deploying-bitcoin-qt-on-osx.html ) for maximum compatibility. I'm not sure what changed between bitcoin versions 0.6.3 and 0.7.0 that would break compatibility...


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: paulie_w on September 19, 2012, 03:44:40 PM
gavin i'm sure you know how to use a virtual machine to run older versions of osx right?


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: Gavin Andresen on September 19, 2012, 09:35:16 PM
gavin i'm sure you know how to use a virtual machine to run older versions of osx right?
I'm sure I could figure it out, but I don't have a copy of osx 10.5 to run, won't pirate it, and don't feel like spending $60 to pick up a copy on Ebay. I'd rather not spend the half a day it would take me to set up a development environment in a VM, too....


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: paulie_w on September 20, 2012, 02:30:25 PM
would you like me to send you an older mac running 10.5?


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: Gavin Andresen on October 01, 2012, 09:23:16 PM
If nobody steps up and volunteers to help with this, we'll have to drop support for OSX 10.5 in the next release.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: URSAY on October 01, 2012, 09:40:56 PM
I'm in a mac environment and I've offered my testing skills in the past but I'm usually ignored.  Actually...I sent you an email Gavin after we met at BitInstant regarding another pro-btc subject...never heard back from you.   :'(


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on October 30, 2012, 06:12:05 PM
Hello, I would like to take it upon myself to maintain Bitcoin-qt for OSX 10.5
I myself am stuck with osx 10.5 without the ability to upgrade. I use bitcoin-qt and starting with v. 0.7 the official mac build would crash.
I have no problem compiling bitcoin-qt from source and running it. I just follow doc/readme-qt.rst
My build environment is XCode 3.1.4 with Qt 4.6

Unfortunately, I can't trace the crash problem since the official build has no debugsymbols.
What can be done at this point is that somebody would build the app on their osx 10.6/10.7 with debug symbols, so I could debug the app and find the problem.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on October 31, 2012, 07:18:49 PM
URSAY,
I'm sorry to hear that you've been ignored in the past. I read some of your previous posts and see that you have a legitimate grievance.
Realising how busy Gavin Andersen might be, I'm not going to sit hear days on end waiting for him to send me the build with debuginfo.
So I decided to turn to you URSAY. Do you own an OSX 10.6 machine? Can you build bitcoin-Qt from source?



Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: URSAY on November 01, 2012, 05:31:11 PM
Dan...unfortunately I am without power at my home...I will be unable to help with this until I get power back and right now there is no ETA.  I'm writing this from work on a PC.  Sorry.  :(


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: Gavin Andresen on November 01, 2012, 08:43:25 PM
dansmith:

Here's a -g build:
  http://skypaint.com/bitcoin/Bitcoin-Qt-mac-g.zip

If I recall correctly, one of the libraries it links with is incompatible with 10.5.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on November 04, 2012, 06:56:44 PM
URSAY, I'm sorry to hear you are without power, hope things get sorted out soon for you.

Gavin:
thank you for the build release.
It turns out that libboost_thread-mt.dylib is trying to invoke a function in libstdc++.6.dylib with a mangled name which doesn't exist:

Dyld Error Message:
  Symbol not found: __ZNKSt13bad_exception4whatEv
  Referenced from: /Users/user/Desktop/btc07/Bitcoin-Qty.app/Contents/MacOS/../Frameworks/libboost_thread-mt.dylib
  Expected in: /usr/lib/libstdc++.6.dylib

On my 10.5 system I ran "nm /usr/lib/libstdc++.6.dylib | grep bad_exception" and I got ...

000455ae T __ZNSt13bad_exceptionD0Ev
000455a4 T __ZNSt13bad_exceptionD1Ev
00045586 T __ZNSt13bad_exceptionD2Ev
000068de T __ZSt21__throw_bad_exceptionv
00067310 S __ZTISt13bad_exception
0005d0f9 S __ZTSSt13bad_exception
00067338 S __ZTVSt13bad_exception

So, as expected the mangled name in question does not exist i this dylib.


I assume that the missing mangled name exists in osx 10.6's libstdcxx, so if you run the above command on 10.6's libstdcxx.*.dylib, you will see __ZNKSt13bad_exception4whatEv
So my guess is that libboost_thread-mt.dylib was somehow linked against 10.6 host system's libstdcxx thus effectively ignoring or overriding -isysroot /Developer/SDKs/MacOSX10.5.sdk

Gavin, could you kindly advise as to whether or not you upgraded macports' boost package between the releases of bitcoin 0.6.3 an 0.7?


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: Gavin Andresen on November 04, 2012, 11:48:08 PM
Gavin, could you kindly advise as to whether or not you upgraded macports' boost package between the releases of bitcoin 0.6.3 an 0.7?
Yes, I believe I did.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on November 05, 2012, 11:10:17 PM
It seems that macports' boost Portfile never honored the "macosx_deployment_target 10.5" from macports.conf and always built with the host SDK.
Gavin, you will have to add "-isysroot ${configure.sdkroot}" manually to the Portfile acc.to
https://trac.macports.org/ticket/33085

This commit has been added to boost's svn and then reverted the very next day.
Could it be, Gavin, that you checked out from boost svn on the 1st or 2nd of February 2012? This is my only explanation why all your previous builds didn't crash on 10.5 like the current build does now that you have upgraded macports' boost.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: Gavin Andresen on November 06, 2012, 02:49:29 AM
Ummm....
.... yeah.

Sorry, but tweaking and recompiling my macports boost to support OSX 10.5, which is not longer being supported by Apple (or Chrome or several other popular projects) just isn't very high on my TODO list.

Figuring out why it used to work is even lower on my list.

Perhaps you can convince people that you're trustworthy, and release a 10.5-compiled binary yourself.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on November 07, 2012, 06:17:53 PM
Gavin, thank you for your thoughts.

For those interested in getting the 0.7.1 Bitcoin-Qt binary compiled for OSX 10.5, please download it from here:
EDIT: Sorry the link below points to a broken app. Don't download it. The link to a proper build will be posted later on.
http://www.coinuploads.com/downloads/38d71029e5ac845e6dd171a20e44fcb6

I set a price on the download of 10 cents. This way I get both the pleasure of receiving tokens of appreciation for the hard work of setting up the development environment and investment of time as well as keeping stats of how many folks actually downloaded the file :)


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: spiccioli on November 08, 2012, 12:36:47 PM
Gavin, thank you for your thoughts.

For those interested in getting the 0.7.1 Bitcoin-Qt binary compiled for OSX 10.5, please download it from here:
http://www.coinuploads.com/downloads/38d71029e5ac845e6dd171a20e44fcb6

I set a price on the download of 10 cents. This way I get both the pleasure of receiving tokens of appreciation for the hard work of setting up the development environment and investment of time as well as keeping stats of how many folks actually downloaded the file :)

Hi dan,

I tested it on my mac 10.5.8,

it dies like this

Code:

Process:         Bitcoin-Qt [359]
Path:            /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
Identifier:      com.yourcompany.Bitcoin-Qt
Version:         ??? (???)
Code Type:       X86 (Native)
Parent Process:  launchd [76]

Interval Since Last Report:          801846 sec
Crashes Since Last Report:           2
Per-App Interval Since Last Report:  773000 sec
Per-App Crashes Since Last Report:   2

Date/Time:       2012-11-08 13:32:10.226 +0100
OS Version:      Mac OS X 10.5.8 (9L31a)
Report Version:  6
Anonymous UUID:  51EEDE10-8C88-466A-AEF6-E85F259DF368

Exception Type:  EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000002, 0x0000000000000000
Crashed Thread:  0

Dyld Error Message:
  Library not loaded: /opt/local/lib/libminiupnpc.8.dylib
  Referenced from: /Applications/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
  Reason: image not found



spiccioli


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: paulie_w on November 08, 2012, 12:39:23 PM
Gavin, thank you for your thoughts.

For those interested in getting the 0.7.1 Bitcoin-Qt binary compiled for OSX 10.5, please download it from here:
http://www.coinuploads.com/downloads/38d71029e5ac845e6dd171a20e44fcb6

I set a price on the download of 10 cents. This way I get both the pleasure of receiving tokens of appreciation for the hard work of setting up the development environment and investment of time as well as keeping stats of how many folks actually downloaded the file :)

nice idea dan!

do you think you could also make a powerpc port using the same method?


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: jgarzik on November 08, 2012, 08:27:21 PM
do you think you could also make a powerpc port using the same method?

The reference bitcoin client only supports little endian CPUs, which typically rules out PPC, SPARC, ...



Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on November 09, 2012, 06:13:37 PM
spiccioli:
I'm sorry, I packaged the app wrongly, didn't include all the shared libraries into the package. I will look into how to do it and reupload the proper file.

paulie_w:
I'm sorry that you are stuck with an old mac. Porting to powerpc is no trivial matter.

jgarzik:
Do you think it is feasible for me to maintain a separate powerpc fork. As I understand all the modifications for ppc should relate to functions which do byte-ordering related stuff. Since you know the source probably better than I, is there a lot of byte-fiddling in bitcoin?


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: jgarzik on November 09, 2012, 07:53:04 PM
Do you think it is feasible for me to maintain a separate powerpc fork. As I understand all the modifications for ppc should relate to functions which do byte-ordering related stuff. Since you know the source probably better than I, is there a lot of byte-fiddling in bitcoin?

I doubt there would be need for a fork.

As soon as someone, anyone, makes the effort to audit the source code and fix all the endian issues, we would likely just merge that patch into mainline bitcoin.



Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on November 15, 2012, 08:35:17 PM
After some struggling in creating a self-contained package and filing an issue:
https://github.com/bitcoin/bitcoin/issues/2015

here is the v0.7.1
http://www.coinuploads.com/downloads/bcae366c-e881-4ee4-aea2-24a6677766dd

The price tag on this one is 20 cents.
Please report back here if it works OK.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: spiccioli on November 17, 2012, 09:45:11 AM
After some struggling in creating a self-contained package and filing an issue:
https://github.com/bitcoin/bitcoin/issues/2015

here is the v0.7.1
http://www.coinuploads.com/downloads/f08a5d87-1b91-4925-96ec-c4307dab90fa

The price tag on this one is 20 cents.
Please report back here if it works OK.

Hi dan,

I'm not able to download it, it keeps telling me that something went wrong.

Code:
We're sorry, but something went wrong.

spiccioli


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on November 21, 2012, 06:11:29 PM
spiccioli:
 I have just updated the link above.
 PLease let me know if the app runs OK.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: spiccioli on November 28, 2012, 01:35:25 PM
spiccioli:
 I have just updated the link above.
 PLease let me know if the app runs OK.

Hi dan,

same error, something went wrong...

spiccioli.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on December 01, 2012, 10:33:58 AM
...


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on December 01, 2012, 10:34:46 AM
Apparently there's a glitch on coinupload's side.
Here's a new link:
http://wikisend.com/download/339790/Bitcoin-Qt.app.zip


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: Gavin Andresen on December 04, 2012, 07:48:13 PM
Can you please let me know if this works on OSX 10.5:
   https://s3.amazonaws.com/gavinandresen-bitcoin/bitcoin-0.7.2rc2-macosx.dmg

I set up a new build environment on an old, 32-bit OSX 10.6 laptop, and I think I fixed the 10.5 compatibility issue.

(some MacPorts maintainers don't seem to be terribly good at making sure their ports honor BOTH the -arch AND the -isysroot settings...)


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: dansmith on December 04, 2012, 08:52:15 PM
Good work,
I'm confirming that it runs on osx 10.5.
It loads the wallet, blockchain and shows the GUI.



Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: spiccioli on December 05, 2012, 01:47:55 PM
Apparently there's a glitch on coinupload's side.
Here's a new link:
http://wikisend.com/download/339790/Bitcoin-Qt.app.zip

thanks dansmith,

I've downloaded it and it is now syncing.

spiccioli.


Title: Re: Help wanted: Mac developer with OSX 10.5
Post by: spiccioli on December 05, 2012, 01:49:09 PM
Can you please let me know if this works on OSX 10.5:
   https://s3.amazonaws.com/gavinandresen-bitcoin/bitcoin-0.7.2rc2-macosx.dmg

I set up a new build environment on an old, 32-bit OSX 10.6 laptop, and I think I fixed the 10.5 compatibility issue.

(some MacPorts maintainers don't seem to be terribly good at making sure their ports honor BOTH the -arch AND the -isysroot settings...)


Good news Gavin,

I'll test it as soon as dansmith's one finishes syncing.

spiccioli.