<!-- Describe the issue -->
When attempting to compile bitcoin from master source I run into two problems. One is a boost lib location error which i fix by adding a absolute file path in depends/x86_64-apple-darwin11/share/config.site this:
- depends_prefix="
dirname ${ac_site_file}/.."
to this:
- depends_prefix="/home/user/osx/bitcoin/depends/x86_64-apple-darwin11"`
My second problem is in the make process, i get a clang linker error.
<!--- What behavior did you expect? -->
Compile bitcoin for osx
<!--- What was the actual behavior (provide screenshots if the issue is GUI-related)? -->
Errors
<!--- How reliably can you reproduce the issue, what are the steps to do so? -->
Everytime
<!-- What version of Bitcoin Core are you using, where did you get it (website, self-compiled, etc)? -->
Branch Master
<!-- What type of machine are you observing the error on (OS/CPU and disk type)? -->
Ubuntu 14.04 Trusty
<!-- Any extra information that might be useful in the debugging process. -->
My steps I take:
- cd depends with SDK already added
- make HOST='x8664-apple-darwin11'
- cd ..
- ./autogen.sh
- change config.site as noted above
- CONFIG_SITE=depends/x86_64-apple-darwin11/share/config.site ./configure --prefix=/ --disable-ccache --disable-maintainer-mode --disable-dependency-tracking --with-gui
- make
8 end at this error:
CC src/libsecp256k1_la-secp256k1.lo
CCLD libsecp256k1.la
make[3]:
Leaving directory/home/smyers/osx/bitcoin/src/secp256k1' CXXLDlibbitcoinconsensus.la clang: warning: argument unused during compilation: '-pthread' clang: warning: argument unused during compilation: '-pthread' ld: file was built for archive which is not the architecture being linked (x86_64): secp256k1/.libs/libsecp256k1.a for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make[2]: *** [libbitcoinconsensus.la] Error 1 make[2]: Leaving directory/home/smyers/osx/bitcoin/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/smyers/osx/bitcoin/src' make: *** [all-recursive] Error 1 smyers@headhunter911-trusty:~/osx/bitcoin$
<!--- This is normally the contents of a `debug.log` or `config.log` file. Raw text or a link to a pastebin type site are preferred. -->
config.log: https://pastebin.com/Rf6B5Ry4