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

[BUG] - cardano-node failing to build on ppc64 (OpenPOWER) #6036

Open
camberkenpas opened this issue Nov 18, 2024 · 1 comment
Open

[BUG] - cardano-node failing to build on ppc64 (OpenPOWER) #6036

camberkenpas opened this issue Nov 18, 2024 · 1 comment
Labels
needs triage Issue / PR needs to be triaged. Stale

Comments

@camberkenpas
Copy link

Internal/External
External

Area
Other Any other topic (Delegation, Ranking, ...).

Summary
cardano-node failing to build on ppc64:
: error:
loadArchive "/usr/local/lib/libblst.a": failed
[156 of 188] Compiling UntypedPlutusCore.Evaluation.Machine.Cek.CekMachineCosts ( untyped-plutus-core/src/UntypedPlutusCore/Evaluation/Machine/Cek/CekMachineCosts.hs, dist/build/UntypedPlutusCore/Evaluation/Machine/Cek/CekMachineCosts.o, dist/build/UntypedPlutusCore/Evaluation/Machine/Cek/CekMachineCosts.dyn_o )
[158 of 188] Compiling UntypedPlutusCore.Evaluation.Machine.Cek.StepCounter ( untyped-plutus-core/src/UntypedPlutusCore/Evaluation/Machine/Cek/StepCounter.hs, dist/build/UntypedPlutusCore/Evaluation/Machine/Cek/StepCounter.o, dist/build/UntypedPlutusCore/Evaluation/Machine/Cek/StepCounter.dyn_o )
[175 of 188] Compiling UntypedPlutusCore.Simplify.Opts ( untyped-plutus-core/src/UntypedPlutusCore/Simplify/Opts.hs, dist/build/UntypedPlutusCore/Simplify/Opts.o, dist/build/UntypedPlutusCore/Simplify/Opts.dyn_o )
ghc-9.4.7: /usr/local/lib/libblst.a: RTS linker not implemented on PowerPC 64-bit

That's a portion of the error output where all the errors are complaining about libblst.a, but if the build were to go on longer, we could potentially see similar errors for other dependencies such as secp256k1 and libsodium I would assume.

Steps to reproduce
Followed the steps here
Everything works up until:
cabal build cardano-cli

Expected behavior
This should complete sucessfully:
cabal build cardano-cli

System info (please complete the following information):

  • OS Name: Ubuntu
  • OS Version: 24.04
  • Node version attempting to build 10.1.2
  • CLI version attempt to build 10.1.2
  • ghc version: 9.4.7

Additional context
Even in the latest GHC there is no dynamic linking in the Haskell interpreter for ppc64. This is a ghc/Haskell problem (including in the latest master) that could potentially be worked around on the Cardano side for better compatibility. Possibly by avoiding Template Haskell?

The same limitation in Haskell exists for s390 and RISC-V so likely we would see the same outcome on those. While s390 is probably not particularly common and ppc64 probably isn't too much better, RISC-V may start to see some more adoption.

This issue seems related:
#1484

@camberkenpas camberkenpas added the needs triage Issue / PR needs to be triaged. label Nov 18, 2024
@camberkenpas camberkenpas changed the title [BUG] - [BUG] - cardano-node failing to build on ppc64 (OpenPOWER) Nov 18, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 120 days.

@github-actions github-actions bot added the Stale label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Issue / PR needs to be triaged. Stale
Projects
None yet
Development

No branches or pull requests

1 participant