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

make test.byte fails with jsoo error #684

Open
bentxt opened this issue Nov 30, 2024 · 5 comments
Open

make test.byte fails with jsoo error #684

bentxt opened this issue Nov 30, 2024 · 5 comments

Comments

@bentxt
Copy link

bentxt commented Nov 30, 2024

hi,
I follow all the steps on README, but this strange error occurs even after I've reset the whole ~/.opam directory

Error:

/.opam/default/bin/js_of_ocaml: Error: missing dependency 'caml_new_string'

Specs:

$sw_vers
ProductName:		macOS
ProductVersion:		14.6.1
BuildVersion:		23G93

$ opam --version
2.1.6

Steps

rm -rf ~/.opam 
opam init
eval (opam env --switch=default) # on fish
opam install ocisgen-start
eliom-distillery -name myproject -template os.pgocaml
make db-init
make db-create
make db-schema
make test.byte
make test.byte
dune build  @myproject
File "dune", line 130, characters 9-18:
130 |   (names myproject)
               ^^^^^^^^^
/Users/ben/.opam/default/bin/js_of_ocaml: Error: missing dependency 'caml_new_string'

make: *** [byte] Error 1
@hhugo
Copy link
Member

hhugo commented Nov 30, 2024

The issue is that the newly released js_of_ocaml-compiler 5.9.0 dropped some js stubs. You can try to downgrade js_of_ocaml-compiler as a quick fix.
One need to adjust the opam constraint of the eliom package.
I'll try to make a minor release of jsoo to fix that.

@hhugo
Copy link
Member

hhugo commented Dec 2, 2024

@bentxt
Copy link
Author

bentxt commented Dec 2, 2024

Thanks for fixing this. Unfortunately I'm not sure how get this update on my machine. Apparently the fix was made opam (maybe thats also a false assumption ...). Anyway care to explain how can I use this?

@bentxt
Copy link
Author

bentxt commented Dec 2, 2024

Here's what I tried:

$> opam update
<><> Updating package repositories ><><><><><><><><><><><><><><><><><><><><>  🐫
[default] synchronised from https://opam.ocaml.org
<><> Synchronising development packages <><><><><><><><><><><><><><><><>
Now run 'opam upgrade' to apply any package updates.
$> opam upgrade eliom
Already up-to-date.
Nothing to do.
# Run eval (opam env) to update the current shell environment

That seems to me like the upgrade/update had no effect

@vouillon
Copy link
Member

vouillon commented Dec 2, 2024

The fix has not been merged yet.

The simplest think to do is to install the previous version of js_of_ocaml for now:

opam install js_of_ocaml.5.8.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

No branches or pull requests

3 participants