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

Building higher fails on bytecode only switches #3

Closed
dbuenzli opened this issue Dec 5, 2015 · 0 comments · Fixed by #4
Closed

Building higher fails on bytecode only switches #3

dbuenzli opened this issue Dec 5, 2015 · 0 comments · Fixed by #4

Comments

@dbuenzli
Copy link

dbuenzli commented Dec 5, 2015

/cc @pqwy

The package should not try to compile native code if opam's ocaml-native variable is false. Using oasis or topkg may solve the problem.

# opam-version 1.2.2
# os           darwin
# command      make
# path         /Users/dbuenzli/.opam/4.03.0+effects/build/higher.0.2
# compiler     4.03.0+effects
# exit-code    2
# env-file     /Users/dbuenzli/.opam/4.03.0+effects/build/higher.0.2/higher-58668-1872ec.env
# stdout-file  /Users/dbuenzli/.opam/4.03.0+effects/build/higher.0.2/higher-58668-1872ec.out
# stderr-file  /Users/dbuenzli/.opam/4.03.0+effects/build/higher.0.2/higher-58668-1872ec.err
### stdout ###
# ocamldep higher.mli > ._bcdi/higher.di
# ocamldep higher.ml > ._d/higher.d
# ocamlc -c higher.mli
# ocamlc -c higher.ml
# ocamlc -a                -o higher.cma higher.cmo
# ocamldep -native higher.mli > ._ncdi/higher.di
# ocamlopt -c higher.ml
### stderr ###
# File "higher.ml", line 1:
# Error: higher.cmi
# is not a compiled interface for this version of OCaml.
# It seems to be for a newer version of OCaml.
# make[1]: *** [higher.cmx] Error 2
# make: *** [native-code-library] Error 2
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

Successfully merging a pull request may close this issue.

1 participant