Flexdll 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 --prefix=/home/kali/.opam/br-2025-02-26
        --docdir=/home/kali/.opam/br-2025-02-26/doc/ocaml -C --enable-flambda --enable-frame-pointers --disable-warn-error".

#=== ERROR while compiling ocaml-variants.5.2.1+options =======================#
# context     2.3.0 | linux/x86_64 |  | https://opam.ocaml.org#a8a89f62d8abd2a9f0cbb04826bfec1ef6b563e7
# path        ~/.opam/br-2025-02-26/.opam-switch/build/ocaml-variants.5.2.1+options
# command     ~/.opam/opam-init/hooks/sandbox.sh build ./configure --prefix=/home/kali/.opam/br-2025-02-26 --docdir=/home/kali/.opam/br-2025-02-26/doc/ocaml -C --enable-flambda --enable-frame-pointers --disable-warn-error
# exit-code   1
# env-file    ~/.opam/log/ocaml-variants-26799-6bd3a5.env
# output-file ~/.opam/log/ocaml-variants-26799-6bd3a5.out
### output ###
# [...]
# checking whether stripping libraries is possible... yes
# checking if libtool supports shared libraries... yes
# checking whether to build shared libraries... yes
# checking whether to build static libraries... yes
# checking how to run the C preprocessor... gcc -E
# checking C compiler vendor... gcc-11-4
# checking whether host executables can be run in the build... yes
# checking whether #! works in shell scripts... yes
# checking whether C compiler accepts -Wold-style-declaration... yes
# checking for flexdll sources... checking for flexlink... flexlink
# checking whether flexlink works... no
# configure: error: flexlink does not work

However, I do have flexlink installed

$ flexlink
Please specify an output file (-help to get some usage information)

Any help is appreciated, thanks in advance.

Something appears to be wrong with your environment; flexlink is only useful on Windows and you seem to be running Linux…

Cheers,
Nicolas

Also, any reason you want Dune 3.8? The latest version is 3.17 and 3.18 will be released soon.

Cheers,
Nicolas

I’m running WSL 2, apologies for forgetting to mention that! Is OCaml getting confused thinking I’m running in Windows?

Also yes, I do specifically need version 3.8.

Do you have flexlink in your PATH? If yes, you must remove it, otherwise the OCaml configure script will try to use it.

Cheers,
Nicolas

Yes, removing it fixed the problem, thank you!