configure takes almost 10 minutes on some macs #16632

issue kallewoof opened this issue on August 16, 2019
  1. kallewoof commented at 10:59 AM on August 16, 2019: member

    Model: MacBook Pro (15-inch 2017) OS: macOS High Sierra

    $ time ./configure
    [...]
    ./configure  29.65s user 542.02s system 96% cpu 9:50.57 total
    

    Same problem seems to be present on co-workers' mac. Linux (ubuntu) runs much faster, but I believe I have seen occasions where linux box slows down in this manner as well.

    Update: antivirus software may have been a part of the reason for the slow-down. Still slow after uninstall, but still several minutes.

  2. fanquake added the label Build system on Aug 16, 2019
  3. fanquake added the label macOS on Aug 16, 2019
  4. Sjors commented at 2:30 PM on August 16, 2019: member

    Just 30 seconds real time on 2019 MacBook Pro with Mojave 10.14.6, though faster is always nice:

    time ./configure --disable-bip70 --with-miniupnpc=no --enable-debug
    [...]
    real	0m31.794s
    user	0m18.778s
    sys	0m10.819s
    
  5. kallewoof commented at 1:38 AM on August 17, 2019: member

    Yeah, this started happening awhile back for me. I'm not sure what the cause is, but it doesn't look like it's only me. It's not everyone, as you see.

  6. kallewoof commented at 1:55 AM on August 19, 2019: member

    Coworker:

    real    7m1.310s
    user    0m22.802s
    sys    6m31.218s
    

    Amusingly, he says it runs in around 30s when ran inside VirtualBox (linux).

  7. johnnynanjiang commented at 5:32 AM on August 24, 2019: none

    macOS Mojave Version 10.14.5 MacBook Pro (Retina, 13-inch, Late 2013)

    time ./configure
    
    real	1m16.253s
    user	0m34.910s
    sys	0m29.537s
    
  8. za-kk commented at 9:11 PM on October 16, 2019: contributor

    Macbook Pro (13-inch, Late 2017) running macOS Mojave (Version 10.14.6), I get 43 seconds real time.

    time ./configure
    
    real	0m43.429s
    user	0m24.560s
    sys	0m15.737s
    
  9. RandyMcMillan commented at 4:47 AM on December 6, 2019: contributor

    Try running

    time ./configure
    

    on a fresh clone of the repo.

    Compare to the problem repo.

    It may be useful to create a new user and see if the problem exists under a new user. (also with a fresh clone of the repo)

  10. laanwj commented at 7:19 AM on December 6, 2019: member

    is there any specific step that takes so long? e.g. a config.log with timestamps would be more useful to make any progress on this issue than overall times

    (even a https://asciinema.org/ or https://showterm.io/ recording of the configure output would, maybe)

    in general, "configure" spawns a lot of subprocesses, such as compilers, which is fast on UNIX but can be slower on other OSes such as Windows, that's a conceptual issue that cannot really be fixed in the scope of this project (in that case, you'd experience the same with other autoconf projects)

  11. kallewoof commented at 2:27 PM on December 6, 2019: member

    This happens for me on a fresh machine / install of macOS. I believe my company may be using some software (my guess is the antivirus software) that causes this, but I'm not sure.

    Either case, I don't think this is bitcoin related, as so few others are experiencing it. Thanks for the feedback.

  12. kallewoof closed this on Dec 6, 2019

  13. kallewoof commented at 6:05 AM on February 1, 2020: member

    For the record, I narrowed this down to g++/gcc being super slow on some macs.

    # mac
    $ echo "int main(){}" > tst.cpp; time ( for i in {1..10}; do
    g++ -std=c++11 -c -g -O2 -g3 -O0  -DDEBUG -DDEBUG_LOCKORDER -DMAC_OSX tst.cpp; done )
    ( for i in {1..10}; do; g++ -std=c++11 -c -g -O2 -g3 -O0 -DDEBUG  -DMAC_OSX ;
       0.15s user 13.00s system 99% cpu 13.211 total
    
    # linux
    $ echo "int main(){}" > tst.cpp; time ( for i in {1..10}; do
    g++ -std=c++11 -c -g -O2 -g3 -O0  -DDEBUG -DDEBUG_LOCKORDER -DMAC_OSX tst.cpp; done )
    ( for i in {1..10}; do; g++ -std=c++11 -c -g -O2 -g3 -O0 -DDEBUG  -DMAC_OSX ;
       0.24s user 0.16s system 100% cpu 0.400 total
    
  14. kallewoof commented at 9:50 AM on February 20, 2020: member

    For the record: this was caused by Cylance, some antivirus software that my IT dept installed on my machine. I thought I had turned it off but it apparently kept some unkillable process running that I didn't notice.

  15. MarcoFalke 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-14 18:14 UTC

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