Fix gen_context/ASM build on ARM #935

pull real-or-random wants to merge 3 commits into bitcoin-core:master from real-or-random:202105-gen-context-defs changing 2 files +8 −4
  1. real-or-random commented at 12:16 pm on May 3, 2021: contributor

    These are two attempts to fix #931. @gmaxwell Can you test if either if the first commits solves the issue? (The third commit is just a minor cleanup thing that I discovered on the way).

    If yes, I’d probably prefer the first commit, which is a real fix. But we could still apply the second commit if people think that’s a good idea.

  2. Makefile.am: Honor config when building gen_context
    This passes $(DEFS) (which should literally be "-DHAVE_CONFIG_H") to the
    compiler and $(COMMON_LIB) (which is necessary when using external ASM
    to the linker) when building gen_context.
    004ec4eea3
  3. gen_context: Never use external ASM because it complicates the build da1a0b83fb
  4. Makefile.am: Don't pass a variable twice 4427d57071
  5. real-or-random force-pushed on May 3, 2021
  6. real-or-random commented at 12:56 pm on May 3, 2021: contributor

    Ok, CI answered my question: https://cirrus-ci.com/task/5313033309257728

    The idea of the first commit is of course stupid and does not work when cross-compiling. We can’t simply link the $(COMMON_LIB) (e.g., built for ARM) into gen_context (e.g., build for x86).

    The above CI failure is different but when I saw it, I still recognized my mistakes. So CI was a good teddy bear here.

    I’ll open another PR with only the second commit and a rephrased comment.

  7. real-or-random closed this on May 3, 2021

  8. real-or-random cross-referenced this on May 3, 2021 from issue Fix gen_context/ASM build on ARM by real-or-random
  9. sipa referenced this in commit d0bd2693e3 on May 4, 2021
  10. real-or-random referenced this in commit 2bcba7ca66 on Dec 2, 2021
  11. real-or-random referenced this in commit f26d43dad6 on Dec 2, 2021
  12. fanquake referenced this in commit 699c057e4f on Dec 3, 2021
  13. real-or-random referenced this in commit 84b984ba0b on Dec 3, 2021
  14. real-or-random referenced this in commit 56284c7d44 on Dec 5, 2021
  15. real-or-random referenced this in commit 7dfceceea6 on Dec 9, 2021
  16. dderjoel referenced this in commit 734fa8f3e0 on May 23, 2023


real-or-random


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin-core/secp256k1. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-12-22 16:15 UTC

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