Error compiling on debian sid with clang-8 #15551

issue MarcoFalke opened this issue on March 6, 2019
  1. MarcoFalke commented at 8:01 PM on March 6, 2019: member

    https://github.com/bitcoin-core/secp256k1/issues/594

    $ ./configure CC=clang-8 CXX=clang++-8 --with-incompatible-bdb
    ...
    $ make
    Making all in src
    make[1]: Entering directory '/root/bitcoin/src'
    make[2]: Entering directory '/root/bitcoin/src'
    make[3]: Entering directory '/root/bitcoin'
    make[3]: Leaving directory '/root/bitcoin'
    make[3]: Entering directory '/root/bitcoin/src/secp256k1'
      CC       src/libsecp256k1_la-secp256k1.lo
    In file included from src/secp256k1.c:12:
    In file included from ./src/scalar_impl.h:20:
    ./src/scalar_4x64_impl.h:379:19: error: value '4624529908474429119' out of range for constraint 'n'
        : "S"(l), "n"(SECP256K1_N_C_0), "n"(SECP256K1_N_C_1)
                      ^~~~~~~~~~~~~~~
    ./src/scalar_4x64_impl.h:17:25: note: expanded from macro 'SECP256K1_N_C_0'
    #define SECP256K1_N_C_0 (~SECP256K1_N_0 + 1)
                            ^~~~~~~~~~~~~~~~~~~~
    ./src/scalar_4x64_impl.h:458:74: error: value '4624529908474429119' out of range for constraint 'n'
        : "g"(m0), "g"(m1), "g"(m2), "g"(m3), "g"(m4), "g"(m5), "g"(m6), "n"(SECP256K1_N_C_0), "n"(SECP256K1_N_C_1)
                                                                             ^~~~~~~~~~~~~~~
    ./src/scalar_4x64_impl.h:17:25: note: expanded from macro 'SECP256K1_N_C_0'
    #define SECP256K1_N_C_0 (~SECP256K1_N_0 + 1)
                            ^~~~~~~~~~~~~~~~~~~~
    ./src/scalar_4x64_impl.h:504:64: error: value '4624529908474429119' out of range for constraint 'n'
        : "g"(p0), "g"(p1), "g"(p2), "g"(p3), "g"(p4), "D"(r), "n"(SECP256K1_N_C_0), "n"(SECP256K1_N_C_1)
                                                                   ^~~~~~~~~~~~~~~
    ./src/scalar_4x64_impl.h:17:25: note: expanded from macro 'SECP256K1_N_C_0'
    #define SECP256K1_N_C_0 (~SECP256K1_N_0 + 1)
                            ^~~~~~~~~~~~~~~~~~~~
    3 errors generated.
    make[3]: *** [Makefile:1029: src/libsecp256k1_la-secp256k1.lo] Error 1
    make[3]: Leaving directory '/root/bitcoin/src/secp256k1'
    make[2]: *** [Makefile:14434: secp256k1/libsecp256k1.la] Error 2
    make[2]: Leaving directory '/root/bitcoin/src'
    make[1]: *** [Makefile:12984: all-recursive] Error 1
    make[1]: Leaving directory '/root/bitcoin/src'
    make: *** [Makefile:775: all-recursive] Error 1
    
  2. MarcoFalke added the label Upstream on Mar 6, 2019
  3. MarcoFalke added the label Utils/log/libs on Mar 6, 2019
  4. MarcoFalke added this to the milestone 0.18.1 on Mar 6, 2019
  5. real-or-random commented at 10:02 AM on March 8, 2019: member

    This will be solved up-upstream before the official clang 8 release, see the links/discussion in https://github.com/bitcoin-core/secp256k1/issues/594.

  6. fanquake commented at 12:26 AM on March 11, 2019: member
  7. MarcoFalke removed this from the milestone 0.18.1 on Mar 11, 2019
  8. MarcoFalke commented at 4:20 PM on March 11, 2019: member

    Worked with

    clang++-8 --version
    clang version 8.0.0-+rc4-1 (tags/RELEASE_800/rc4)
    Target: x86_64-pc-linux-gnu
    Thread model: posix
    InstalledDir: /usr/bin
    
  9. MarcoFalke closed this on Mar 11, 2019

  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: 2026-04-13 18:15 UTC

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