yawaramin / re-web

Experimental web framework for ReasonML & OCaml
https://yawaramin.github.io/re-web/re-web/index.html
MIT License
260 stars 8 forks source link

build failure #18

Closed DrYSG closed 4 years ago

DrYSG commented 4 years ago

Win10, running as admin and esy V 0.6.2, using ADMIN console.

D:\CRIME\re-web>
D:\CRIME\re-web>esy
info esy 0.6.2 (using package.json)
.... fetching @opam/conf-libssl@archive:https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz#sha1:df0e
info fetching: done
.... installing yarn-pkg-config@github:esy-ocaml/yarn-pkg-config#cca65f99674ed2d954d28788edeb8c57fada5ed0@d41d8cd9
.... installing @opam/conf-libssl@archive:https://github.com/openssl/openssl/archive/OpenSSL_1_1_1d.tar.gz#sha1:df
.... installing @opam/websocketaf-lwt-unix@github:anmonteiro/websocketaf:websocketaf-lwt-unix.opam#8318e44@51e7a4e
.... installing @opam/multipart-form-data@github:cryptosense/multipart-form-data:multipart-form-data.opam#d49fd89@
info installing: done
info building ocaml@4.8.1000@d41d8cd9
info building ocaml@4.8.1000@d41d8cd9: done
info building esy-help2man@github:esy-packages/esy-help2man#c8e6931d1dcf58a81bd801145a777fd3b115c443@d41d8cd9
info building esy-help2man@github:esy-packages/esy-help2man#c8e6931d1dcf58a81bd801145a777fd3b115c443@d41d8cd9: done
info building yarn-pkg-config@github:esy-ocaml/yarn-pkg-config#cca65f99674ed2d954d28788edeb8c57fada5ed0@d41d8cd9
info building yarn-pkg-config@github:esy-ocaml/yarn-pkg-config#cca65f99674ed2d954d28788edeb8c57fada5ed0@d41d8cd9:
done
info building @opam/jbuilder@opam:1.0+beta20.2@053ddcf2
info building @opam/jbuilder@opam:1.0+beta20.2@053ddcf2: done
info building @opam/seq@opam:base@d8d7de1d
info building @opam/seq@opam:base@d8d7de1d: done
info building @opam/cmdliner@opam:1.0.4@93208aac
info building @opam/cmdliner@opam:1.0.4@93208aac: done
info building @opam/ocamlbuild@opam:0.14.0@6ac75d03
info building @opam/ocamlbuild@opam:0.14.0@6ac75d03: done
info building @opam/ocamlfind@opam:1.8.1@ff07b0f9
info building @opam/ocamlfind@opam:1.8.1@ff07b0f9: done
info building @opam/dune@opam:2.1.3@8a848ab8
info building @opam/dune@opam:2.1.3@8a848ab8: done
info building @opam/conf-autoconf@github:esy-packages/esy-autoconf:package.json#fb93edf@d41d8cd9
info building @opam/conf-pkg-config@opam:1.1@67c69c0c
info building @opam/conf-pkg-config@opam:1.1@67c69c0c: done
info building @opam/uchar@opam:0.0.2@c8218eea
info building @opam/uchar@opam:0.0.2@c8218eea: done
info building @opam/topkg@opam:1.0.1@a42c631e
info building @opam/base-bytes@opam:base@19d0c2ff
info building @opam/base-bytes@opam:base@19d0c2ff: done
info building @opam/camomile@opam:1.0.2@51b42ad8
info building @opam/camomile@opam:1.0.2@51b42ad8: done
info building @opam/psq@opam:0.2.0@247756d4
info building @opam/psq@opam:0.2.0@247756d4: done
info building @opam/easy-format@opam:1.3.2@0484b3c4
info building @opam/easy-format@opam:1.3.2@0484b3c4: done
info building @opam/re@opam:1.9.0@d4d5e13d
info building @opam/re@opam:1.9.0@d4d5e13d: done
info building @opam/bigarray-compat@opam:1.0.0@1faefa97
info building @opam/bigarray-compat@opam:1.0.0@1faefa97: done
info building @opam/mmap@opam:1.1.0@b85334ff
info building @opam/mmap@opam:1.1.0@b85334ff: done
info building @opam/dune-private-libs@opam:2.1.3@057b6b15
info building @opam/dune-private-libs@opam:2.1.3@057b6b15: done
info building @opam/stdlib-shims@opam:0.1.0@d957c903
info building @opam/stdlib-shims@opam:0.1.0@d957c903: done
info building @opam/result@opam:1.4@dc720aef
info building @opam/result@opam:1.4@dc720aef: done
info building @opam/ppx_derivers@opam:1.2.1@ecf0aa45
info building @opam/ppx_derivers@opam:1.2.1@ecf0aa45: done
info building @opam/cppo@opam:1.6.6@f4f83858
info building @opam/cppo@opam:1.6.6@f4f83858: done
info building @opam/menhirSdk@opam:20200123@b2300eb1
info building @opam/menhirSdk@opam:20200123@b2300eb1: done
info building @opam/menhirLib@opam:20200123@aac9ddb2
info building @opam/menhirLib@opam:20200123@aac9ddb2: done
info building @opam/stringext@opam:1.6.0@104bc94b
info building @opam/stringext@opam:1.6.0@104bc94b: done
info building @opam/biniou@opam:1.2.1@d7570399
info building @opam/biniou@opam:1.2.1@d7570399: done
info building @opam/eqaf@opam:0.5@ffdce56a
info building @opam/eqaf@opam:0.5@ffdce56a: done
info building @opam/bigstringaf@opam:0.6.0@971764fa
info building @opam/bigstringaf@opam:0.6.0@971764fa: done
info building @opam/dune-configurator@opam:2.1.3@25ad9b47
info building @opam/dune-configurator@opam:2.1.3@25ad9b47: done
info building @opam/charInfo_width@opam:1.1.0@9d8d61b2
info building @opam/charInfo_width@opam:1.1.0@9d8d61b2: done
info building @opam/ocaml-migrate-parsetree@opam:1.5.0@3e319dbc
info building @opam/ocaml-migrate-parsetree@opam:1.5.0@3e319dbc: done
info building @opam/ocplib-endian@opam:1.0@aa720242
info building @opam/merlin-extend@opam:0.5@a5dd7d4b
info building @opam/merlin-extend@opam:0.5@a5dd7d4b: done
info building @opam/menhir@opam:20200123@fdbafd0c
info building @opam/menhir@opam:20200123@fdbafd0c: done
info building @opam/uri@opam:3.1.0@d38ac0ae
info building @opam/uri@opam:3.1.0@d38ac0ae: done
info building @opam/yojson@opam:1.7.0@7056d985
info building @opam/yojson@opam:1.7.0@7056d985: done
info building @opam/digestif@opam:0.8.0@ec3563c0
info building @opam/digestif@opam:0.8.0@ec3563c0: done
info building @opam/faraday@opam:0.7.0@6d4772f6
info building @opam/faraday@opam:0.7.0@6d4772f6: done
info building @opam/angstrom@opam:0.12.1@02015bad
info building @opam/angstrom@opam:0.12.1@02015bad: done
info building @opam/base64@opam:3.3.0@1a7a6d10
info building @opam/base64@opam:3.3.0@1a7a6d10: done
info building @opam/ppx_tools_versioned@opam:5.2.3@4994ec80
info building @opam/ppx_tools_versioned@opam:5.2.3@4994ec80: done
info building @esy-ocaml/reason@3.5.2@d41d8cd9
info building @esy-ocaml/reason@3.5.2@d41d8cd9: done
info building @opam/merlin@opam:3.3.3@d653b06a
error: build failed with exit code: 1
  build log:
    # esy-build-package: building: @opam/topkg@opam:1.0.1
    # esy-build-package: pwd: C:\Users\ysg4206\.esy\3\b\opam__s__topkg-opam__c__1.0.1-5bf1214c
    # esy-build-package: running: "ocaml" "pkg/pkg.ml" "build" "--pkg-name" "topkg" "--dev-pkg" "false"
    Cannot find file topfind.
    '"ocamlfind"' is not recognized as an internal or external command,
    operable program or batch file.
    pkg.ml: [WARNING] OCaml host-os conf:  cmd ["ocamlfind" "ocamlc" "-config"]: exited with 1
    pkg.ml: [WARNING] OCaml host-os conf: key native: undefined, stdlib dir not found for discovery
                      using false
    pkg.ml: [WARNING] OCaml host-os conf: key natdynlink: undefined, stdlib dir not found for discovery
                      using false
    pkg.ml: [WARNING] OCaml host-os conf: key ext_obj: undefined, using ".o"
    pkg.ml: [WARNING] OCaml host-os conf: key ext_lib: undefined, using ".a"
    pkg.ml: [WARNING] OCaml host-os conf: key ext_dll: undefined, using ".so"
    pkg.ml: [WARNING] OCaml host-os conf: key ext_exe: undefined and
                      no C toolchain detected, using ""
    Failure: ocamlfind not found on path, but -no-ocamlfind not used.
    pkg.ml: [ERROR] cmd ["ocamlbuild" "-use-ocamlfind" "-classic-display" "-j" "4" "-tag" "debug"
         "-build-dir" "_build" "CHANGES.md" "LICENSE.md" "README.md" "pkg/META"
         "topkg.opam" "src/topkg.cma" "src/topkg.cmi" "src/topkg.mli"]: exited with 2
    error: command failed: "ocaml" "pkg/pkg.ml" "build" "--pkg-name" "topkg" "--dev-pkg" "false" (exited with 1)
    esy-build-package: exiting with errors above...

  building @opam/topkg@opam:1.0.1
