diskuv / dkml-installer-ocaml

The Windows-friendly distribution of OCaml
Apache License 2.0
62 stars 2 forks source link

error when install core #62

Open useada opened 1 year ago

useada commented 1 year ago

(base) PS D:\project\ocaml\pythonlib> opam install core
[NOTE] External dependency handling not supported for OS family 'windows'.
       You can disable this check using 'opam option --global depext=false'
The following actions will be performed:
=== install 1 package
  ✶ core v0.16.1
[NOTE] External dependency handling not supported for OS family 'windows'.
       You can disable this check using 'opam option --global depext=false'

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
▼ retrieved core.v0.16.1  (cached)
[ERROR] The compilation of core.v0.16.1 failed at "dune build -p core -j 11".

#=== ERROR while compiling core.v0.16.1 =======================================#
# context     2.2.0~alpha0~20221228 | win32/x86_64 | conf-withdkml.2 ocaml-system.4.14.0 | https://opam.ocaml.org#33168d94
# path        C:\Users\usead\AppData\Local\opam\playground\.opam-switch\build\core.v0.16.1
# command     C:\Users\usead\AppData\Local\Programs\DKMLNA~1\bin\WITH-D~1.EXE dune build -p core -j 11
# exit-code   1
# env-file    C:\Users\usead\AppData\Local\opam\log\core-7116-d12f4a.env
# output-file C:\Users\usead\AppData\Local\opam\log\core-7116-d12f4a.out
### output ###
# File "core/src/dune", line 1, characters 0-83:
# 1 | (rule (targets config.h) (deps)
# 2 |  (action (bash "cp %{lib:jst-config:config.h} .")))
# (cd _build/default/core/src && C:\Users\usead\AppData\Local\Programs\DKMLNA~1\tools\MSYS2\usr\bin\bash.exe -e -u -o pipefail -c "cp C:\Users\usead\AppData\Local\opam\playground\lib\jst-config\config.h .")
# cp: cannot stat 'C:UsersuseadAppDataLocalopamplaygroundlibjst-configconfig.h': No such file or directory
# (cd _build/default/heap_block && C:\DiskuvOCaml\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\cl.exe -nologo -O2 -Gy- -MD -nologo -D_CRT_SECURE_NO_DEPRECATE -nologo -O2 -Gy- -MD -nologo -I C:/Users/usead/AppData/Local/Programs/DKMLNA~1/lib/ocaml -I C:\Users\usead\AppData\Local\opam\playground\lib\base -I C:\Users\usead\AppData\Local\opam\playground\lib\base\base_internalhash_types -I C[...]
# heap_block_stubs.c

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
┌─ The following actions failed
│ λ build core v0.16.1
└─
╶─ No changes have been performed
# Run eval $(opam env) to update the current shell environment
jonahbeckford commented 1 year ago

I don’t have enough context from your report. Somehow, I think, that “diskuv-opam-repository” was removed from that switch?

Your switch should be using https://github.com/diskuv/diskuv-opam-repository/tree/main/packages/core/core.v0.16.1%2Bmsvc%2Br1

The homepage https://github.com/diskuv/diskuv-opam-repository shows the command to re-add it: opam repository add diskuv-2.0.2 --rank 1 'git+https://github.com/diskuv/diskuv-opam-repository.git#2.0.2'

Then try your opam install again

(Sent from mobile)

Get Outlook for iOShttps://aka.ms/o0ukef


