'make deploy' fails on OSX 10.12.5 #10620

issue dwasyluk opened this issue on June 17, 2017
  1. dwasyluk commented at 6:16 PM on June 17, 2017: none

    Trying to compile Bitcoin on a new machine and followed the usual steps at https://github.com/bitcoin/bitcoin/blob/master/doc/build-osx.md. make works fine but when make deploy is attempted it fails with the following error:

    $ make deploy
    build-aux/install-sh -c -d Bitcoin-Qt.app/Contents
    build-aux/install-sh -c -d Bitcoin-Qt.app/Contents/Resources
    build-aux/install-sh -c -d Bitcoin-Qt.app/Contents/Resources
    /usr/bin/install -c -m 644 src/qt/res/icons/bitcoin.icns Bitcoin-Qt.app/Contents/Resources/bitcoin.icns
    build-aux/install-sh -c -d Bitcoin-Qt.app/Contents
    /usr/bin/install -c -m 644 share/qt/Info.plist Bitcoin-Qt.app/Contents/Info.plist
    /Library/Developer/CommandLineTools/usr/bin/make -C src qt/bitcoin-qt
      OBJCXXLD qt/bitcoin-qt
    ld: entry point (_main) undefined. for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [qt/bitcoin-qt] Error 1
    make: *** [src/qt/bitcoin-qt] Error 2
    

    Not entirely sure how to address this, any help is much appreciated!

  2. jonasschnelli commented at 6:34 PM on June 17, 2017: contributor

    Make deploy works fine on my OSX 10.12 machine. Idea: do you have Qt installed (brew install qt5)? If so, can you post debug.log config.log

    Does make compile qt/bitcoin-qt?

  3. jonasschnelli added the label MacOSX on Jun 17, 2017
  4. dwasyluk commented at 6:51 PM on June 17, 2017: none

    Already have qt5 installed via brew 👍 I'm seeing Bitcoin-Qt in the root folder after make deploy but its attributed as an invalid application (question mark icon) and its only 922Kb and cannot be run. Since I can't actually execute the built .app I can't provide any debug.log output unless maybe there's a flag I can pass to the compiler for more info?

  5. jonasschnelli commented at 6:57 PM on June 17, 2017: contributor

    Argh. Meant config.log. Make pastbin that and the output of a plain make.

  6. dwasyluk commented at 9:48 PM on June 17, 2017: none

    Aha that I can do :) config.log : https://pastebin.com/PZ5UqgLq. Thanks for your help!

  7. jonasschnelli commented at 8:04 PM on June 18, 2017: contributor

    config.log looks okay. Can you post the output of a make V=1?

  8. dwasyluk commented at 12:40 AM on June 19, 2017: none

    make V=1 doesn't output much since it executes without issue (nothing to be done).make deploy V=1 included some more output:

    $ make deploy V=1
    /Library/Developer/CommandLineTools/usr/bin/make -C src qt/bitcoin-qt
    /bin/sh ../libtool    --mode=link g++ -std=c++11  -g -O2 -Wall -Wextra -Wformat -Wvla -Wformat-security -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-deprecated-register -Wno-implicit-fallthrough  -Wl,-headerpad_max_install_names -Wl,-dead_strip -o qt/bitcoin-qt   -L/usr/local/opt/berkeley-db@4/lib
    libtool: link: g++ -std=c++11 -g -O2 -Wall -Wextra -Wformat -Wvla -Wformat-security -Wno-unused-parameter -Wno-self-assign -Wno-unused-local-typedef -Wno-deprecated-register -Wno-implicit-fallthrough -Wl,-headerpad_max_install_names -Wl,-dead_strip -o qt/bitcoin-qt -Wl,-bind_at_load  -L/usr/local/opt/berkeley-db@4/lib
    ld: entry point (_main) undefined. for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [qt/bitcoin-qt] Error 1
    make: *** [src/qt/bitcoin-qt] Error 2
    

    If you'd like me to make clean and then make V=1 just let me know.

  9. dwasyluk commented at 5:38 PM on July 5, 2017: none

    Still really struggling with this, forcing me to use my older machine to put together .app releases. Is there any further info I could provide to assist in debugging this? TIA!

  10. fanquake commented at 5:21 AM on November 7, 2017: member

    @dwasyluk Can you still reproduce this? I can't using https://github.com/bitcoin/bitcoin/commit/0e707919f596c80056bca295abd71543ccae4956 and OS X 10.12.6.

  11. Empact commented at 2:15 AM on December 18, 2017: member

    @dwasyluk Good for me on 62fdf9b07087b80d2142799bdd2324f61483359d and OS X 10.12.6

  12. fanquake commented at 11:16 AM on February 14, 2018: member

    Closing, please re-open if this is still an issue.

  13. fanquake closed this on Feb 14, 2018

  14. tofutim commented at 9:21 PM on March 23, 2018: none

    @dwasyluk did you ever figure this out?

  15. 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: 2026-04-15 15:15 UTC

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