esy: exiting due to errors above

D:\CRIME\re-web>esy --version
0.6.2
yawaramin commented 4 years ago

Thank you for testing! I don't have a Windows machine unfortunately so not really sure what this is. Would appreciate if anyone could help with this.

DrYSG commented 4 years ago

@yawaramin what I often try, is after the clone is $ esy cleaup . --- followed by removing the _esy and esy.lock folders. In this case it did not work.

From what I can decypher on the message, it strikes me as an esy issue. Since most other packages work with esy, I wonder if you do something different, or if this would not be a good thing to write up and let the esy developers look into what is going on.

the esy install works for both reweb and for your fullstack-reason example.

yawaramin commented 4 years ago

Hi @DrYSG it could be something I'm doing but as you can see it is building successfully on Mac and Linux, so I am inclined to think it's a Windows/esy issue...

DrYSG commented 4 years ago

@yawaramin don't know if this helps, But it seems that your derivative project reweb-fullstack-reason gets further along in the build.

https://github.com/yawaramin/fullstack-reason/issues/3

(I do think it does point to an esy windows issue. Do you think we create an issue at the esy github site?)

yawaramin commented 4 years ago

I think it would be a good idea to mention this issue in the Discord #native-development channel and see if anyone has ideas. We know for a fact that complex projects like Revery and Onivim are being developed on Esy/Windows, so someone may already have come across this...