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

We have had an issue with a user trying to use this on a linux ARM machine #76

Open
JasoonS opened this issue Apr 24, 2024 · 1 comment

Comments

@JasoonS
Copy link

JasoonS commented Apr 24, 2024

Unfortunately this is a second hand issue as I don't have a way to easily test it on Linux Arm my self. It is from a user using the envio tool that we have built.

I assume that it just isn't handled in the build pipeline - is see ubuntu-linux is used but this uses AMD by default.

Here is the users error:

Dependency on @greenlabs/ppx-spice
rescript: [1/6] src/rescript/Spice_Codecs.ast
FAILED: src/rescript/Spice_Codecs.ast
sh: 1: /home/ubuntu/indexer-test/generated/node_modules/@greenlabs/ppx-spice/./ppx: Exec format error

  We've found a bug for you!
  /home/ubuntu/indexer-test/node_modules/.pnpm/@[email protected]/node_modules/@greenlabs/ppx-spice/src/rescript/Spice_Codecs.res

  Error while running external preprocessor
Command line: /home/ubuntu/indexer-test/generated/node_modules/@greenlabs/ppx-spice/./ppx '/tmp/ppx49da4cSpice_Codecs.res' '/tmp/ppxd61d3aSpice_Codecs.res'


rescript: [2/6] src/rescript/Spice.ast
FAILED: src/rescript/Spice.ast
sh: 1: /home/ubuntu/indexer-test/generated/node_modules/@greenlabs/ppx-spice/./ppx: Exec format error

  We've found a bug for you!
  /home/ubuntu/indexer-test/node_modules/.pnpm/@[email protected]/node_modules/@greenlabs/ppx-spice/src/rescript/Spice.res

  Error while running external preprocessor
Command line: /home/ubuntu/indexer-test/generated/node_modules/@greenlabs/ppx-spice/./ppx '/tmp/ppx47e5f4Spice.res' '/tmp/ppxed00baSpice.res'


FAILED: cannot make progress due to previous errors.
Failure: /home/ubuntu/indexer-test/node_modules/.pnpm/[email protected]/node_modules/rescript/linuxarm64/ninja.exe 
Location: /home/ubuntu/indexer-test/generated/node_modules/@greenlabs/ppx-spice/lib/bs
Error: Failed cli execution

The machine was an ec2 instance of m7g family (aarch64 - ubuntu).

@mununki
Copy link
Member

mununki commented Apr 24, 2024

Hi, thank you for reporting.
I think the way to solve your problem might be to add a binary to your project that has PPX built for the platforms you mentioned. Let me tap on it.

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

2 participants