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

graphql_ppx does not support OpenBSD/adJ #230

Open
vtamara opened this issue Jan 10, 2021 · 5 comments
Open

graphql_ppx does not support OpenBSD/adJ #230

vtamara opened this issue Jan 10, 2021 · 5 comments

Comments

@vtamara
Copy link

vtamara commented Jan 10, 2021

Trying to install pupilfirst (https://developers.pupilfirst.com/docs/development_setup/) it stops when running CXX=c++ yarn with:

error /.../pupilfirst/node_modules/@baransu/graphql_ppx_re: Command failed.
Exit code: 1                            
Command: node ./copyPlatformBinaryInPlace.js
Arguments:                              
Directory: /.../pupilfirst/node_modules/@baransu/graphql_ppx_re
Output:                                 
graphql_ppx does not support this platform :(
                                        
graphql_ppx comes prepacked as built binaries to avoid large
dependencies at build-time.

If you want graphql_ppx to support this platform natively,
please open an issue at our repository, linked above. Please

The platform is:

OS: OpenBSD/adJ 6.7
Node: 12.16.1

@jfrolich
Copy link
Collaborator

It can probably use the same executable as Linux. Can you see if that works?

@jfrolich
Copy link
Collaborator

jfrolich commented Jan 10, 2021

I thought there was some compatibility layer on BSD so that ELF binaries would work there. If that doesn't work, you might need to compile the ppx yourself.

@vtamara
Copy link
Author

vtamara commented Jan 11, 2021

I thought there was some compatibility layer on BSD so that ELF binaries would work there. If that doesn't work, you might need to compile the ppx yourself.

In OpenBSD/adJ there is not.

I would like to compile ppx by myself.

One question, the instructions to compile are https://beta.graphql-ppx.com/docs/contributing/ ?

If those are the instructions to compile, up to now I have found 2 problems:

  1. bs-plataform was not supported in OpenBSD
  2. esy is not supported in OpenBSD

And I have tried to advance on solutions for both:

  1. For the first one, I sent a PR that was accepted: Porting to OpenBSD/adJ rescript-lang/rescript-compiler#4903
  2. For the second I opened this issue: Support for OpenBSD/adJ esy/esy#1257.

@jfrolich
Copy link
Collaborator

Once you have those it's pretty easy to compile, just esy b. It produces an exe and that is the only thing you need to provide in your bsconfig.json. (We do have a small runtime file for complex queries with multiple fragments in the bucklescript folder (you can just copy that into your project).

@thubamamba
Copy link

Having this issue on Mac M1. Any suggestions?

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