build: configure doesn't pickup Qt if depends is built with DEBUG=1 #16391

issue fanquake opened this issue on July 15, 2019
  1. fanquake commented at 3:38 AM on July 15, 2019: member

    Using master (536590f358dc3d3e5821eba7f1009452ea93b205) and building depends using DEBUG=1 make -j8.

    Configuring with ./autogen.sh && ./configure --prefix=/Users/michael/github/bitcoin/depends/x86_64-apple-darwin18.6.0 I'm seeing:

    Options used to compile and link:
      with wallet   = yes
      with gui / qt = no
      with zmq      = yes
      with test     = yes
        with fuzz   = no
      with bench    = yes
      with upnp     = yes
      use asm       = yes
      sanitizers    = 
      debug enabled = no
      gprof enabled = no
      werror        = no
    
      target os     = darwin
      build os      = darwin
    

    In config.log:

    configure:27984: checking for static Qt plugins: -lqcocoa
    ld: library not found for -lqcocoa
    configure:27813: checking for static Qt plugins: -lqminimal
    ld: library not found for -lqminimal
    configure:27839: WARNING: Could not resolve: -lqminimal; bitcoin-qt frontend will not be built
    

    Building depends without DEBUG=1 works as expected.

  2. fanquake added the label Build system on Jul 15, 2019
  3. hebasto commented at 9:16 PM on February 10, 2020: member

    Tested on current master (646f0ada0205ae4b3952107e3b1542f06adda32b).

    Can confirm such behavior on macOS 10.14:

    $ clang --version | head -2
    Apple LLVM version 10.0.1 (clang-1001.0.46.4)
    Target: x86_64-apple-darwin18.0.0
    

    Native build with depends works fine on Linux Mint 19.3:

    $ gcc --version | head -1
    gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
    

    It seems this issue is macOS-target specific.


    UPDATE:

    $ DEBUG=1 make HOST=x86_64-apple-darwin16 -C depends
    $ CONFIG_SITE=$PWD/depends/x86_64-apple-darwin16/share/config.site ./configure 
    

    also causes an error on Linux with GCC 7.4

  4. hebasto cross-referenced this on Feb 11, 2020 from issue build: Fix Qt link issue for macOS target with DEBUG=1 by hebasto
  5. hebasto cross-referenced this on Mar 9, 2020 from issue build: Use pkg-config in BITCOIN_QT_CONFIGURE for all hosts including Windows by hebasto
  6. hebasto cross-referenced this on Mar 9, 2020 from issue build: Fix Qt processing of configure script for depends with DEBUG=1 by hebasto
  7. fanquake referenced this in commit 265492723a on Jun 13, 2020
  8. hebasto commented at 12:14 PM on June 13, 2020: member

    @fanquake Mind looking into #18298?

  9. sidhujag referenced this in commit c8addbe7ea on Jun 13, 2020
  10. Sjors commented at 11:20 AM on June 16, 2020: member

    I can reproduce this is issue on macOS 10.15.5 (master: 265492723a6874abc542361e4693840240e7d2ef), will try @hebasto's PR.

  11. xdustinface referenced this in commit e2d3235eb2 on Feb 17, 2021
  12. xdustinface referenced this in commit c17e57256e on Feb 17, 2021
  13. xdustinface cross-referenced this on Feb 17, 2021 from issue depends|build: Make sure configuration detects Qt built with DEBUG=1 by xdustinface
  14. fanquake closed this on Mar 3, 2021

  15. gades referenced this in commit ac855be7fd on Jun 27, 2021
  16. bitcoin locked this on Aug 18, 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-05-20 06:54 UTC