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

error when install core #62

Open
useada opened this issue Aug 21, 2023 · 5 comments
Open

error when install core #62

useada opened this issue Aug 21, 2023 · 5 comments

Comments

@useada
Copy link

useada commented Aug 21, 2023


(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
Copy link
Contributor

jonahbeckford commented Aug 21, 2023 via email

@jonahbeckford
Copy link
Contributor

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

@useada
Copy link
Author

useada commented Aug 22, 2023

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
Copy link
Contributor

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
Copy link
Author

useada commented Aug 22, 2023

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!!

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