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

issue ch4ot1c openend 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:

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

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

     0make[4]: Entering directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic'
     1cd 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
     2make[5]: Entering directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic/tuiotouch'
     3rm -f .moc/moc_predefs.h
     4rm -f .moc/moc_qtuiohandler_p.cpp
     5rm -f .moc/main.moc
     6rm -f .obj/main.o .obj/qoscbundle.o .obj/qoscmessage.o .obj/qtuiohandler.o .obj/moc_qtuiohandler_p.o
     7rm -f *~ core *.core
     8make[5]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic/tuiotouch'
     9make[4]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic'
    10make[3]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins'
    11make[2]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src'
    12make[1]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase'
    13Info: creating stash file /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qttranslations/.qmake.stash
    14Info: creating stash file /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qttools/.qmake.stash
    15Project ERROR: Unknown module(s) in QT: xml
    16make: *** [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:

    0make[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:

    0cd depends
    1make HOST=x86_64-apple-darwin-17.7.0
    
     0checking for grep that handles long lines and -e... /usr/bin/grep
     1checking for egrep... /usr/bin/grep -E
     2checking for ANSI C header files... yes
     3checking for sys/types.h... yes
     4checking for sys/stat.h... yes
     5checking for stdlib.h... yes
     6checking for string.h... yes
     7checking for memory.h... yes
     8checking for strings.h... yes
     9checking for inttypes.h... yes
    10checking for stdint.h... yes
    11checking for unistd.h... yes
    12checking minix/config.h usability... no
    13checking minix/config.h presence... no
    14checking for minix/config.h... no
    15checking whether it is safe to define __EXTENSIONS__... yes
    16checking build system type... x86_64-apple-darwin17.7.0
    17checking host system type... Invalid configuration `x86_64-apple-darwin-17.7.0': machine `x86_64-apple-darwin' not recognized
    18configure: error: /bin/sh ./config.sub x86_64-apple-darwin-17.7.0 failed
    19make: *** [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
    20➜  depends git:(6b8d0a216)  
    

    Hmm - freshening up and trying once more:

    0git clean -xdf
    1cd depends
    2make HOST=x86_64-apple-darwin-17.7.0
    
    0make[5]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic/tuiotouch'
    1make[4]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins/generic'
    2make[3]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src/plugins'
    3make[2]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase/src'
    4make[1]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qtbase'
    5Info: creating stash file /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qttranslations/.qmake.stash
    6Info: creating stash file /Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/qt/5.9.6-9fd589a8fba/qttools/.qmake.stash
    7Project ERROR: Unknown module(s) in QT: xml
    8make: *** [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:

    0cd depends
    1make HOST=x86_64-apple-darwin NO_QT=1
    
    0 -fno-common -DMINIUPNPC_SET_SOCKET_TIMEOUT -DMINIUPNPC_GET_SRC_ADDR -D_BSD_SOURCE -D_DEFAULT_SOURCE   -c -o upnpdev.o upnpdev.c
    1/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
    2/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
    3make[1]: Leaving directory '/Users/Jon/bitcoin/depends/work/build/x86_64-apple-darwin/miniupnpc/2.0.20180203-a8fc65c5702'
    4Staging miniupnpc...
    5Postprocessing miniupnpc...
    6Caching miniupnpc...
    7copying packages: native_biplist native_ds_store native_mac_alias boost openssl libevent zeromq bdb miniupnpc
    8to: /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: 2024-07-05 16:12 UTC

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