Problems building on MacOS via depends, without NO_QT=1 #14648

issue ch4ot1c opened this issue on November 3, 2018
  1. ch4ot1c commented at 10:07 AM on November 3, 2018: contributor

    When running cd depends && make HOST=x86_64-apple-darwin on MacOS 10.13.6, the following error appears:

    ➜  depends git:(2182094c6) make HOST=x86_64-apple-darwin17.7.0
    builders/darwin.mk:1: *** empty variable name.  Stop.
    

    A fix is here for this initial problem: 63c74d2, but then the following error appears:

    make[4]: Entering directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic'
    cd tuiotouch/ && ( test -e Makefile || /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/bin/qmake -o Makefile /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic/tuiotouch/tuiotouch.pro ) && make -f Makefile clean
    make[5]: Entering directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic/tuiotouch'
    rm -f .moc/moc_predefs.h
    rm -f .moc/moc_qtuiohandler_p.cpp
    rm -f .moc/main.moc
    rm -f .obj/main.o .obj/qoscbundle.o .obj/qoscmessage.o .obj/qtuiohandler.o .obj/moc_qtuiohandler_p.o
    rm -f *~ core *.core
    make[5]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic/tuiotouch'
    make[4]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic'
    make[3]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins'
    make[2]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src'
    make[1]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase'
    Info: creating stash file /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qttranslations/.qmake.stash
    Info: creating stash file /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qttools/.qmake.stash
    Project ERROR: Unknown module(s) in QT: xml
    make: *** [funcs.mk:245: /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/.stamp_configured] Error 3
    

    Removing the -no-feature-xml option in qt.mk just causes a followup error that is equally problematic, involving libQt5Xml not being found:

    make[1]: *** No rule to make target '/Users/Jon/bsha3/bsha3-ravened/bsha3/repo/bsha3/depends/work/build/x86_64-apple-darwin17.7.0/qt/5.9.6-d39a0d42aab/qtbase/lib/libQt5Xml.a', needed by '../../../bin/lrelease'.  Stop.
    

    Any ideas?

  2. fanquake added the label macOS on Nov 3, 2018
  3. fanquake added the label Build system on Nov 3, 2018
  4. MarcoFalke commented at 2:58 PM on November 5, 2018: member

    /Users/Jon/bsha3/bsha3-ravened/bsha3/repo/bsha3/depends

    Are you sure you are building Bitcoin Core? If so, which commit?

  5. ch4ot1c commented at 6:02 PM on November 5, 2018: contributor

    c34c821 was the latest commit being built from.

    (Resolved; Below are my notes, with solution at bottom)

    Just retried - I think that @fanquake's investigation found and solved the problem. On the tty that failed, make -v = 3.8.1. But really, the latest installation is 4.2.1 (had updated via Homebrew: brew install make; separate/fresh tty; didn't restart the machine).

    BTW, It says that make 3.8.1 is built for i386-apple-darwin-11.3.0, and 4.2.1 is built for x86_64-apple-darwin-17.7.0. Not sure if that could be problematic.

    Regardless, I open a fresh Terminal, and retry the command in the same directory. Results:

    cd depends
    make HOST=x86_64-apple-darwin-17.7.0
    
    checking for grep that handles long lines and -e... /usr/bin/grep
    checking for egrep... /usr/bin/grep -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking minix/config.h usability... no
    checking minix/config.h presence... no
    checking for minix/config.h... no
    checking whether it is safe to define __EXTENSIONS__... yes
    checking build system type... x86_64-apple-darwin17.7.0
    checking host system type... Invalid configuration `x86_64-apple-darwin-17.7.0': machine `x86_64-apple-darwin' not recognized
    configure: error: /bin/sh ./config.sub x86_64-apple-darwin-17.7.0 failed
    make: *** [funcs.mk:245: /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin-17.7.0/libevent/2.1.8-stable-6274537465d/./.stamp_configured] Error 1
    ➜  depends git:(6b8d0a216)  
    

    Hmm - freshening up and trying once more:

    git clean -xdf
    cd depends
    make HOST=x86_64-apple-darwin-17.7.0
    
    make[5]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic/tuiotouch'
    make[4]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic'
    make[3]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins'
    make[2]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src'
    make[1]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase'
    Info: creating stash file /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qttranslations/.qmake.stash
    Info: creating stash file /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qttools/.qmake.stash
    Project ERROR: Unknown module(s) in QT: xml
    make: *** [funcs.mk:245: /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/.stamp_configured] Error 3
    

    Solution

    Only works with NO_QT=1:

    cd depends
    make HOST=x86_64-apple-darwin NO_QT=1
    
     -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE   -c -o upnpdev.o upnpdev.c
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -mmacosx-version-min=10.10 -D_DARWIN_C_SOURCE -fPIC -pipe -O2 -I/Users/Jon/bitcoin/depends/x86_64-apple-darwin/include -Wall -W -Wstrict-prototypes -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE   -c -o minissdpc.o minissdpc.c
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool -static -o libminiupnpc.a miniwget.o minixml.o igd_desc_parse.o minisoap.o miniupnpc.o upnpreplyparse.o upnpcommands.o upnperrors.o connecthostport.o portlistingparse.o receivedata.o upnpdev.o minissdpc.o
    make[1]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/miniupnpc/2.0.20180203-a8fc65c5702'
    Staging miniupnpc...
    Postprocessing miniupnpc...
    Caching miniupnpc...
    copying packages: native_biplist native_ds_store native_mac_alias boost openssl libevent zeromq bdb miniupnpc
    to: /Users/Jon/bitcoin/depends/x86_64-apple-darwin
    

    All on a Macbook Pro 2014 running MacOS 10.13.6.

  6. ch4ot1c renamed this:
    Problems building on MacOS via depends
    Problems building on MacOS via depends, without NO_QT=1
    on Nov 28, 2018
  7. ch4ot1c closed this on Feb 12, 2019

  8. fanquake referenced this in commit 4315dc02a1 on Jul 18, 2021
  9. sidhujag referenced this in commit 4a59fda74b on Jul 23, 2021
  10. DrahtBot locked this on Dec 16, 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-05-02 18:15 UTC

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