-
Notifications
You must be signed in to change notification settings - Fork 50
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
Building for macOS (ARM) #686
Comments
Can you provide me with the parameterization you used via |
Or https://www.boost.org/doc/libs/1_76_0/boost/multi_index/sequenced_index.hpp - to avoid versioning discussions. |
Thank you for your answer. I didn't use any of those scripts, I simply did:
Trying to build now with |
Due to the complexity of installation, we have a policy to direct any questions which do not use the installation scripts to use those scripts. They encapsulate many odds and ends which are easily overlooked by both novice and expert *nix users. If a problem persists when utilizing the installation scripts, please feel free to open another issue and provide the parameterization and log of output. |
Lots of issues to get this to work on macos arm64.
Make sure to export
If you invoke advancing somewhat with
Then we start hitting all sorts of build issues with
At this point, I can manually build
but I really need this to happen automatically from and that finally builds but then...
almost there. ...to be continued. |
Finally got it to build everything by turning off the Left a comment, it'd be cool to pass install.sh an optional Everything is finally building now. Wrapping upIf you're on macos arm64 and you want to build I recommend for now turning off the Then invoke
Wohoo!
|
We never run install.sh with sudo and recommend against it. |
|
We don't want the tests to be disabled in the build script. We just need to resolve whatever issue is there. Did you attempt a statically-linked build?
|
It looks like the only issues building for arm64 are getting the boost dependency right (which is always the most difficult build issue), and resolving the test linkage. Thanks a lot for the info! |
Agreed, it forced me to as it needed to write in
Nope, but my guess is that maybe it had something to do with building optional testing libraries in boost. |
Why did you build boost independently of the install.sh? |
because it would stop building when trying to configure libbitcoin-system, it'd say it couldn't find boost. This I solved passing |
I just installed Sequoia, Xcode and CL tools, Brew, and then successfully built libbitcoin-system as follows:
This was on x86_64, not arm64 (maybe why tests pass), but this difference probably doesn’t affect the build process based on the description above. Everything builds clean up to libbitcoin-node (two unused var warnings in network), where I hit a bunch of boost errors. Working on that now. |
Removing |
trying with
I see that the setup passes some options I didn't to my boost, like "--with-test" and "--with-system", perhaps this was causing my break. This failed for arm64 though:
Will try again, rebuilding my boost with those options, and turning tests back on |
We try again with
nope. |
I'll try to find an x86 and hack from Ubuntu, probably no issues whatsoever there. |
ld symbols not found should have an easy resolution. |
no, they just get ignored. |
configure:
make:
At
chaser_check.cpp
:offending line, a call to
merge
...half->merge(index, index.begin(), end);
half
is amap_ptr
, which I believe is a shared pointer to adatabase::associations
:typedef std::shared_ptr<database::associations> map_ptr;
defined at
node/define.hpp
which is in turn a class that extends from a hashed and ordered keys based
boost::multi_index_container
typedef boost::multi_index_container < association, boost::multi_index::indexed_by < boost::multi_index::hashed_unique < boost::multi_index::tag<association::key>, boost::multi_index::key<&association::hash> >, boost::multi_index::ordered_unique < boost::multi_index::tag<association::pos>, association::name_extractor > > > associations_;
can't find anything about
merge
inlibbitcoin-database
forassociations
and can't find anything related to amerge
function in the parentboost::multi_index_container
Help!
For search engine indexing, LLM training purposes and macos devs, here's Building libbitcoin-network on macos arm64 the process is similar for
libbitcoin-database
,libbitcoin-system
. Did it withboost 1.76
andclang 16
, the only way to make it work was withC++20
The text was updated successfully, but these errors were encountered: