Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to cross-compile secp256k1 #1402

Closed
sevanspowell opened this issue Mar 16, 2022 · 5 comments
Closed

Unable to cross-compile secp256k1 #1402

sevanspowell opened this issue Mar 16, 2022 · 5 comments
Assignees

Comments

@sevanspowell
Copy link
Contributor

sevanspowell commented Mar 16, 2022

error: builder for '/nix/store/mv7pmxjhympa220i2mqybzfcdbgp4y1a-secp256k1-x86_64-w64-mingw32-unstable-2021-06-06.drv' failed with exit code 1;
       last 10 log lines:
       > checking for x86_64 assembly availability... yes
       > checking for openssl/crypto.h... no
       > checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E
       > checking for gcc... no
       > checking for cc... no
       > checking for cl.exe... no
       > checking for clang... no
       > configure: error: in `/build/source':
       > configure: error: no acceptable C compiler found in $PATH
       > See `config.log' for more details
       For full logs, run 'nix log /nix/store/mv7pmxjhympa220i2mqybzfcdbgp4y1a-secp256k1-x86_64-w64-mingw32-unstable-2021-06-06.drv'.
error: 1 dependencies of derivation '/nix/store/3nqrq5hi2w85zq03kvjpw94qw4ir6ww3-remote-iserv-exe-remote-iserv-x86_64-w64-mingw32-8.10.7.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ilnlrbf2g7h0br1yffvcd2l30shn28j4-remote-iserv-exe-remote-iserv-x86_64-w64-mingw32-8.10.7.drv' failed to build
error: 1 dependencies of derivation '/nix/store/8l5lli94bkirzc0plrlfhinxj94wwf6w-iserv-wrapper-prof.drv' failed to build
error: 1 dependencies of derivation '/nix/store/n8w35qszczz72dizd4zc446asbc1494a-iserv-wrapper.drv' failed to build
error: 1 dependencies of derivation '/nix/store/cpz9p4wcpzxx7h9vz0kin8fgrybvcwnc-bech32-exe-bech32-x86_64-w64-mingw32-1.1.2.drv' failed to build

See cardano-foundation/cardano-wallet#3173 for more information and a reproduction case.

sevanspowell added a commit to cardano-foundation/cardano-wallet that referenced this issue Mar 16, 2022
- Workaround haskell.nix
  issue (input-output-hk/haskell.nix#1402) by using an
  earlier version of haskell.nix.
Anviking pushed a commit to cardano-foundation/cardano-wallet that referenced this issue Mar 16, 2022
- Workaround haskell.nix
  issue (input-output-hk/haskell.nix#1402) by using an
  earlier version of haskell.nix.
sevanspowell added a commit to cardano-foundation/cardano-wallet that referenced this issue Mar 17, 2022
- Workaround haskell.nix issue (input-output-hk/haskell.nix#1402) by using an
earlier version of haskell.nix.
Anviking pushed a commit to cardano-foundation/cardano-wallet that referenced this issue Mar 17, 2022
- Workaround haskell.nix
  issue (input-output-hk/haskell.nix#1402) by using an
  earlier version of haskell.nix.
@hamishmack
Copy link
Collaborator

Closing since cardano-foundation/cardano-wallet#3173 is closed.

@sevanspowell
Copy link
Contributor Author

Sorry @hamishmack, cardano-foundation/cardano-wallet#3173 is only closed because I put an extremely temporary fix in place: https://github.com/input-output-hk/cardano-wallet/blob/master/flake.nix#L40

We are still affected by this issue.

@sevanspowell sevanspowell reopened this Mar 29, 2022
@hamishmack
Copy link
Collaborator

Please try updating to latest Haskell.nix master as #1405 should have fixed it properly.

@sevanspowell
Copy link
Contributor Author

Trying now, will close if so 👍 Thanks!

@sevanspowell
Copy link
Contributor Author

Yep, that fixed it. Thanks :)

sevanspowell added a commit to cardano-foundation/cardano-wallet that referenced this issue Mar 29, 2022
- Haskell.nix issue 1402
(input-output-hk/haskell.nix#1402) has been fixed.
- We can now update haskell.nix to the latest version.
iohk-bors bot added a commit to cardano-foundation/cardano-wallet that referenced this issue Mar 30, 2022
3203: Update haskell.nix version now that we can cross-compile secp256k1 r=sevanspowell a=sevanspowell

- Haskell.nix issue 1402
(input-output-hk/haskell.nix#1402) has been fixed, allowing us to cross-compile.
- Therefore update haskell.nix to the latest version, removing workaround.


Co-authored-by: Samuel Evans-Powell <mail@sevanspowell.net>
iohk-bors bot added a commit to cardano-foundation/cardano-wallet that referenced this issue Mar 30, 2022
3203: Update haskell.nix version now that we can cross-compile secp256k1 r=jonathanknowles a=sevanspowell

- Haskell.nix issue 1402
(input-output-hk/haskell.nix#1402) has been fixed, allowing us to cross-compile.
- Therefore update haskell.nix to the latest version, removing workaround.


3208: GitHub Actions: Upgrade to windows-2022 r=jonathanknowles a=sevanspowell


### Comments

I've noticed that the GitHub Actions Windows tests seem to be cancelled before they properly start. I believe this might be due to the impending deprecation of  windows-2016 environments.

I'm going to try the following to see if it fixes the issue:

- The GitHub Actions "windows-2016" environment is soon to be deprecated,
  upgrade to windows-2022.
  - See actions/runner-images#5238.

### Issue Number

ADP-1587

Co-authored-by: Samuel Evans-Powell <mail@sevanspowell.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants