Linux gitian build fails in SHA256AutoDetect: inconsistent operand constraints in an ‘asm’ #13538

issue MarcoFalke openend this issue on June 25, 2018
  1. MarcoFalke commented at 10:50 pm on June 25, 2018: member

    Full log: https://bitcoin.jonasschnelli.ch/builds/667/build_linux.log Excerpt:

     0crypto/sha256.cpp: In function std::string SHA256AutoDetect():
     1crypto/sha256.cpp:537:83: error: inconsistent operand constraints in an asm
     2   __asm__ ("cpuid" : "=a"(a), "=b"(b), "=c"(c), "=d"(d) : "0"(leaf), "2"(subleaf));
     3                                                                                   ^
     4crypto/sha256.cpp:537:83: error: inconsistent operand constraints in an asm
     5   __asm__ ("cpuid" : "=a"(a), "=b"(b), "=c"(c), "=d"(d) : "0"(leaf), "2"(subleaf));
     6                                                                                   ^
     7make[2]: *** [crypto/crypto_libbitcoin_crypto_base_a-sha256.o] Error 1
     8make[2]: *** Waiting for unfinished jobs....
     9  CXXLD    libunivalue.la
    10make[3]: Leaving directory `/home/ubuntu/build/bitcoin/distsrc-i686-pc-linux-gnu/src/univalue'
    11make[2]: Leaving directory `/home/ubuntu/build/bitcoin/distsrc-i686-pc-linux-gnu/src'
    12make[1]: *** [all-recursive] Error 1
    13make[1]: Leaving directory `/home/ubuntu/build/bitcoin/distsrc-i686-pc-linux-gnu/src'
    14make: *** [all-recursive] Error 1
    
  2. MarcoFalke added the label Linux/Unix on Jun 25, 2018
  3. MarcoFalke added the label Build system on Jun 25, 2018
  4. sipa commented at 1:11 am on June 26, 2018: member
    I’ve seen this before! #10377 had a workaround for this issue on some 32-bit x86 systems. Surprising that we don’t encounter it on Travis though. Maybe newer compilers don’t have this problem, or Travis builds don’t use PIC?
  5. MarcoFalke added this to the milestone 0.17.0 on Jun 28, 2018
  6. MarcoFalke commented at 10:27 am on June 28, 2018: member

    Indeed, this happens on trusty cross build for HOST=i686-pc-linux-gnu.

    Assigned 0.17.0 milestone, since we either need to switch to bionic or fix the asm or both.

  7. laanwj closed this on Jul 9, 2018

  8. laanwj referenced this in commit b55f0c31d4 on Jul 9, 2018
  9. codablock referenced this in commit 6e46d75a1f on Oct 1, 2019
  10. codablock referenced this in commit f7b71f660f on Oct 1, 2019
  11. barrystyle referenced this in commit d6455dba71 on Jan 22, 2020
  12. MarcoFalke locked this on Sep 8, 2021


MarcoFalke sipa

Labels
Linux/Unix Build system

Milestone
0.17.0


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