-
Notifications
You must be signed in to change notification settings - Fork 3
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
Build error #1
Comments
I am guessing the version of camlp5 you build did not install odyl_main.cmi / odyl_main.mli into /home/.../.opam/system/lib/camlp5 - you would need to either change tweak the install part of camlp5 build, or copy these two files our of the camlp5 build manually. |
Thanks for the response. That moved the build further along (I also needed to copy over odyl_main.cmx, pcaml.cmx and reloc.cmx) till I hit the following:
I don't understand the complaint about |
This is very weird - sounds like a clash in temporary file name... Is this error reproducible if you try building again? Does it still happen with non-parallel (-j1) build? |
The tmp file error was repeatable though each time with a different file name. However your suggestion of non-parallel build (-j1) worked and moved me past that hump. After copying over
|
I wonder if this is config related. Omake tried to probe for the browsers during the configuration phase but none was found (I am building under wsl). Maybe there is some feature that I need to turn off. |
I am pretty sure it's not about browsers. What version of ocaml and camlp5 are you using? MetaPRL is very sensitive to that - I believe Jason had updated things to work with 4.05 a couple of years ago, and it's quite likely it would only work with that particular version... |
I am on ocaml 4.05 and camlp5 7.06. I did have to add 7.06 to the config file (it topped out at 7.03 which I assumed was what was available back then). If you think the failure may be camlp5 related I can downgrade to camlp5 7.03 and retry. |
I tried 7.03 and there is actually regression:
I checked and Grammar.safe_extend is not in grammar.mli for version 7.03, but it is in the master on github. |
This is the stuff that Jason modified two years ago when he added OCaml 4.05 support - I guess, unless Jason is around to respond to this thread, you will have to figure out yourself which version of camlp5 might work here... |
But wait, where is |
Yes that is really weird. Somehow
Does something in the build process change the source code?! I am certainly incapable of this change. |
Yes, that looks like a bug in Jason's 4.05 change - the file is a generated file and needs to be removed from the repository, added to .gitignore, and added to the clean command in the corresponding OMakefile. |
I rechecked out the file so the changes are abandoned and now I am back to about the same place with a similar failure as in 7.06 (slightly further along at 3075 instead of 3025):
|
I do not know enough about camlp5 or Jason's ocaml 4.05 changes to help you further, sorry. |
I removed the infix.ml file and regenerated and it is identical to the one checked into the repo (by mistake). So at least I now know that I am using the same version of camlp5 (as I assume it is unlikely for the generated file to be the same otherwise). I also |
@ANogin Thanks a lot for your help! Do you know if the SVN version still builds with older version of ocaml? This project seems very ambitious but for now I am really just interested in some core ideas used here (the meta logic theory portion). So I would be happy to build a small fragment of it if possible just to see how well the encoded theories work. |
I have not tried it in years, but I would imagine if you had sufficiently old versions of the relevant dependencies, it should work as well as it used to... |
If you don't mind me ask: how well did it work? Why was the project abandoned (seems like a lot of effort was put into it)? I understand that main developers could have change in life circumstances but it seems there was not much interest in further development by others at Cornell either? Is nuprl also mostly dead? |
It worked pretty well. Then all major authors/contributors went to work for industry, and it was just left alone to die. OMake almost died as well, and was indeed left largely unmaintained for a number of years, but there were enough fans & users left to keep it alive. |
I figured that CamlP5 expects user to call The Nuprl 5 virtual machine image available from Cornell still works pretty well, despite the whole thing is so monstrous that requires an hour booting process to start proving something, so saving a vm snapshot for next use is recommended. The library shipped with the vm image it has many examples of non-trivial theories albeit it is not the latest development. |
A few months ago I got MetaPRL working with a reasonably recent OCaml / Camlp5, but there were a bunch of further fixes that were needed to make this all work. I will see if my employer will allow me to release them (but they do not like doing it and it might take a while :( ). |
After a day work my current progress on porting to OCaml 4.11 is The major obstacle is that CamlP5 8.00 has made significant amount of undocumented API changes since 7.12 (the latest documented version) that
That would be very helpful. fully loaded wishes and looking forward for the next release. |
The versions I got working are:
Going beyond those would likely require extra work. For camlp5, I also had to make a minor tweak to its own code - removing the "Plexer.dollar_for_antiquotation.val := False" from etc/pa_o.ml (could not figure out how to override this behavior without code change). |
thank you for the info. I decide to make a branch that uses CamlP5 7.12 since it has been updated to compile with OCaml 4.11, cherry pick some changes I made, and postponed porting to 8.00 until more examples are available. the antiquotation is related to the "transitional mode" to "strict mode" change of CamlP5, by now 7.12 and later version defaults to strict mode, and it can not be properly switched without recompiling camlp5 according to the manual. |
This is the change I made on owo-lang@866c5c0#diff-6716db66faa1b2d725649e375c023cd6R2974 I'm uncertain about the changes I made on line 2967 & 2972, the cause is camlp5 changes
with added option
Also there're still |
anyway, I proceeded with CamlP5 7.13 because some I'm sorta see why Now I get MetaPRL compile with OCaml 4.11 and CamlP5 7.13, with the hack above on CamlP5. https://github.com/owo-lang/metaprl/tree/camlp4-7.12 However I get give flag
I figured the issue is due to |
I guess in new versions of OCaml https://ocaml.org/meetings/ocaml/2013/proposals/formats-as-gadts.pdf The fix I found is to use For now the shell top level is working 🎉 |
Update: fixed in owo-lang@0abb3b5 |
I investigated a little with the |
I have the following build error:
It is probably configuration issue with OMake, but unfortunately I don't know OMake at all. camlp5 is installed and "-I" points to the correct directory.
The text was updated successfully, but these errors were encountered: