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

Is it possible to create a 4.14.1 opam Switch? #7

Open
liweijian opened this issue Jul 7, 2023 · 2 comments
Open

Is it possible to create a 4.14.1 opam Switch? #7

liweijian opened this issue Jul 7, 2023 · 2 comments

Comments

@liweijian
Copy link

I've update the dkml to 1.2.1-10:

image

But run command with-dkml opam switch create idedev2 --repos 'default,diskuv-1.2.1-10=git+https://github.com/diskuv/diskuv-opam-repository.git#1.2.1-10' 4.14.1 still got errors.

Because basically, our internal project should use OCaml 4.14.1.

C:\Users\moonbuild> with-dkml opam switch create idedev2 --repos 'default,diskuv-1.2.1-10=git+https://github.com/diskuv/diskuv-opam-repository.git#1.2.1-10' 4.14.1

<><> Installing new switch packages <><><><><><><><><><><><><><><><><><><><><><>
Switch invariant: ["ocaml-base-compiler" {= "4.14.1"} | "ocaml-system" {= "4.14.1"}]
[NOTE] External dependency handling not supported for OS family 'windows'.
       You can disable this check using 'opam option --global depext=false'
[NOTE] External dependency handling not supported for OS family 'windows'.
       You can disable this check using 'opam option --global depext=false'

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
* installed base-bigarray.base
* installed base-threads.base
* installed base-unix.base
* installed ocaml-options-vanilla.1
▼ retrieved ocaml-base-compiler.4.14.1  (cached)
[ERROR] The compilation of ocaml-base-compiler.4.14.1 failed at "./configure --prefix=C:\\Users\\moonbuild\\AppData\\Local\\opam\\idedev2 --docdir=C:\\Users\\moonbuild\\AppData\\Local\\opam\\idedev2\\doc/ocaml -C".

#=== ERROR while compiling ocaml-base-compiler.4.14.1 =========================#
# context     2.2.0~alpha0~20221228 | win32/x86_64 |  | https://opam.ocaml.org#030450cd
# path        C:\Users\moonbuild\AppData\Local\opam\idedev2\.opam-switch\build\ocaml-base-compiler.4.14.1
# command     C:\Users\moonbuild\AppData\Local\opam\idedev2\.opam-switch\build\ocaml-base-compiler.4.14.1\./configure --prefix=C:\Users\moonbuild\AppData\Local\opam\idedev2 --docdir=C:\Users\moonbuild\AppData\Local\opam\idedev2\doc/ocaml -C
# exit-code   1
# env-file    C:\Users\moonbuild\AppData\Local\opam\log\ocaml-base-compiler-15404-02ef78.env
# output-file C:\Users\moonbuild\AppData\Local\opam\log\ocaml-base-compiler-15404-02ef78.out
### output ###
# [...]
# checking how to hardcode library paths into programs... immediate
# checking whether stripping libraries is possible... no
# checking if libtool supports shared libraries...
# checking whether to build shared libraries... yes
# checking whether to build static libraries... yes
# checking C compiler vendor... msvc-1926
# checking whether host executables can be run in the build... yes
# checking whether #! works in shell scripts... yes
# checking whether the C compiler supports -d2VolatileMetadata-... yes
# checking for flexdll sources... checking for flexlink... flexlink
# checking whether flexlink works... no
# configure: error: flexlink does not work



<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build ocaml-base-compiler 4.14.1
└─
┌─ The following changes have been performed (the rest was aborted)
│ * install base-bigarray         base
│ * install base-threads          base
│ * install base-unix             base
│ * install ocaml-options-vanilla 1
└─
# Run eval $(opam env --switch=idedev2) to update the current shell environment
Switch initialisation failed: clean up? ('n' will leave the switch partially installed) [y/n] y
@jonahbeckford
Copy link
Contributor

Just to remember … why can’t you use the supported “dkml init” command?

@jonahbeckford
Copy link
Contributor

The general answer for 4.14.1 is no, and specifically for ocaml-base-compiler is no. When 4.14.2 comes out, that will be supported … with extra Windows patches (some from 5.x like ocaml/ocaml#12364)

So I’m confused why you want to install on Windows without important Windows patches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants