[OS X deployment] necessary dylib skipped #13594

issue HashUnlimited opened this issue on July 4, 2018
  1. HashUnlimited commented at 8:07 AM on July 4, 2018: contributor

    This is an issue we are carrying since 0.13 (or maybe earlier, that was the first time I have seen it) - I just checked on the current codebase and discovered it is still there, so finally time to report.

    On OSX the make deploy is working properly only the first time it is executed on a "virgin" system. All subsequent deployments are missing the libboost_system-mt.dylib which is definitely needed to run without dev environment. Obviously it thinks that the file is already in place:

    libboost_system-mt.dylib already deployed, skipping.

  2. fanquake added the label macOS on Jul 4, 2018
  3. Sjors commented at 8:35 PM on July 5, 2018: member

    I've never noticed this. Do you export the resulting dmg to a different system and get the error there, or does this happen even on the same system?

  4. HashUnlimited commented at 4:34 AM on July 6, 2018: contributor

    The resulting dmg runs fine on the build system because it's using the already installed boost dylibs. But when using the image (or the app) on a system without dev (boost) framework installed, it won't start and complain about the missing dylib.

  5. DesWurstes commented at 7:24 AM on July 14, 2018: contributor

    What's the output of

    objdump -p "Bitcoin Core.app/Contents/MacOS/Bitcoin-QT"
    

    It shows the external dependencies.

    libboost_system-mt.dylib might be /usr/lib/libSystem.B.dylib, which is a dependency of all executables.

    (Side note: I'm disappointed by that it's not compiled with -static-libc++, but it's MIT licensed, so whatever)

  6. HashUnlimited commented at 11:32 PM on July 14, 2018: contributor

    Pretty much of a list,

    Bitcoin-QT.app/Contents/MacOS/Bitcoin-QT:	file format Mach-O 64-bit x86-64
    
    Mach header
          magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags
    MH_MAGIC_64  X86_64        ALL LIB64     EXECUTE    40       4792   NOUNDEFS DYLDLINK TWOLEVEL WEAK_DEFINES BINDS_TO_WEAK PIE
    Load command 0
          cmd LC_SEGMENT_64
      cmdsize 72
      segname __PAGEZERO
       vmaddr 0x0000000000000000
       vmsize 0x0000000100000000
      fileoff 0
     filesize 0
      maxprot ---
     initprot ---
       nsects 0
        flags (none)
    Load command 1
          cmd LC_SEGMENT_64
      cmdsize 952
      segname __TEXT
       vmaddr 0x0000000100000000
       vmsize 0x0000000000a38000
      fileoff 0
     filesize 10715136
      maxprot rwx
     initprot r-x
       nsects 11
        flags (none)
    Section
      sectname __text
       segname __TEXT
          addr 0x0000000100007c20
          size 0x000000000051c507
        offset 31776
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
     reserved1 0
     reserved2 0
    Section
      sectname __stubs
       segname __TEXT
          addr 0x0000000100524128
          size 0x000000000000234c
        offset 5390632
         align 2^1 (2)
        reloff 0
        nreloc 0
          type S_SYMBOL_STUBS
    attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
     reserved1 0 (index into indirect symbol table)
     reserved2 6 (size of stubs)
    Section
      sectname __stub_helper
       segname __TEXT
          addr 0x0000000100526474
          size 0x0000000000003a1c
        offset 5399668
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes PURE_INSTRUCTIONS SOME_INSTRUCTIONS
     reserved1 0
     reserved2 0
    Section
      sectname __gcc_except_tab
       segname __TEXT
          addr 0x0000000100529e90
          size 0x00000000000ae004
        offset 5414544
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __const
       segname __TEXT
          addr 0x00000001005d7ea0
          size 0x0000000000412d91
        offset 6127264
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __cstring
       segname __TEXT
          addr 0x00000001009eac40
          size 0x000000000003dbe6
        offset 10398784
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_CSTRING_LITERALS
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __objc_methname
       segname __TEXT
          addr 0x0000000100a28826
          size 0x0000000000000124
        offset 10651686
         align 2^0 (1)
        reloff 0
        nreloc 0
          type S_CSTRING_LITERALS
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __objc_classname
       segname __TEXT
          addr 0x0000000100a2894a
          size 0x0000000000000018
        offset 10651978
         align 2^0 (1)
        reloff 0
        nreloc 0
          type S_CSTRING_LITERALS
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __objc_methtype
       segname __TEXT
          addr 0x0000000100a28962
          size 0x0000000000000008
        offset 10652002
         align 2^0 (1)
        reloff 0
        nreloc 0
          type S_CSTRING_LITERALS
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __unwind_info
       segname __TEXT
          addr 0x0000000100a2896c
          size 0x000000000000f650
        offset 10652012
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __eh_frame
       segname __TEXT
          addr 0x0000000100a37fc0
          size 0x0000000000000038
        offset 10715072
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Load command 2
          cmd LC_SEGMENT_64
      cmdsize 1192
      segname __DATA
       vmaddr 0x0000000100a38000
       vmsize 0x0000000000037000
      fileoff 10715136
     filesize 196608
      maxprot rwx
     initprot rw-
       nsects 14
        flags (none)
    Section
      sectname __nl_symbol_ptr
       segname __DATA
          addr 0x0000000100a38000
          size 0x0000000000000010
        offset 10715136
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_NON_LAZY_SYMBOL_POINTERS
    attributes (none)
     reserved1 1506 (index into indirect symbol table)
     reserved2 0
    Section
      sectname __got
       segname __DATA
          addr 0x0000000100a38010
          size 0x0000000000002ac8
        offset 10715152
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_NON_LAZY_SYMBOL_POINTERS
    attributes (none)
     reserved1 1508 (index into indirect symbol table)
     reserved2 0
    Section
      sectname __la_symbol_ptr
       segname __DATA
          addr 0x0000000100a3aad8
          size 0x0000000000002f10
        offset 10726104
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_LAZY_SYMBOL_POINTERS
    attributes (none)
     reserved1 2877 (index into indirect symbol table)
     reserved2 0
    Section
      sectname __mod_init_func
       segname __DATA
          addr 0x0000000100a3d9e8
          size 0x0000000000000278
        offset 10738152
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_MOD_INIT_FUNC_POINTERS
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __const
       segname __DATA
          addr 0x0000000100a3dc60
          size 0x000000000000a5e0
        offset 10738784
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __cfstring
       segname __DATA
          addr 0x0000000100a48240
          size 0x0000000000000080
        offset 10781248
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __objc_catlist
       segname __DATA
          addr 0x0000000100a482c0
          size 0x0000000000000008
        offset 10781376
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes NO_DEAD_STRIP
     reserved1 0
     reserved2 0
    Section
      sectname __objc_imageinfo
       segname __DATA
          addr 0x0000000100a482c8
          size 0x0000000000000008
        offset 10781384
         align 2^2 (4)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __objc_const
       segname __DATA
          addr 0x0000000100a482d0
          size 0x0000000000000060
        offset 10781392
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __objc_selrefs
       segname __DATA
          addr 0x0000000100a48330
          size 0x0000000000000090
        offset 10781488
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_LITERAL_POINTERS
    attributes NO_DEAD_STRIP
     reserved1 0
     reserved2 0
    Section
      sectname __objc_classrefs
       segname __DATA
          addr 0x0000000100a483c0
          size 0x0000000000000028
        offset 10781632
         align 2^3 (8)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes NO_DEAD_STRIP
     reserved1 0
     reserved2 0
    Section
      sectname __data
       segname __DATA
          addr 0x0000000100a483f0
          size 0x000000000001f2f8
        offset 10781680
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_REGULAR
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __bss
       segname __DATA
          addr 0x0000000100a676f0
          size 0x0000000000006030
        offset 0
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_ZEROFILL
    attributes (none)
     reserved1 0
     reserved2 0
    Section
      sectname __common
       segname __DATA
          addr 0x0000000100a6d720
          size 0x0000000000000bf8
        offset 0
         align 2^4 (16)
        reloff 0
        nreloc 0
          type S_ZEROFILL
    attributes (none)
     reserved1 0
     reserved2 0
    Load command 3
          cmd LC_SEGMENT_64
      cmdsize 72
      segname __LINKEDIT
       vmaddr 0x0000000100a6f000
       vmsize 0x00000000000e74dc
      fileoff 10911744
     filesize 947420
      maxprot rwx
     initprot r--
       nsects 0
        flags (none)
    Load command 4
                cmd LC_DYLD_INFO_ONLY
            cmdsize 48
         rebase_off 10911744
        rebase_size 3072
           bind_off 10914816
          bind_size 92152
      weak_bind_off 11006968
     weak_bind_size 214680
      lazy_bind_off 0
     lazy_bind_size 0
         export_off 11221648
        export_size 268800
    Load command 5
         cmd LC_SYMTAB
     cmdsize 24
      symoff 11505376
       nsyms 3663
      stroff 11581516
     strsize 277648
    Load command 6
                cmd LC_DYSYMTAB
            cmdsize 80
          ilocalsym 0
          nlocalsym 1
         iextdefsym 1
         nextdefsym 1724
          iundefsym 1725
          nundefsym 1938
             tocoff 0
               ntoc 0
          modtaboff 0
            nmodtab 0
       extrefsymoff 0
        nextrefsyms 0
     indirectsymoff 11563984
      nindirectsyms 4383
          extreloff 0
            nextrel 0
          locreloff 0
            nlocrel 0
    Load command 7
              cmd LC_LOAD_DYLINKER
          cmdsize 32
             name /usr/lib/dyld (offset 12)
    Load command 8
         cmd LC_UUID
     cmdsize 24
        uuid 69DC9F56-63D1-321A-865B-C1BF390501D7
    Load command 9
          cmd LC_VERSION_MIN_MACOSX
      cmdsize 16
      version 10.13
          sdk 10.13
    Load command 10
          cmd LC_SOURCE_VERSION
      cmdsize 16
      version 0.0
    Load command 11
           cmd LC_MAIN
       cmdsize 24
      entryoff 43888
     stacksize 0
    Load command 12
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libboost_system.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 0.0.0
    compatibility version 0.0.0
    Load command 13
              cmd LC_LOAD_DYLIB
          cmdsize 88
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libboost_filesystem.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 0.0.0
    compatibility version 0.0.0
    Load command 14
              cmd LC_LOAD_DYLIB
          cmdsize 96
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libboost_program_options-mt.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 0.0.0
    compatibility version 0.0.0
    Load command 15
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libboost_thread-mt.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 0.0.0
    compatibility version 0.0.0
    Load command 16
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libboost_chrono-mt.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 0.0.0
    compatibility version 0.0.0
    Load command 17
              cmd LC_LOAD_DYLIB
          cmdsize 96
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 5.10.1
    compatibility version 5.10.0
    Load command 18
              cmd LC_LOAD_DYLIB
          cmdsize 96
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 5.10.1
    compatibility version 5.10.0
    Load command 19
              cmd LC_LOAD_DYLIB
          cmdsize 88
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/QtGui.framework/Versions/5/QtGui (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 5.10.1
    compatibility version 5.10.0
    Load command 20
              cmd LC_LOAD_DYLIB
          cmdsize 96
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/QtCore.framework/Versions/5/QtCore (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 5.10.1
    compatibility version 5.10.0
    Load command 21
              cmd LC_LOAD_DYLIB
          cmdsize 96
             name /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1452.23.0
    compatibility version 300.0.0
    Load command 22
              cmd LC_LOAD_DYLIB
          cmdsize 112
             name /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 50.0.0
    compatibility version 1.0.0
    Load command 23
              cmd LC_LOAD_DYLIB
          cmdsize 88
             name /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1561.40.112
    compatibility version 45.0.0
    Load command 24
              cmd LC_LOAD_DYLIB
          cmdsize 96
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/QtDBus.framework/Versions/5/QtDBus (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 5.10.1
    compatibility version 5.10.0
    Load command 25
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libqrencode.3.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 8.4.0
    compatibility version 8.0.0
    Load command 26
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libprotobuf.15.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 16.1.0
    compatibility version 16.0.0
    Load command 27
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libdb_cxx-4.8.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 0.0.0
    compatibility version 0.0.0
    Load command 28
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libssl.1.0.0.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1.0.0
    compatibility version 1.0.0
    Load command 29
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libcrypto.1.0.0.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1.0.0
    compatibility version 1.0.0
    Load command 30
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libminiupnpc.17.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 0.0.0
    compatibility version 0.0.0
    Load command 31
              cmd LC_LOAD_DYLIB
          cmdsize 88
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libevent_pthreads-2.1.6.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 7.2.0
    compatibility version 7.0.0
    Load command 32
              cmd LC_LOAD_DYLIB
          cmdsize 80
             name [@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libevent-2.1.6.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 7.2.0
    compatibility version 7.0.0
    Load command 33
              cmd LC_LOAD_DYLIB
          cmdsize 48
             name /usr/lib/libc++.1.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 400.9.0
    compatibility version 1.0.0
    Load command 34
              cmd LC_LOAD_DYLIB
          cmdsize 56
             name /usr/lib/libSystem.B.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1252.50.4
    compatibility version 1.0.0
    Load command 35
              cmd LC_LOAD_DYLIB
          cmdsize 104
             name /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 1452.23.0
    compatibility version 150.0.0
    Load command 36
              cmd LC_LOAD_DYLIB
          cmdsize 104
             name /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 822.31.0
    compatibility version 1.0.0
    Load command 37
              cmd LC_LOAD_DYLIB
          cmdsize 56
             name /usr/lib/libobjc.A.dylib (offset 24)
       time stamp 2 Thu Jan  1 01:00:02 1970
          current version 228.0.0
    compatibility version 1.0.0
    Load command 38
          cmd LC_FUNCTION_STARTS
      cmdsize 16
      dataoff 11490448
     datasize 13776
    Load command 39
          cmd LC_DATA_IN_CODE
      cmdsize 16
      dataoff 11504224
     datasize 1152
    
  7. DesWurstes commented at 5:36 AM on July 15, 2018: contributor

    Your build:

    /usr/local/opt/boost/lib/libboost_system.dylib # Problem
    /usr/local/opt/boost/lib/libboost_filesystem.dylib # Problem
    /usr/local/opt/boost/lib/libboost_program_options-mt.dylib # Problem
    /usr/local/opt/boost/lib/libboost_thread-mt.dylib # Problem
    /usr/local/opt/boost/lib/libboost_chrono-mt.dylib # Problem
    /usr/local/opt/qt/lib/QtNetwork.framework/Versions/5/QtNetwork # Problem
    /usr/local/opt/qt/lib/QtWidgets.framework/Versions/5/QtWidgets # Problem
    /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtGui # Problem
    /usr/local/opt/qt/lib/QtGui.framework/Versions/5/QtCore # Problem
    /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
    /usr/local/opt/qt/lib/QtDBus.framework/Versions/5/QtDBus # Problem
    /usr/local/lib/libqrencode.3.dylib # Problem
    /usr/local/opt/protobuf/lib/libprotobuf.15.dylib # Problem
    /opt/local/lib/db48/libdb_cxx-4.8.dylib # Problem
    /usr/local/opt/openssl/lib/libssl.1.0.0.dylib # Problem
    /usr/local/opt/openssl/lib/libcrypto.1.0.0.dylib # Problem
    /usr/local/opt/miniupnpc/lib/libminiupnpc.17.dylib # Problem
    /usr/local/opt/libevent/lib/libevent_pthreads-2.1.6.dylib # Problem
    /usr/local/opt/libevent/lib/libevent-2.1.6.dylib # Problem
    /usr/lib/libc++.1.dylib
    /usr/lib/libSystem.B.dylib
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
    /usr/lib/libobjc.A.dylib
    

    Bitcoin Core release build (everything's OK):

    /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration (offset 
    /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (offset 24)
    /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (offset 24)
    /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (offset 24)
    /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (offset 24)
    /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (offset 24)
    /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (offset 24)
    /System/Library/Frameworks/AGL.framework/Versions/A/AGL (offset 24)
    /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon (offset 24)
    /System/Library/Frameworks/Security.framework/Versions/A/Security (offset 24)
    /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration
    /usr/lib/libSystem.B.dylib (offset 24)
    /usr/lib/libc++.1.dylib (offset 24)
    /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork (offset 24)
    /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics (offset
    /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText (offset 24)
    /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO (offset 24)
    /usr/lib/libobjc.A.dylib (offset 24)
    

    Indeed, there's a problem with building on your computer.

  8. HashUnlimited commented at 8:31 AM on July 15, 2018: contributor

    Oh, of course, late in the night I have missed to check for the dist folder... Replaced the contents above, please kindly have a look again.

  9. DesWurstes commented at 10:42 AM on July 15, 2018: contributor

    Your issue is solved now, it copied all the external libs to the Frameworks folder in the .app package.

  10. fanquake commented at 12:29 PM on July 15, 2018: member

    Thanks for the debugging @DesWurstes.

  11. fanquake closed this on Jul 15, 2018

  12. HashUnlimited commented at 1:35 PM on July 15, 2018: contributor

    Well not really, I just posted the wrong output before. To make sure there's nothing wrong with my system, I just did a clean test again:

    Clean Install OS X (10.11 for the test) install homebrew install dependencies git clone master make & deploy

    So I got the .dmg and moved it to another freshly installed machine:

    Clean Install OSX (10.11 for the test) Copy and mount Bitcoin-Core Try to start

    And here is what we get (unshortened):

    Process:               Bitcoin-Qt [353]
    Path:                  /Volumes/VOLUME/Bitcoin-Qt.app/Contents/MacOS/Bitcoin-Qt
    Identifier:            org.bitcoinfoundation.Bitcoin-Qt
    Version:               ???
    Code Type:             X86-64 (Native)
    Parent Process:        ??? [1]
    Responsible:           Bitcoin-Qt [353]
    User ID:               501
    
    Date/Time:             2018-07-15 15:21:16.940 +0200
    OS Version:            Mac OS X 10.11.6 (15G31)
    Report Version:        11
    Anonymous UUID:        61465499-18BD-5908-270A-D6E332AED336
    
    
    Time Awake Since Boot: 210 seconds
    
    System Integrity Protection: enabled
    
    Crashed Thread:        0
    
    Exception Type:        EXC_BREAKPOINT (SIGTRAP)
    Exception Codes:       0x0000000000000002, 0x0000000000000000
    Exception Note:        EXC_CORPSE_NOTIFY
    
    Application Specific Information:
    dyld: launch, loading dependent libraries
    
    Dyld Error Message:
      Library not loaded: [@loader](/bitcoin-bitcoin/contributor/loader/)_path/libboost_system-mt.dylib
      Referenced from: /Volumes/Bitcoin-Core/Bitcoin-Qt.app/Contents/Frameworks/libboost_thread-mt.dylib
      Reason: image not found
    
    Binary Images:
        0x7fff6cdf0000 -     0x7fff6ce27a47  dyld (360.22) <DC81CC9D-651A-3A45-8809-928282052BD3> /usr/lib/dyld
        0x7fff897a2000 -     0x7fff89c18fff  com.apple.CoreFoundation (6.9 - 1258.1) <943A1383-DA6A-3DC0-ABCD-D9AEB3D0D34D> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7fff89c8f000 -     0x7fff89c96ff7  libcompiler_rt.dylib (62) <A13ECF69-F59F-38AE-8609-7B731450FBCD> /usr/lib/system/libcompiler_rt.dylib
        0x7fff8a1eb000 -     0x7fff8a1ebff7  libkeymgr.dylib (28) <8371CE54-5FDD-3CE9-B3DF-E98C761B6FE0> /usr/lib/system/libkeymgr.dylib
        0x7fff8aa8e000 -     0x7fff8aa8eff7  libunc.dylib (29) <DDB1E947-C775-33B8-B461-63E5EB698F0E> /usr/lib/system/libunc.dylib
        0x7fff8aa8f000 -     0x7fff8aa92fff  libsystem_sandbox.dylib (460.60.2) <2A68B39C-B786-3A05-87A2-56E688469FB8> /usr/lib/system/libsystem_sandbox.dylib
        0x7fff8aae2000 -     0x7fff8ab00ff7  libsystem_kernel.dylib (3248.60.10) <C1A6A0B9-1869-36AB-B4A2-D862EB09A4BE> /usr/lib/system/libsystem_kernel.dylib
        0x7fff8aebb000 -     0x7fff8aec3fef  libsystem_platform.dylib (74.40.2) <29A905EF-6777-3C33-82B0-6C3A88C4BA15> /usr/lib/system/libsystem_platform.dylib
        0x7fff8b093000 -     0x7fff8b09cff7  libsystem_pthread.dylib (138.10.4) <3DD1EF4C-1D1B-3ABF-8CC6-B3B1CEEE9559> /usr/lib/system/libsystem_pthread.dylib
        0x7fff8b1e0000 -     0x7fff8b1e2fff  libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
        0x7fff8b349000 -     0x7fff8b351fff  libcopyfile.dylib (127) <A48637BC-F3F2-34F2-BB68-4C65FD012832> /usr/lib/system/libcopyfile.dylib
        0x7fff8b675000 -     0x7fff8b69efff  libsystem_info.dylib (477.50.4) <FAA9226D-64DE-3769-A6D8-6CABA4B7FF4D> /usr/lib/system/libsystem_info.dylib
        0x7fff8b76a000 -     0x7fff8b76cff7  libquarantine.dylib (80) <0F4169F0-0C84-3A25-B3AE-E47B3586D908> /usr/lib/system/libquarantine.dylib
        0x7fff8e38e000 -     0x7fff8e3aaff7  libsystem_malloc.dylib (67.40.1) <5748E8B2-F81C-34C6-8B13-456213127678> /usr/lib/system/libsystem_malloc.dylib
        0x7fff8e3bb000 -     0x7fff8e3e4ff7  libxpc.dylib (765.50.8) <54D1328E-054E-3DAA-89E2-375722F9D18F> /usr/lib/system/libxpc.dylib
        0x7fff8e4fa000 -     0x7fff8e4fafff  com.apple.ApplicationServices (48 - 48) <ADD57D3A-142F-3EF5-BFD8-EACD82164884> /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices
        0x7fff8e6b6000 -     0x7fff8e6b8ff7  libsystem_configuration.dylib (802.40.13) <3DEB7DF9-6804-37E1-BC83-0166882FF0FF> /usr/lib/system/libsystem_configuration.dylib
        0x7fff8f259000 -     0x7fff8f25eff3  libunwind.dylib (35.3) <F6EB48E5-4D12-359A-AB54-C937FBBE9043> /usr/lib/system/libunwind.dylib
        0x7fff9064d000 -     0x7fff9064efff  libsystem_secinit.dylib (20) <32B1A8C6-DC84-3F4F-B8CE-9A52B47C3E6B> /usr/lib/system/libsystem_secinit.dylib
        0x7fff90fca000 -     0x7fff9131efff  com.apple.Foundation (6.9 - 1259) <71A9D3A0-0B1F-3E3A-86F3-1486365A6EF2> /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
        0x7fff91417000 -     0x7fff914a4fef  libsystem_c.dylib (1082.60.1) <28733D22-553E-3CBC-8D2C-EDCEB46E46AF> /usr/lib/system/libsystem_c.dylib
        0x7fff9151a000 -     0x7fff91531ff7  libsystem_asl.dylib (323.50.1) <41F8E11F-1BD0-3F1D-BA3A-AA1577ED98A9> /usr/lib/system/libsystem_asl.dylib
        0x7fff916b0000 -     0x7fff916daff7  libc++abi.dylib (307.2) <922EFB36-0E9E-315B-8270-E81AC43472C0> /usr/lib/libc++abi.dylib
        0x7fff916db000 -     0x7fff916e3fff  libsystem_networkextension.dylib (385.40.36) <66095DC7-6539-38F2-95EE-458F15F6D014> /usr/lib/system/libsystem_networkextension.dylib
        0x7fff91ede000 -     0x7fff91edffff  libsystem_blocks.dylib (65) <1244D9D5-F6AA-35BB-B307-86851C24B8E5> /usr/lib/system/libsystem_blocks.dylib
        0x7fff92a57000 -     0x7fff92a84fff  libdispatch.dylib (501.40.12) <C7499857-61A5-3D7D-A5EA-65DCC8C3DF92> /usr/lib/system/libdispatch.dylib
        0x7fff92a8f000 -     0x7fff92ae2ff7  libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
        0x7fff92b7d000 -     0x7fff92b94ff7  libsystem_coretls.dylib (83.40.5) <C90DAE38-4082-381C-A185-2A6A8B677628> /usr/lib/system/libsystem_coretls.dylib
        0x7fff92b95000 -     0x7fff92bdbff7  libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
        0x7fff92e2a000 -     0x7fff92e90ff7  libsystem_network.dylib (583.50.1) <B52DAB73-92DC-3DA7-B9F4-B899D66445C1> /usr/lib/system/libsystem_network.dylib
        0x7fff937a3000 -     0x7fff937a4ffb  libSystem.B.dylib (1226.10.1) <ECAA07BE-A114-3461-AA13-C57838775FC2> /usr/lib/libSystem.B.dylib
        0x7fff953ce000 -     0x7fff953d1ffb  libdyld.dylib (360.22) <1F9FCF2C-5E94-3F2D-B4A5-1238587AA5C6> /usr/lib/system/libdyld.dylib
        0x7fff964fb000 -     0x7fff964fffff  libcache.dylib (75) <9548AAE9-2AB7-3525-9ECE-A2A7C4688447> /usr/lib/system/libcache.dylib
        0x7fff9670c000 -     0x7fff9673bffb  libsystem_m.dylib (3105) <08E1A4B2-6448-3DFE-A58C-ACC7335BE7E4> /usr/lib/system/libsystem_m.dylib
        0x7fff96c36000 -     0x7fff96c3effb  libsystem_dnssd.dylib (625.60.4) <80189998-32B0-316C-B5C5-53857486713D> /usr/lib/system/libsystem_dnssd.dylib
        0x7fff96cf0000 -     0x7fff9705b657  libobjc.A.dylib (680) <D55D5807-1FBE-32A5-9105-44D7AFE68C27> /usr/lib/libobjc.A.dylib
        0x7fff99923000 -     0x7fff99923fff  com.apple.CoreServices (728.13 - 728.13) <E3DFECD2-ECEA-3242-972D-95B9646B57B8> /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices
        0x7fff99beb000 -     0x7fff99bf0ff7  libmacho.dylib (875.1) <318264FA-58F1-39D8-8285-1F6254EE410E> /usr/lib/system/libmacho.dylib
        0x7fff9a067000 -     0x7fff9ac90ff7  com.apple.AppKit (6.9 - 1404.47) <F3411F6E-DD87-34D0-8C68-C69B2205E41D> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
        0x7fff9c50c000 -     0x7fff9c50cff7  liblaunch.dylib (765.50.8) <834ED605-5114-3641-AA4D-ECF31B801C50> /usr/lib/system/liblaunch.dylib
        0x7fff9c514000 -     0x7fff9c51fff7  libcommonCrypto.dylib (60075.50.1) <93732261-34B4-3914-B7A2-90A81A182DBA> /usr/lib/system/libcommonCrypto.dylib
        0x7fff9c991000 -     0x7fff9c992fff  libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
        0x7fff9c993000 -     0x7fff9c9a4ff7  libsystem_trace.dylib (201.10.3) <1DD0C1FD-74E2-3949-9C2C-B81D19C2CA5E> /usr/lib/system/libsystem_trace.dylib
        0x7fff9e3be000 -     0x7fff9e3c7ff3  libsystem_notify.dylib (150.40.1) <D48BDE34-0F7E-34CA-A0FF-C578E39987CC> /usr/lib/system/libsystem_notify.dylib
        0x7fff9e868000 -     0x7fff9e8dffeb  libcorecrypto.dylib (335.50.1) <B5C05FD7-A540-345A-87BF-8E41848A3C17> /usr/lib/system/libcorecrypto.dylib
        0x7fff9ffe8000 -     0x7fff9ffe9ffb  libremovefile.dylib (41) <552EF39E-14D7-363E-9059-4565AC2F894E> /usr/lib/system/libremovefile.dylib
    
    Model: VMware7,1, BootROM VMW71.00V.0.B64.1706210604, 2 processors, 2,67 GHz, 2 GB, SMC 2.8f0
    Graphics: Display, PCI, 3 MB
    Memory Module: RAM slot [#0](/bitcoin-bitcoin/0/)/RAM slot [#0](/bitcoin-bitcoin/0/), 2 GB, DRAM, 0 MHz, VMware Virtual RAM, VMW-2048MB
    Network Service: Ethernet, Ethernet, en0
    Serial ATA Device: VMware Virtual SATA Hard Drive, 42,95 GB
    Serial ATA Device: VMware Virtual SATA CDRW Drive
    USB Device: USB Bus
    USB Device: USB 2.0 Bus
    USB Device: VMware Virtual USB Video Device
    USB Device: USB 3.0 Bus
    USB Device: VMware Virtual USB Hub
    USB Device: VMware Virtual USB Hub
    USB Device: Virtual Bluetooth Adapter
    USB Device: VMware Virtual USB Keyboard
    USB Device: VMware Virtual USB Mouse
    Thunderbolt Bus: 
    
  13. fanquake reopened this on Jul 15, 2018

  14. jonasschnelli commented at 8:16 AM on July 19, 2018: contributor

    I just did a fresh complication and make deploy on OSX 10.13 and can't find any link to libboost_system-mt.dylib (only to libboost_system.dylib). Works perfectly fine here.

    Though, I have the feeling that the native OSX dynamic linkes make deploy process (rather then the cross compiled depends build) is pretty much unmaintained (not sure if anyone is using this, eventually altcoin forks)

  15. HashUnlimited commented at 8:39 AM on July 19, 2018: contributor

    Now that feeling is interesting. Would it mean that although in both cases, cross-compiling and native OS X deployment, the same script macdeployqt is called but on native it might link differently? Out of convenience I'm doing all compiling and deployment, no matter if bitcoin or shitcoin, on mac as for the production environment I like to compile the features as per use case. That's a personal preference which became our internal rule way back when everything became simple and the need for messing around with the .pro file wasn't needed anymore.

  16. HashUnlimited commented at 9:11 AM on July 19, 2018: contributor

    update: found the link in my deployment:

    298-MBP-MIP-3:MacOS michael$ otool -L ../Frameworks/libboost_thread-mt.dylib
    ../Frameworks/libboost_thread-mt.dylib:	[@executable](/bitcoin-bitcoin/contributor/executable/)_path/../Frameworks/libboost_thread-mt.dylib (compatibility version 0.0.0, current version 0.0.0)	[@loader](/bitcoin-bitcoin/contributor/loader/)_path/libboost_system-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
    	/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 400.9.0)
    	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.50.4)
    
  17. aciddude commented at 2:04 PM on April 8, 2019: none

    just force it to use the multi-threaded boost

    ./autogen.sh
    ./configure  --with-boost-libdir=/usr/local/opt/boost\@1.55/lib/ --enable-static --disable-shared  --with-boost-system=boost_system-mt
    
    make
    make deploy
    
  18. fanquake closed this on Feb 3, 2020

  19. DrahtBot locked this on Feb 15, 2022

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-21 18:15 UTC

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