-
Notifications
You must be signed in to change notification settings - Fork 416
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 parse file, not adding version and locations information #4389
Comments
I'm really thankful for all the testing this experimental feature get. I'm just sorry to not have time before April to fix them. The segfaulting is especially bad, normally the worst case is an exception. Could you run gdb on the resulting binary in order to perhaps pinpoint where it segfault? |
It's definitely welcome :) It's better if we know about bugs than if we don't. |
I can definitely confirm that:
Unfortunately, the segfault seems a little light:
|
Also, interestingly, the binary works when installed via |
There is an open bug with site and opam install (which use the |
I'm afraid I still do:
The binary works when installed with Basically, still the same issue here. Thanks for checking in! |
Hi, I exactly have the same issue here with EasyCrypt (but the segfault). With dune version
Looking at
The file seems well-formed, but the value for |
Ok, the fix seems pretty straightforward. I'll create a PR s.t. it can be discussed. Moreover, I find weird that the ordering of pairs in |
Thanks a lot for lokking into it. Do you understand why a segfault occurs? |
No. This might be a totally unrelated issue. In my use case, I do not have a segfault. |
Signed-off-by: Pierre-Yves Strub <[email protected]>
Signed-off-by: François Bobot <[email protected]>
- dune-site should replace paths in "sections", not "sites" - paths' substitution should be done in all cases (not only when a version is added to dune-package) fix #4389 Signed-off-by: Pierre-Yves Strub <[email protected]>
So, I think this issue can be reopened. I have users on Mac that are experiencing their binary being killed by the system (only the promoted binary, not the one in If the promoted binary is signed again with As a side question, why |
It does this for updating the information about ocamlpath, sites location. The binaries in _build can be installed or promoted, when installed the location are the one of the install path, when promoted the one of Do you really need promotion? Does a script that does
I would be happy to remove the rewriting on the fly, but the other solutions have also major drawbacks. Discussing alternative is interesting, still in the meantime codesigning the promoted binaries seems a simple fix. Thank you a lot for raising this problem of codesigning! But I don't know if this issue is related to the one at the source of this issue. |
- dune-site should replace paths in "sections", not "sites" - paths' substitution should be done in all cases (not only when a version is added to dune-package) fix ocaml#4389 Signed-off-by: Pierre-Yves Strub <[email protected]>
- dune-site should replace paths in "sections", not "sites" - paths' substitution should be done in all cases (not only when a version is added to dune-package) fix ocaml#4389 Signed-off-by: Pierre-Yves Strub <[email protected]>
Signed-off-by: Pierre-Yves Strub <[email protected]>
Signed-off-by: François Bobot <[email protected]>
- dune-site should replace paths in "sections", not "sites" - paths' substitution should be done in all cases (not only when a version is added to dune-package) fix ocaml#4389 Signed-off-by: Pierre-Yves Strub <[email protected]>
Signed-off-by: Pierre-Yves Strub <[email protected]>
Signed-off-by: François Bobot <[email protected]>
- dune-site should replace paths in "sections", not "sites" - paths' substitution should be done in all cases (not only when a version is added to dune-package) fix #4389 Signed-off-by: Pierre-Yves Strub <[email protected]>
CHANGES: - Fix missing -linkall flag when linking library dune-sites.plugin ( ocaml/dune#4348, @Kakadu, @bobot, reported by @Kakadu) - No longer reference deprecated Toploop functions when using dune files in OCaml syntax. (ocaml/dune#4834, fixes ocaml/dune#4830, @nojb) - Use the stag format API to be compatible with OCaml 5.0 (ocaml/dune#5351, @emillon). - Fix post-processing of dune-package (fix ocaml/dune#4389, @strub)
Sorry for the avalanche of bug reports y'all, I hope that they are useful..
This one seems like a bug, at least it looks like I'm doing everything as documented.
I'm using the new
sites
feature to install our local library files:dune-project
:libs/dune
:When installing, I see this error:
The content of
dune-package
is automatically generated seems okay:dune-package
:The installed binary segfaults, I believe because it cannot find the location information at runtime.
The text was updated successfully, but these errors were encountered: