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

build on platforms where ocamlopt not available #52

Open
ildar opened this issue Dec 16, 2023 · 9 comments
Open

build on platforms where ocamlopt not available #52

ildar opened this issue Dec 16, 2023 · 9 comments

Comments

@ildar
Copy link

ildar commented Dec 16, 2023

there are platforms where native code compilation is not available anymore (ocaml/ocaml#11904).
So it's still possible to have ocaml programs but only in bytecode form.

I just tried and see ocamleditor fails to build on such. ocamlopt is not available, only ocamlc.
I don't ask to fix it (I'm not sure anyone would need that) but just showing the BIG RED SIGN.

@vrotaru
Copy link
Contributor

vrotaru commented Dec 17, 2023

Have you tried to run on one of this to run

ocaml build.ml

in the root of the ocamleditor project? It will give you a general info and a list of targets and some between them are marked as bytecode.

TARGETS
   1) oebuild                   (Executable, Bytecode/Native)
   2) gmisclib                  (Library, Bytecode/Native)
      Miscellaneous widgets based on LablGtk2.
   3) ocamleditor               (Executable, Native)
   4) ocamleditor-bytecode      (Executable, Bytecode)
   5) ocamleditor-msvc          (Executable, Native)
   6) ocamleditor-native        (Executable, Native)
   7) ocamleditor-lib           (Library, Native)
   8) plugin-remote-bytecode    (Library, Bytecode)
   9) plugin-remote-native      (Plugin, Native)
  10) plugin-dotviewer-bytecode (Library, Bytecode)
  11) plugin-dotviewer-native   (Plugin, Native)
  12) launcher                  (Executable, Native)
      Utility to open OCaml files from the file manager

If those are present than ocaml build.ml ocamleditor-bytecode (in theory) should work. But installation via opam will fail, I guess.

@ildar
Copy link
Author

ildar commented Dec 17, 2023 via email

@vrotaru
Copy link
Contributor

vrotaru commented Dec 17, 2023

You're right.

The ocamleditor-bytecode target should be updated, A) to only use ocamlc B) To add the (at least) Yojson dependency

It should be doable, but it must be done (it would be easier to) on a platform which support ocamlopt

EDIT: the target is probably OK, my guess it that it has dependency which requires ocamlopt

@ftovagliari
Copy link
Member

@ildar: could you add the output of this?
ocaml build.ml -verbose 5 build ocamleditor-bytecode

@ildar
Copy link
Author

ildar commented May 4, 2024 via email

ftovagliari added a commit that referenced this issue May 5, 2024
@ftovagliari
Copy link
Member

Could you please do a test using the latest commit of the issue52 branch (c564f6f)?

@ildar
Copy link
Author

ildar commented May 8, 2024 via email

@ftovagliari
Copy link
Member

This commit 07f8dc3 should fix it

@ildar
Copy link
Author

ildar commented May 10, 2024 via email

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

When branches are created from issues, their pull requests are automatically linked.

3 participants