From: useada @.> Sent: Monday, August 21, 2023 4:56:43 AM To: diskuv/dkml-installer-ocaml @.> Cc: Subscribed @.***> Subject: [diskuv/dkml-installer-ocaml] error when install core (Issue #62)

(base) PS D:\project\ocaml\pythonlib> opam install core [NOTE] External dependency handling not supported for OS family 'windows'. You can disable this check using 'opam option --global depext=false' The following actions will be performed: === install 1 package ✶ core v0.16.1 [NOTE] External dependency handling not supported for OS family 'windows'. You can disable this check using 'opam option --global depext=false'

<><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><> ▼ retrieved core.v0.16.1 (cached) [ERROR] The compilation of core.v0.16.1 failed at "dune build -p core -j 11".

=== ERROR while compiling core.v0.16.1 =======================================

context 2.2.0~alpha0~20221228 | win32/x86_64 | conf-withdkml.2 ocaml-system.4.14.0 | https://opam.ocaml.org#33168d94

path C:\Users\usead\AppData\Local\opam\playground.opam-switch\build\core.v0.16.1

command C:\Users\usead\AppData\Local\Programs\DKMLNA~1\bin\WITH-D~1.EXE dune build -p core -j 11

exit-code 1

env-file C:\Users\usead\AppData\Local\opam\log\core-7116-d12f4a.env

output-file C:\Users\usead\AppData\Local\opam\log\core-7116-d12f4a.out

output

File "core/src/dune", line 1, characters 0-83:

1 | (rule (targets config.h) (deps)

2 | (action (bash "cp %{lib:jst-config:config.h} .")))

(cd _build/default/core/src && C:\Users\usead\AppData\Local\Programs\DKMLNA~1\tools\MSYS2\usr\bin\bash.exe -e -u -o pipefail -c "cp C:\Users\usead\AppData\Local\opam\playground\lib\jst-config\config.h .")

cp: cannot stat 'C:UsersuseadAppDataLocalopamplaygroundlibjst-configconfig.h': No such file or directory

(cd _build/default/heap_block && C:\DiskuvOCaml\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX64\x64\cl.exe -nologo -O2 -Gy- -MD -nologo -D_CRT_SECURE_NO_DEPRECATE -nologo -O2 -Gy- -MD -nologo -I C:/Users/usead/AppData/Local/Programs/DKMLNA~1/lib/ocaml -I C:\Users\usead\AppData\Local\opam\playground\lib\base -I C:\Users\usead\AppData\Local\opam\playground\lib\base\base_internalhash_types -I C[...]

heap_block_stubs.c

<><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><> ┌─ The following actions failed │ λ build core v0.16.1 └─ ╶─ No changes have been performed

Run eval $(opam env) to update the current shell environment

— Reply to this email directly, view it on GitHubhttps://github.com/diskuv/dkml-installer-ocaml/issues/62, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AREG4PKQK6F44MI3DIM5FPLXWNEHXANCNFSM6AAAAAA3YIRMDE. You are receiving this because you are subscribed to this thread.Message ID: @.***>

jonahbeckford commented 1 year ago

Also, can you run opam repository and paste the output here? Thanks!

useada commented 1 year ago

Also, can you run opam repository and paste the output here? Thanks!

I tried to implement your suggestion, but still reported the same error

The homepage https://github.com/diskuv/diskuv-opam-repository shows the command to re-add it: opam repository add diskuv-2.0.2 --rank 1 'git+https://github.com/diskuv/diskuv-opam-repository.git#2.0.2'

This is what you want:

[NOTE] These are the repositories in use by the current switch. Use '--all' to see all configured repositories.

<><> Repository configuration for switch playground <><><><><><><><><><><><><><>
 1 diskuv-2.0.2 git+https://github.com/diskuv/diskuv-opam-repository.git#2.0.2
 2 default      https://opam.ocaml.org

Thanks!!

jonahbeckford commented 1 year ago

Okay, there was an issue with the tag on 2.0.2.

Do the following to get the update:

opam update diskuv-2.0.2

and then redo:

opam install --switch playground core

(In my test I had to do the last command twice)

useada commented 1 year ago

Okay, there was an issue with the tag on 2.0.2.

Do the following to get the update:

opam update diskuv-2.0.2

and then redo:

opam install --switch playground core

(In my test I had to do the last command twice)

Greate, It works!!

Thanks Thanks!!