-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can you build this in OSX? I can not #39
Comments
Perhaps related to this? |
I don't have a Mac machine to test with, however, I managed to have a community member to compile blackcoind using macports on his mac.
|
For compiling the QT wallet, appearently there is some bugs that affect bitcoin as well, https://trac.macports.org/ticket/46951 |
Yes, I was able to compile the daemon but still unable to compile the -qt. I should have been more specific. |
According to the link I gave in privous comment, It seems that compiling the QT require patching of all the boost headers. |
Have you tried using homebrew instead of macports? |
Yeah I have tried with both. Fresh installs. I believe it is a misconfigured -qt makefile file for mavericks. |
Anymore luck with this? Tried on Yosemite at all? I may give it a shot on Yosemite/homebrew. |
I had these issues and I made modifications to the *.pro file that has it compiling. Unfortunately now I see a runtime error:
It seems other projects have ran into this issue, once I solve it I can do a pull request. |
By default AssertLockHeld() is a noop and therefore shouldn't matter.
A backtrace of the assertion fail might shed light on the problem.
|
I typically use linux so I'm still trying to find the best way to insert a backtrace to get information regarding the error. |
I went through and commented out each AssertLockHeld and it didn't change anything so it is unrelated. I must say I find it funny that Litecoin and Reddcoin both have simply removed the asserts considering the usefulness in debugging. |
I have this fixed, it requires two minor changes to the .pro file. If you need me to build your newest OSX binary I can do this for you too. |
That'd be great if you share the fix.
|
Im having the same issues today, If you could share that fix for this error would be great :) 'Assertion failed: (!pthread_mutex_lock(&m)), function lock, file /opt/local/include/boost/thread/pthread/recursive_mutex.hpp, line 110.' |
probably not ideal but adding NDEBUG to the .pro DEFINES allowed it to compile and run. |
NDEBUG is too dangerous workaround, as it let wallet run despite the
unknown bug.
|
Can you explain in more detail why it's too dangerous? |
mammix2: the assert is a runtime check to make sure that two simultaneously running threads of the program that manipulate a shared piece of information take turns by acquiring a lock before they alter the shared information. The assert has failed this means that data-corruption will occur if the two threads alters the shared piece of information at the same time. By using NDEBUG you basically say its OK to make the program continue to run despite that it has detected an error which is dangerous to your data. If this kind of assert only triggers on OSX then the root cause of the issue may be in the Boost library’s or in the OSX posix thread handling. |
@xranby, thankyou very much. Very helpful info :) |
FYI: blackcoin internally uses pthread_cond_wait and this function has been broken on Mac OS X I would recommend you to try building blackcoin on OSX using at least boost 1.57 The boost 1.58 beta also fixes some more thread issues: |
@xranby, perfect, i'll give that a go |
unfortunately still getting the same error after updating boost. Updated ports and confirmed i'm now running version boost @1.57.0_1 Any ideas? |
can you attach a debugger like gdb or lldb and print a backtrace |
Using LLDB within my Qt IDE, i think the first assert causing the error is in sync.h line 66 |
That looks like the static initialization order fiasco, and should be fixed by commit 7d766db |
If you guys want an BC Mac wallet compiled let me know. I'll be glad to help :) |
From IRC: < nscrypto> hey, when compiling on osx I get this error http://pastebin.com/j2uKgT6s It was boost 1.58 Edit: Update
|
The boost/static_assert.hpp is broken when boost has defined BOOST_NO_CXX11_STATIC_ASSERT
I will explain:
this line at 87 with the template definition has to be above the line 36 where the template is used:
Reorder the two blocks and you have fixed boost. |
@xranby Could you be more specific please? I didn't understand what I needed to modify in Thank you. |
@Mrsmn current git master should work with boost 1.58 |
Thank you @rat4 Other coins are experiencing this issue as well. I just wish this was higher up on the Google search results. |
I actually found an easier fix that worked for me on OSX 10.9.5:
Cheers. |
@MystPhysX i forgot about this thread fixing that assert issue. Hope you get it sorted :) |
I can build bitcoin, peerunity, and others but for this project I can not build.
I get the following error
I would think it is something to do with the code? Maybe we can fix this to make it easier to compile on OSX?
The text was updated successfully, but these errors were encountered: