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
camlp4.4.07+1 might need to be rebuilt for ocaml 4.07.1 #39399
Comments
We can rebuild, but what is worrying is that the |
@fxcoudert I program in Coq, not really in OCaml, so I'm not sure, but building ulex is at least relatively fast, if you can rely on opam for those tests. But I fear you can't? Instead, current tests just run the camlp4 binary, which is reasonable but cannot catch problems linking new binaries. |
If you could make a pull request that adds "building ulex" as a test maybe we can work from there? |
@SMillerDev Thanks. I realized that using |
And bump revision to force bottles being rebuilt for ocaml 4.07.1.
Now fixed, thanks again @Blaisorblade |
TLDR; Building OCaml software depending on
camlp4
fails, but succeeds after rebuildingcamlp4
from source. The failure says thatcamlp4
is built with an old OCaml version, and it was built before OCaml4.07.1
was released. After rebuilding, the file-format version ofcamlp4
binaries is higher, consistent with the theory thatcamlp4
was built with an older compiler. Last, camlp4's formula, including the bottle hashes is 5 months older than ocaml's formula and bottle hashes.So
camlp4
's bottle might need to be rebuilt, quite possibly after a version bump.brew install
(orupgrade
,reinstall
) a single, Homebrew/homebrew-core formula (not cask) on macOS? If it's a generalbrew
problem please file this issue at Homebrew/brew: https://github.com/Homebrew/brew/issues/new/choose.brew update
and can still reproduce the problem?brew doctor
, fixed all issues and can still reproduce the problem?brew gist-logs <formula>
(where<formula>
is the name of the formula that failed) and included the output link?The build that failed was not from a formula, but here are logs for
camlp4
: https://gist.github.com/Blaisorblade/4a288d27d133761fd5e47de0284d6ad6.brew gist-logs
didn't work: ranbrew config
andbrew doctor
and included their output with your issue?What I did.
opam install beluga
told me to installcamlp4
via the system package manager, since I had installedocaml
that way, so I installedcamlp4
via brew. But then building beluga failed when buildingulex
(a common OCaml package), and it should have succeeded instead. Rebuildingcamlp4
fixed the error.What happened:
opam install beluga
failed.What should have happened:
opam install beluga
succeedsStep-by-step reproduction instructions (by running
brew install
commands):brew install ocaml opam camlp4
opam install beluga
fails; (installingulex
alone should have the same problem).brew reinstall -s camlp4
opam install beluga
succeeds.Full command output:
The text was updated successfully, but these errors were encountered: