jaredly / jaredly/reprocessing-example-cross-platform

Compilation error when installing dependencies with yarn

オープン
#1 コメント 2 件 リアクション 3 件 担当者 0 名 GitHub で見る
主要言語
OCaml
スター
50
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi Jared,

I am trying to run this example but I can't due I get the following error while installing the dependencies with `yarn`.

yarn install v1.3.2
info No lockfile found.
[1/4] 🔍 Resolving packages...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Building fresh packages...
[1/7] ⡀ sdl2
[2/7] ⡀ ppx-env: ninja: Entering directory `lib/bs'
[3/7] ⢀ matchenv: [2/3] Building src/index.mlast
[4/7] ⢀ bs-platform
error /Users/arielschiavoni/Projects/opensource/reprocessing-example-cross-platform/node_modules/matchenv: Command failed.
Exit code: 2
Command: bsb && cp lib/bs/native/index.native matchenv
Arguments:
Directory: /Users/arielschiavoni/Projects/opensource/reprocessing-example-cross-platform/node_modules/matchenv
Output:
ninja: Entering directory `lib/bs'
[1/3] Building Matchenv.cmi
[2/3] Building src/index.mlast
[3/3] Building src/index.mlast.d
[1/1] Building src/index-Matchenv.cmj
FAILED: src/index-Matchenv.cmj /Users/arielschiavoni/Projects/opensource/reprocessing-example-cross-platform/node_modules/matchenv/lib/js/src/index.js src/index-Matchenv.cmi
/usr/local/lib/node_modules/bs-platform/lib/bsc.exe -bs-package-map matchenv -bs-package-output commonjs:lib/js/src -bs-assume-no-mli -bs-no-builtin-ppx-ml -bs-no-implicit-include -I . -I src -w -30-40+6+7+27+32..39+44+45+101 -nostdlib -I '/Users/arielschiavoni/Projects/opensource/reprocessing-example-cross-platform/node_modules/bs-platform/lib/ocaml' -no-alias-deps -color always -bs-re-out -bs-super-errors -o src/index-Matchenv.cmj -c src/index.mlast

We've found a bug for you!
command line

The module or file Pervasives can't be found.

- If it's a third-party dependency:
- Did you list it in bsconfig.json?
- Did you run `bsb` instead of `bsb -make-world`
(latter builds third-parties)?

Thanks!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

まず `yarn install` を再現し、`node_modules/matchenv` で失敗しているビルドを調査します。特に `lib/bs` と `bsb` コマンドの出力を確認してください。`bs-platform` が `Pervasives` を見つけられない理由を調査します。完了の条件は、例の依存関係がコンパイルエラーなしでインストールされることです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
ocaml
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。