Comments (3)
Looking at your CI building the js file, I see
(cd _build/default/src/js && /home/opam/.opam/4.14.1/bin/js_of_ocaml -o interactive_js.bc.js filesystem.js interactive_js.bc-for-jsoo)
Warning: your program contains effect handlers; you should probably run js_of_ocaml with option '--enable=effects'
There are some missing primitives
Dummy implementations (raising 'Failure' exception) will be used if they are not available at runtime.
You can prevent the generation of dummy implementations with the commandline option '--disable genprim'
Missing primitives:
caml_thread_initialize
which indicate you're using ocaml 4.14.1.
Looking at the diff in the PR, I see you're adding a dependency on saturn_lockfree
, which depends on threads.posix
for ocaml < 5. (see https://github.com/ocaml-multicore/saturn/blob/main/src_lockfree/dune).
threads.posix
is not supported by jsoo.
from js_of_ocaml.
The "4.14.1" path fragment was misleading. I can see the compiler is upgraded to 5.1.1 before. Looking again, saturn_lockfree depends on domain_shims
which unconditionally depends on threads
(see https://gitlab.com/gasche/domain-shims/-/blob/trunk/lib/dune?ref_type=heads).
I think we should somehow remove the threads
dep from domain_shims on ocaml5. (cc @gasche)
from js_of_ocaml.
Great catch on the threads hard dep, thanks. That fixes it. I'll follow-up there.
from js_of_ocaml.
Related Issues (20)
- [BUG] Regression with `5.6.0` HOT 8
- [BUG] regression causing some definitions in recursive functions to be out of scope HOT 3
- [BUG] bad version reported after opam pin HOT 1
- [FEATURE REQUEST] experiment with let and const bindings.
- [BUG] Menhir internal failure on 5.7 with Dune's release profile HOT 7
- Formatting and linting the runtime with Biome HOT 7
- [BUG] binding properties are incorrectly minified HOT 2
- [BUG] `--enable=effects` may cause incorrect compilation results (TypeError: cont is not a function) HOT 7
- [BUG] Missing primitives on OCaml 5.2 HOT 4
- Assertion fails in lib/parse_bytecode.ml HOT 2
- [BUG] separate compilation cause runtime duplication when using --toplevel or --dynlink
- [BUG] js_of_ocaml is excessively memory hungry HOT 20
- [FEATURE REQUEST] More customization (or documentation) of `--source-map`. HOT 1
- [FEATURE REQUEST] Ability to impede sharing constants HOT 1
- [BUG] Using two Js_of_ocaml compiled libraries in the same runtime causes issues with js stubs HOT 3
- [BUG] ppx_expect output is being included in built javascript files HOT 19
- [BUG] Fix the toplevel with separate compilation
- [BUG] Incorrect Handling of `0u` Prefix in Int32.of_string HOT 1
- [BUG] Missing TextDecoder from reserved
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js_of_ocaml.