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

[3.0 opam failures] This is not a regular file (S_DIR) #5264

Closed
voodoos opened this issue Dec 2, 2021 · 1 comment
Closed

[3.0 opam failures] This is not a regular file (S_DIR) #5264

voodoos opened this issue Dec 2, 2021 · 1 comment

Comments

@voodoos
Copy link
Collaborator

voodoos commented Dec 2, 2021

Error log from posix-socket.2.0.0:

#=== ERROR while compiling posix-socket.2.0.0 =================================#
# context              2.1.1 | linux/x86_64 | ocaml-base-compiler.4.12.1 | file:///home/opam/opam-repository
# path                 ~/.opam/4.12+dune3/.opam-switch/build/posix-socket.2.0.0
# command              ~/.opam/opam-init/hooks/sandbox.sh build dune build -p posix-socket -j 71 @install
# exit-code            1
# env-file             ~/.opam/log/posix-socket-19-dacd78.env
# output-file          ~/.opam/log/posix-socket-19-dacd78.out
### output ###
# File "posix-socket/src/generator/dune", line 16, characters 0-190:
# 16 | (rule
# 17 |  (targets gen_types_c)
# 18 |  (deps
# 19 |   (:c_code ./gen_types.c))
# 20 |  (action
# 21 |   (run %{ocaml-config:c_compiler} -I %{lib:ctypes:} -I
# 22 |     %{ocaml-config:standard_library} -o %{targets} %{c_code})))
# Error: File unavailable: /home/opam/.opam/4.12+dune3/lib/ctypes
# This is not a regular file (S_DIR)

Impacted packages:

Full report.

Parent issue: #5257

@voodoos voodoos added this to the 3.0.0 milestone Dec 2, 2021
@ghost
Copy link

ghost commented Dec 8, 2021

There are quite a few failures here and they all follow the same pattern: %{lib:ctypes:}. So let's (re-)add support for %{lib:<name>:} in lang dune < 2.0. No need to do it for all %{lib:<name>:<dir>} in general as that's more complicated and there doesn't seem to be any use case for it.

In lang dune >= 3.0, the recommendation is to switch to the ctypes support.

@ghost ghost added the requires-dune-change label Dec 8, 2021
@ghost ghost self-assigned this Dec 8, 2021
ghost pushed a commit that referenced this issue Dec 8, 2021
Signed-off-by: Jeremie Dimino <jeremie@dimino.org>
@ghost ghost closed this as completed in 2418f62 Dec 8, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant