Skip to content

Linux Alpine - Command failed ninja.exe #4151

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

Closed
luisfcofv opened this issue Feb 6, 2020 · 2 comments
Closed

Linux Alpine - Command failed ninja.exe #4151

luisfcofv opened this issue Feb 6, 2020 · 2 comments

Comments

@luisfcofv
Copy link

Alpine 3.11.2

bs-platform fails during installation.
I do have npm postinstall scripts enabled. There are some references to ninja.exe, but I'm using Linux.

Any idea what could be wrong? I have installed the required dependencies as well.
apk update && apk add build-base python libpng-dev

make[2]: Entering directory '/project-web/node_modules/bs-platform/ocaml'
project-web_1           | cp ocamlc.opt "/project-web/node_modules/bs-platform/native/4.06.1/bin/ocamlc.opt"
project-web_1           | cp ocamlopt.opt "/project-web/node_modules/bs-platform/native/4.06.1/bin/ocamlopt.opt"
project-web_1           | cp lex/ocamllex.opt "/project-web/node_modules/bs-platform/native/4.06.1/bin/ocamllex.opt"
project-web_1           | cd "/project-web/node_modules/bs-platform/native/4.06.1/bin"; \
project-web_1           |    ln -sf ocamlc.opt ocamlc; \
project-web_1           |    ln -sf ocamlopt.opt ocamlopt; \
project-web_1           |    ln -sf ocamllex.opt ocamllex
project-web_1           | cp utils/*.cmx parsing/*.cmx typing/*.cmx bytecomp/*.cmx \
project-web_1           |    driver/*.cmx asmcomp/*.cmx "/project-web/node_modules/bs-platform/native/4.06.1/lib/ocaml/compiler-libs"
project-web_1           | cp compilerlibs/ocamlcommon.cmxa compilerlibs/ocamlcommon.a \
project-web_1           |    compilerlibs/ocamlbytecomp.cmxa compilerlibs/ocamlbytecomp.a \
project-web_1           |    compilerlibs/ocamloptcomp.cmxa compilerlibs/ocamloptcomp.a \
project-web_1           |    driver/main.cmx driver/main.o \
project-web_1           |    driver/optmain.cmx driver/optmain.o \
project-web_1           |    "/project-web/node_modules/bs-platform/native/4.06.1/lib/ocaml/compiler-libs"
project-web_1           | if test -f ocamlnat ; then \
project-web_1           |   cp ocamlnat "/project-web/node_modules/bs-platform/native/4.06.1/bin/ocamlnat"; \
project-web_1           |   cp toplevel/opttopdirs.cmi "/project-web/node_modules/bs-platform/native/4.06.1/lib/ocaml"; \
project-web_1           |   cp compilerlibs/ocamlopttoplevel.cmxa \
project-web_1           |      compilerlibs/ocamlopttoplevel.a \
project-web_1           |      toplevel/opttopstart.cmx toplevel/opttopstart.o \
project-web_1           |      "/project-web/node_modules/bs-platform/native/4.06.1/lib/ocaml/compiler-libs"; \
project-web_1           | fi
project-web_1           | cd "/project-web/node_modules/bs-platform/native/4.06.1/lib/ocaml/compiler-libs" && \
project-web_1           |    ranlib ocamlcommon.a ocamlbytecomp.a ocamloptcomp.a
project-web_1           | make[2]: Leaving directory '/project-web/node_modules/bs-platform/ocaml'
project-web_1           | make -C tools installopt
project-web_1           | make[2]: Entering directory '/project-web/node_modules/bs-platform/ocaml/tools'
project-web_1           | cp -- profiling.cmx profiling.o "/project-web/node_modules/bs-platform/native/4.06.1/lib/ocaml"
project-web_1           | make[2]: Leaving directory '/project-web/node_modules/bs-platform/ocaml/tools'
project-web_1           | if test -f ocamlopt.opt -a -f flexdll/flexlink.opt ; then \
project-web_1           |   cp -f flexdll/flexlink.opt "/project-web/node_modules/bs-platform/native/4.06.1/bin/flexlink" ; \
project-web_1           | fi
project-web_1           | make[1]: Leaving directory '/project-web/node_modules/bs-platform/ocaml'
project-web_1           | [1/5] Making bsb_helper.exe
project-web_1           | [2/5] Making bsb.exe
project-web_1           | [3/5] Making bsppx.exe
project-web_1           | FAILED: bsppx.exe
project-web_1           | /project-web/node_modules/bs-platform/native/4.06.1/bin/ocamlopt.opt -O2  -nodynlink -I 4.06.1 -g -w -a ../jscomp/stubs/ext_basic_hash_stubs.c -unboxed-types  4.06.1/bsppx.mli 4.06.1/bsppx.ml -o bsppx.exe && strip bsppx.exe
project-web_1           | Killed
project-web_1           | [4/5] Making refmt.exe
project-web_1           | [5/5] Making bsc.exe
project-web_1           | FAILED: subcommand failed.
project-web_1           | child_process.js:630
project-web_1           |     throw err;
project-web_1           |     ^
project-web_1           |
project-web_1           | Error: Command failed: /project-web/node_modules/bs-platform/lib/ninja.exe -f release.ninja
project-web_1           |     at checkExecSyncError (child_process.js:607:13)
project-web_1           |     at Object.execFileSync (child_process.js:627:13)
project-web_1           |     at provideCompiler (/project-web/node_modules/bs-platform/scripts/install.js:354:8)
project-web_1           |     at Object.<anonymous> (/project-web/node_modules/bs-platform/scripts/install.js:365:20)
project-web_1           |     at Module._compile (module.js:653:30)
project-web_1           |     at Object.Module._extensions..js (module.js:664:10)
project-web_1           |     at Module.load (module.js:566:32)
project-web_1           |     at tryModuleLoad (module.js:506:12)
project-web_1           |     at Function.Module._load (module.js:498:3)
project-web_1           |     at Function.Module.runMain (module.js:694:10)
project-web_project-web_1 exited with code 1
@bobzhang
Copy link
Member

bobzhang commented Feb 8, 2020

we use our own patched ninja, ninja.exe is the same name for all platforms. how do you do the installation via npm or not?
we need more context. relevant issue #3666

@bobzhang
Copy link
Member

closed as we need more feedback. The installation without npm is node ./scripts/install.js

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