roddyyaga / bs-ppx_ocoi

MIT License
0 stars 0 forks source link

pp.exe depends on glibc 2.29 #1

Open edwinbalani opened 4 years ago

edwinbalani commented 4 years ago

I'm trying to use this in a project (you probably know which one) and am getting errors with the bundled executable file:

/home/edwin/project/node_modules/bs-platform/lib/bsc.exe  -w -48 -color always -bs-jsx 3 -ppx /home/edwin/project/node_modules/@roddynpm/bs-ppx_ocoi/ppx.sh -ppx /home/edwin/project/node_modules/bs-let/ppx -bs-super-errors -bs-no-version-header -o src/About.reast -bs-syntax-only -bs-binary-ast /home/edwin/project/src/About.re
/home/edwin/project/node_modules/@roddynpm/bs-ppx_ocoi/pp_exe/pp.exe: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by /home/edwin/project/node_modules/@roddynpm/bs-ppx_ocoi/pp_exe/pp.exe)

  We've found a bug for you!
  /home/edwin/project/src/About.re

  Error while running external preprocessor
Command line: /home/edwin/project/node_modules/@roddynpm/bs-ppx_ocoi/ppx.sh '/tmp/camlppxb1c058' '/tmp/camlppxf7cfd0'

This is the relevant error message:

version `GLIBC_2.29' not found (required by /home/edwin/project/node_modules/@roddynpm/bs-ppx_ocoi/pp_exe/pp.exe)

Is there a good reason to be bundling a precompiled executable?

My environment:

roddyyaga commented 4 years ago

Yes, this particular part of BuckleScript is a bit dodgy, preprocessors do just have to be executables (which are usually shipped precompiled because a native OCaml build system isn't necessarily available in a BuckleScript project). I've added a script to build the preprocessor, you can run it with make exe.