Cross-compilation from Ubuntu to MacOSX not worked #8913

issue 3s3s openend this issue on October 12, 2016
  1. 3s3s commented at 11:39 am on October 12, 2016: none

    Describe the issue

    Can you reliably reproduce the issue?

    If so, please list the steps to reproduce below:

    1. wget https://github.com/bitcoin/bitcoin/archive/v0.13.0.tar.gz
    2. tar -xvzf v0.13.0.tar.gz
    3. cd bitcoin-0.13.0/depends
    4. make HOST=x86_64-apple-darwin11

    Expected behaviour

    As described here https://github.com/bitcoin/bitcoin/tree/master/depends it should to build dependencies for the MacOSX

    Actual behaviour

    Got errors

     0Extracting native_biplist...
     1/home/kzv/bitcoin/bitcoin-0.13.0/depends/sources/biplist-0.9.tar.gz: OK
     2Preprocessing native_biplist...
     3patching file biplist/__init__.py
     4Configuring native_biplist...
     5Building native_biplist...
     6Traceback (most recent call last):
     7  File "setup.py", line 6, in <module>
     8    import ez_setup
     9ImportError: No module named ez_setup
    10funcs.mk:242: recipe for target '/home/kzv/bitcoin/bitcoin-0.13.0/depends/work/build/x86_64-apple-darwin11/native_biplist/0.9-d0524e5b699/./.stamp_built' failed
    11make: *** [/home/kzv/bitcoin/bitcoin-0.13.0/depends/work/build/x86_64-apple-darwin11/native_biplist/0.9-d0524e5b699/./.stamp_built] Error 1
    

    What version of bitcoin-core are you using?

    0.13.0 (release)

    Machine specs:

    • Ubuntu 16.04 TLS (32 bit):

    Same issue with bitcoin release 0.12.1 ( Ubuntu 16.04 TLS 64-bit)

    When “make HOST=x86_64-apple-darwin11” got errors:

    0Configuring native_cdrkit...
    1/bin/sh: 1: cmake: not found
    2funcs.mk:238: recipe for target '/home/kzv/makos/bitcoin-0.12.1/depends/work/build/x86_64-apple-darwin11/native_cdrkit/1.1.11-cb58a68db82/./.stamp_configured' failed
    3make: *** [/home/kzv/makos/bitcoin-0.12.1/depends/work/build/x86_64-apple-darwin11/native_cdrkit/1.1.11-cb58a68db82/./.stamp_configured] Error 127
    
  2. MarcoFalke added the label Build system on Oct 12, 2016
  3. MarcoFalke added the label MacOSX on Oct 12, 2016
  4. laanwj commented at 8:44 pm on October 13, 2016: member

    You may be missing some packages, see https://github.com/bitcoin/bitcoin/blob/master/contrib/gitian-descriptors/gitian-osx.yml :

     0- "ca-certificates"
     1- "curl"
     2- "g++"
     3- "git-core"
     4- "pkg-config"
     5- "autoconf"
     6- "librsvg2-bin"
     7- "libtiff-tools"
     8- "libtool"
     9- "automake"
    10- "faketime"
    11- "bsdmainutils"
    12- "cmake"
    13- "imagemagick"
    14- "libcap-dev"
    15- "libz-dev"
    16- "libbz2-dev"
    17- "python"
    18- "python-dev"
    19- "python-setuptools"
    20- "fonts-tuffy"
    
  5. 3s3s commented at 8:11 pm on October 16, 2016: none

    I have installed all of this packages but i still got errors when trying cross-compilation from Ubuntu 64-bit to MacOSX (bitcoin release 0.12.1):

    0~/bitcoin-0.12.1/depends$ make HOST=x86_64-apple-darwin11
    1
    2clang: warning: argument unused during compilation: '-fpermissive'
    3In file included from libs/thread/src/pthread/thread.cpp:9:
    4In file included from ./boost/thread/detail/config.hpp:11:
    5In file included from ./boost/config.hpp:44:
    6./boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found
    7#  include <cstddef>
    8           ^
    91 error generated.
    
  6. jonasschnelli commented at 6:28 am on October 20, 2016: contributor
    Do you have “installed” the MacOSXSDK? https://github.com/bitcoin/bitcoin/blob/57b34599b2deb179ff1bd97ffeab91ec9f904d85/doc/README_osx.md#L35? Your depends folder should have a SDKs/MacOSX10.11.sdk.tar.gz file.
  7. 3s3s commented at 6:48 am on October 21, 2016: none

    I have placed this file to depends folder but i still got same errors Maybe I need somewhere to unpack this file

    ~/bitcoin-0.12.1/depends/SDKs/MacOSX10.11.sdk.tar.gz

    ?

     0~/bitcoin-0.12.1/depends$ make HOST=x86_64-apple-darwin11
     1
     2In file included from ./boost/config.hpp:44:
     3./boost/config/select_stdlib_config.hpp:18:12: fatal error: 'cstddef' file not found
     4#  include <cstddef>
     5           ^
     61 error generated.
     7...failed darwin.compile.c++ bin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi/pthread/thread.o...
     8...skipped <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>libboost_thread-mt.a(clean) for lack of <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>pthread/thread.o...
     9...skipped <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>libboost_thread-mt.a for lack of <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>pthread/thread.o...
    10...skipped <pstage/lib>libboost_thread-mt.a for lack of <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>libboost_thread-mt.a...
    11...failed updating 48 targets...
    12...skipped 30 targets...
    13...updated 45 targets...
    14funcs.mk:238: recipe for target '/home/kzv/ppcoin/depends/work/build/x86_64-apple-darwin11/boost/1_59_0-197227ba4ca/./.stamp_built' failed
    15make: *** [/home/kzv/ppcoin/depends/work/build/x86_64-apple-darwin11/boost/1_59_0-197227ba4ca/./.stamp_built] Error 1
    
  8. jonasschnelli commented at 6:52 am on October 21, 2016: contributor
    But now your compiling 0.12.1 which I guess requires MacOSX10.9.sdk.tar.gz. Try again with 0.13.1.
  9. 3s3s commented at 8:35 am on October 21, 2016: none

    Tried with 0.13.1.

     0~/bitcoin-0.13.0/depends$ make HOST=x86_64-apple-darwin11
     1
     2In file included from libs/thread/src/pthread/thread.cpp:9:
     3In file included from ./boost/thread/detail/config.hpp:11:
     4In file included from ./boost/config.hpp:57:
     5In file included from ./boost/config/platform/macos.hpp:28:
     6./boost/config/posix_features.hpp:18:15: fatal error: 'unistd.h' file not found
     7#     include <unistd.h>
     8              ^
     91 error generated.
    10...failed darwin.compile.c++ bin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi/pthread/thread.o...
    11...skipped <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>libboost_thread-mt.a(clean) for lack of <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>pthread/thread.o...
    12...skipped <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>libboost_thread-mt.a for lack of <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>pthread/thread.o...
    13...skipped <pstage/lib>libboost_thread-mt.a for lack of <pbin.v2/libs/thread/build/darwin-4.2.1/release/link-static/threading-multi>libboost_thread-mt.a...
    14...failed updating 48 targets...
    15...skipped 30 targets...
    16...updated 45 targets...
    17funcs.mk:242: recipe for target '/home/kzv/bitcoin-0.13.0/depends/work/build/x86_64-apple-darwin11/boost/1_59_0-6f479b53b48/./.stamp_built' failed
    18make: *** [/home/kzv/bitcoin-0.13.0/depends/work/build/x86_64-apple-darwin11/boost/1_59_0-6f479b53b48/./.stamp_built] Error 1
    
  10. knoxcard commented at 7:30 pm on October 30, 2016: contributor

    instead of make HOST=x86_64-apple-darwin11

    perhaps use this instead? ./configure –prefix=pwd/depends/x86_64-apple-darwin11

  11. fanquake commented at 10:50 am on November 11, 2016: member
    Closing this, the issue seems to be the missing OSX SDK. The ez_setup and cmake problems were both uninstalled dependancies. @knoxcard the ‘make HOST=x86_64-apple-darwin11’ command is correct, as this is being run from the bitcoin/depends dir. Only after a successful compilation of everything, do you plug the prefix into the configure inside /bitcoin.
  12. fanquake closed this on Nov 11, 2016

  13. jonasschnelli referenced this in commit 8f68fd281e on Dec 22, 2017
  14. PastaPastaPasta referenced this in commit 63f85484da on Apr 3, 2020
  15. PastaPastaPasta referenced this in commit 47be3441b0 on Apr 3, 2020
  16. ckti referenced this in commit 5cd3896af4 on Mar 28, 2021
  17. CryptoCentric referenced this in commit 2eb1d1b6f2 on Jul 2, 2021
  18. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-19 06:12 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me