dbuenzli / topkg

The transitory OCaml software packager
http://erratique.ch/software/topkg
ISC License
69 stars 25 forks source link

opam build failure: Cannot find file topfind. #121

Closed tomjridge closed 6 years ago

tomjridge commented 6 years ago

I get the following message:

=-=- Processing actions -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
[ERROR] The compilation of topkg failed at "ocaml pkg/pkg.ml build --pkg-name
        topkg --dev-pkg false".

#=== ERROR while installing topkg.0.9.1 =======================================#
# opam-version 1.2.2
# os           linux
# command      ocaml pkg/pkg.ml build --pkg-name topkg --dev-pkg false
# path         /home/tom/.opam/4.05.0/build/topkg.0.9.1
# compiler     4.05.0
# exit-code    2
# env-file     /home/tom/.opam/4.05.0/build/topkg.0.9.1/topkg-14282-ad8886.env
# stdout-file  /home/tom/.opam/4.05.0/build/topkg.0.9.1/topkg-14282-ad8886.out
# stderr-file  /home/tom/.opam/4.05.0/build/topkg.0.9.1/topkg-14282-ad8886.err
### stdout ###
# Cannot find file topfind.
### stderr ###
# Unknown directive `require'.

Any ideas? I tried eval $(opam config env) but it didn't affect anything. OCAML_TOPLEVEL_PATH seems correct in the env, and contains topfind file.

tomjridge commented 6 years ago

Closing - my opam findlib install was corrupt (probably) - reinstalling ocamlfind fixed things.