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

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

     0Options used to compile and link:
     1  with wallet   = yes
     2  with gui / qt = no
     3  with zmq      = yes
     4  with test     = yes
     5    with fuzz   = no
     6  with bench    = yes
     7  with upnp     = yes
     8  use asm       = yes
     9  sanitizers    = 
    10  debug enabled = no
    11  gprof enabled = no
    12  werror        = no
    13
    14  target os     = darwin
    15  build os      = darwin
    

    In config.log:

    0configure:27984: checking for static Qt plugins: -lqcocoa
    1ld: library not found for -lqcocoa
    2configure:27813: checking for static Qt plugins: -lqminimal
    3ld: library not found for -lqminimal
    4configure: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:

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

    Native build with depends works fine on Linux Mint 19.3:

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

    It seems this issue is macOS-target specific.


    UPDATE:

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

    also causes an error on Linux with GCC 7.4

  4. fanquake referenced this in commit 265492723a on Jun 13, 2020
  5. hebasto commented at 12:14 pm on June 13, 2020: member
    @fanquake Mind looking into #18298?
  6. sidhujag referenced this in commit c8addbe7ea on Jun 13, 2020
  7. 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.
  8. xdustinface referenced this in commit e2d3235eb2 on Feb 17, 2021
  9. xdustinface referenced this in commit c17e57256e on Feb 17, 2021
  10. fanquake closed this on Mar 3, 2021

  11. gades referenced this in commit ac855be7fd on Jun 27, 2021
  12. DrahtBot 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: 2024-11-17 12:12 UTC

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