haskell-bitcoin / libsecp256k1-haskell

Haskell bindings for secp256k1 library
MIT License
0 stars 2 forks source link

Fix Pseudo-Relocation issue in MinGW #6

Open ProofOfKeags opened 6 months ago

ProofOfKeags commented 6 months ago

There is currently an issue in our Windows build which yields the following:

libsecp256k1> test (suite: spec)
Mingw-w64 runtime failure:
32 bit pseudo relocation at 0000[7](https://github.com/haskell-bitcoin/libsecp256k1-haskell/actions/runs/8944022468/job/24570019972#step:11:8)FF778DA68C6 out of range, targeting 00007FFD7ADA4010, yielding the value 0000000601FFD746.
libsecp256k1> Test suite spec failed
Error: [S-72[8](https://github.com/haskell-bitcoin/libsecp256k1-haskell/actions/runs/8944022468/job/24570019972#step:11:9)2]
       Stack failed to execute the build plan.

       While executing the build plan, Stack encountered the error:

       Error: [S-1995]
       Test suite failure for package libsecp256k1-0.2.1
           spec:  exited with: ExitFailure (-1073740791)
       Logs printed to console

At the moment, none of the existing contributors runs Windows natively and so work on fixing this has been suspended indefinitely. If you are working in Windows and would like this fixed, we would like to invite you to contribute a patch to deal with this. It is possible it is a bug in GHC itself, and how it handles pointers in Windows executables. Information on that bug can be found here

Things that have been tried and failed:

Things that could be tried: