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

Failed to install ocamlbuild and ocaml-lsp-server on Windows #26063

Closed
Seng-Jik opened this issue Jun 12, 2024 · 4 comments
Closed

Failed to install ocamlbuild and ocaml-lsp-server on Windows #26063

Seng-Jik opened this issue Jun 12, 2024 · 4 comments

Comments

@Seng-Jik
Copy link

Failed to install ocamlbuild and ocaml-lsp-server.

Env: Windows PowerShell / MSYS64 MINGW64

#=== ERROR while compiling ocamlbuild.0.14.2+win ==============================#
# context     2.2.0~beta3 | win32/x86_64 | ocaml.4.14.2 | git+https://github.com/dra27/opam-repository.git#windows-initial
# path        C:\Users\85397\AppData\Local\opam\default\.opam-switch\build\ocamlbuild.0.14.2+win
# command     C:\msys64\usr\bin\make.exe all
# exit-code   2
# env-file    C:\Users\85397\AppData\Local\opam\log\ocamlbuild-1716-a6f06c.env
# output-file C:\Users\85397\AppData\Local\opam\log\ocamlbuild-1716-a6f06c.out
### output ###
# [...]
# ) > src/ocamlbuild_config.ml
# make[1]: 离开目录“/c/Users/85397/AppData/Local/opam/default/.opam-switch/build/ocamlbuild.0.14.2+win”
# ocamlc.opt -w +L -w +R -w +Z -I src -I plugin-lib -I bin -I +unix -safe-string -bin-annot -strict-sequence -c src/ocamlbuild_config.ml
# File "src/ocamlbuild_config.ml", line 3, characters 16-18:
# 3 | let bindir = "C:\Users\85397\AppData\Local\opam\default\bin"
#                     ^^
# Warning 14 [illegal-backslash]: illegal backslash escape in string.
# File "src/ocamlbuild_config.ml", line 3, characters 22-26:
# 3 | let bindir = "C:\Users\85397\AppData\Local\opam\default\bin"
#                           ^^^^
# Error: Illegal backslash escape in string or character (\853): 853 is outside the range of legal characters (0-255).
# make: *** [Makefile:422:src/ocamlbuild_config.cmo] 错误 2
@mseri
Copy link
Member

mseri commented Jun 12, 2024

Ping @hhugo

@hhugo
Copy link
Contributor

hhugo commented Jun 12, 2024

Probably fixed by ocaml/ocamlbuild#329

@hhugo
Copy link
Contributor

hhugo commented Jun 24, 2024

@Seng-Jik, would you mind testing opam pin add ocamlbuild --dev ?

@Seng-Jik
Copy link
Author

@Seng-Jik, would you mind testing opam pin add ocamlbuild --dev ?

Ok, After I execute this command, I installed ocamlbuild successfully, and everything is worked.

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

No branches or pull requests

3 participants