bsansouci / bsb-native

Build system for OCaml/Reason
Other
245 stars 10 forks source link

ocamlfind-dependencies: "Package `xxxx` not found" #37

Closed dyst5422 closed 6 years ago

dyst5422 commented 6 years ago

Every time I have a package listed in ocamlfind-dependencies, compiling fails with the message ocamlfind: Package 'xxx' not found

Example:

bsconfig.json

{
  "name": "hello",
  "version": "0.1.0",
  "sources": {
    "dir" : "src",
    "subdirs" : true
  },
  "package-specs": {
    "module": "commonjs",
    "in-source": true
  },
  "suffix": ".bs.js",
  "ocamlfind-dependencies": ["core"],
  "warnings": {
    "error" : "+101"
  },
  "entries": [{
    "backend": "bytecode",
    "main-module": "Index"
  }]
}

Error

jdstewar@LMC-056682 reason $ yarn build
yarn run v1.3.2
$ bsb -make-world
ninja: Entering directory `lib/bs/bytecode'
[1/2] Building src/index.cmo
FAILED: src/index.cmo src/index.cmi
ocamlfind ocamlc    -I src -package core  -thread -passopt -no-alias-deps -passopt -color -passopt always -o src/index.cmo -w -30-40+6+7+27+32..39+44+45+101 -warn-error +101 -g -c -intf-suffix .mliast_simple -impl src/index.mlast_simple
ocamlfind: Package `core' not found
ninja: build stopped: subcommand failed.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
jdstewar@LMC-056682 reason $
bsansouci commented 6 years ago

Hey! I'm assuming you've installed opam and core. Could you run opam info core and paste the output here?

dyst5422 commented 6 years ago

Oh my god, I'm an idiot. Disregard.

bsansouci commented 6 years ago

Haha no worries!