Skip to content
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

Error compiling toml on 4.04.0 - ISO8601.cmi compiled with wrong version of compiler #46

Closed
orbitz opened this issue Feb 12, 2017 · 3 comments

Comments

@orbitz
Copy link

orbitz commented Feb 12, 2017

I'm not convinced this is actually a TOML issue but I see it when installing TOML. Note that everything is installed fresh so the error doesn't quite make sense to me.

This is for TOML 4.0.0

...
/usr/local/jenkins/jobs/lua_pattern-4.04.0+flambda-unit-tests/workspace/.opam/4.04.0+flambda/bin/ocamlfind ocamldep -package unix -package str -package ISO8601 -modules src/tomlPrinter.ml > src/tomlPrinter.ml.depends
/usr/local/jenkins/jobs/lua_pattern-4.04.0+flambda-unit-tests/workspace/.opam/4.04.0+flambda/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package unix -package str -package ISO8601 -I src -o src/tomlLexer.cmo src/tomlLexer.ml
+ /usr/local/jenkins/jobs/lua_pattern-4.04.0+flambda-unit-tests/workspace/.opam/4.04.0+flambda/bin/ocamlfind ocamlc -c -g -annot -bin-annot -package unix -package str -package ISO8601 -I src -o src/tomlLexer.cmo src/tomlLexer.ml
File "src/tomlLexer.ml", line 1:
Error: /usr/local/jenkins/jobs/lua_pattern-4.04.0+flambda-unit-tests/workspace/.opam/4.04.0+flambda/lib/ISO8601/ISO8601.cmi
is not a compiled interface for this version of OCaml.
It seems to be for an older version of OCaml.
Command exited with code 2.
+ ocamlfind ocamlopt unix.cmxa -I /usr/local/jenkins/jobs/lua_pattern-4.04.0+flambda-unit-tests/workspace/.opam/4.04.0+flambda/lib/ocamlbuild /usr/local/jenkins/jobs/lua_pattern-4.04.0+flambda-unit-tests/workspace/.opam/4.04.0+flambda/lib/ocamlbuild/ocamlbuildlib.cmxa -linkpkg myocamlbuild.ml /usr/local/jenkins/jobs/lua_pattern-4.04.0+flambda-unit-tests/workspace/.opam/4.04.0+flambda/lib/ocamlbuild/ocamlbuild.cmx -o myocamlbuild
@mackwic
Copy link
Member

mackwic commented Feb 12, 2017

Wow. Sorry, no idea what it could be. Did you made a test with other versions ocaml ?

@sagotch
Copy link
Collaborator

sagotch commented Feb 13, 2017

Any chance that a eval `opam config env` has been forgotten at some point?

@mackwic
Copy link
Member

mackwic commented Nov 25, 2017

Closing by lack if activity

@mackwic mackwic closed this as completed Nov 25, 2017
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

3 participants