Invalid cross-device link when using Eio.Path.load
I am getting the following error when using Eio.Path.load: Fatal error: exception Eio.Io Fs Permission_denied Unix_error (Invalid cross-device link, "openat2", ""), examining...
View ArticleInstalling dune in opam Debian docker container on arm host for platform amd64
On an apple silicon macos, given the following repro.dockerfile: FROM ocaml/opam:debian-ocaml-5.1 ENV DEBIAN_FRONTEND=noninteractive RUN opam install dune.3.16.0 -y running docker build -f...
View ArticleDoes dune support user-defined variables?
Like makefile, we can define custom variables. But I didn’t find out how to do so in dune file. Does anyone know whether dune support this? 3 posts - 3 participants Read full topic
View ArticleHow to generate different code based on an environmental variable at build time
I would like to read a OCaml variable, based on an environmental variable that was passed at build time. Currently I am doing the following: env_gen.ml let () = let env = Sys.getenv_opt "MY_ENV" |>...
View ArticleDune build compilation error
dune build File "bin/dune", line 3, characters 7-11: 3 | (name main) ^^^^ /bin/bash: C:UserschukwAppDataLocalTempbuild_a3f8e9_dunelongcmdebe3b0: No such file or directory ** Fatal error: Error during...
View ArticleDunolint status update
To my fellow OCaml & Dune users, A while ago, I mentioned that I was using an internal tool to help me maintain the dune files of my monorepo. This tool wasn’t really designed to be shared from...
View ArticleDune Compilation Error on Setting Up postgresql
I am facing an error message trying to use postgres, caqti on my project, but i am getting this error message, when i try, dune build. dune build File "bin/dune", line 3, characters 7-11: 3 | (name...
View ArticleJane Street Base changes the semantics of String.concat on my MacOS system
Hello, I am trying to learn OCaml and I have installed the binary OCaml-5.3.0 distribution on my MacOS where “uname -a” gives Darwin Kernel Version 20.6.0: Thu Sep 29 20:15:11 PDT 2022;...
View ArticleHelp wanted: make ppx_expect bazel-friendly
I just discovered that ppx_expect expects that source files are located in the directory from which the test runner was launched. That is never the case under Bazel. I can’t think of a workaround; I...
View ArticleInstalling shell completion file in an opam package
I’ve been working on a simple library to automatically generate shell completion files from spec for the Arg module. I’ve been having trouble figuring out how to properly install these completions...
View ArticleNewbie dune question
I’m trying to learn dune, and am finding that there’s a lot to learn. Can someone explain to me, or point me to the relevant dune docs, why it works this way: Here’s what I have done: Created a new...
View ArticleUsing dune with git submodules
I have two dune projects and I would like one to include the other as a git submodule. Thus, both projects have their own dune-project file, and (after updating the submodule) one project will be a...
View ArticleFlexdll error on dune 3.8
Hello all, I am trying to upgrade dune to 3.8.0, but I keep getting a flexlink/flexdll error. [ERROR] The compilation of ocaml-variants.5.2.1+options failed at "./configure...
View ArticleError: The module Linol.Log is an alias for module Linol__Log, which is missing
Hello, I’m trying to create a language server using GitHub - c-cube/linol: Wrapper around the OCaml `lsp` library to make it easier to write LSP servers My dune-project: (lang dune 3.17) (name...
View ArticleError compiling base
Hello OCaml community, I try to setup ocaml on my Mac Book air M1 2020 macos Version 15.4 opam init -y eval $(opam env) opam install ocaml-lsp-server odoc ocamlformat utop The installation of the...
View ArticleFirst dune build with ocaml-protoc fails; builds 2+ succeed
I’m using ocaml-protoc, and set up a dune rule that works fine, except it reliably fails the first clean build (subsequent builds are OK). Error is Could not find the .cmi file for interface...
View Article[ANN] Dune 3.18
On the behalf of the dune team, I’m glad to announce the release of dune 3.18.0 This release contains changes to support the new x-maintenance-intent field by default. It also contains some changes...
View Article