Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Using SerAPI in a plugin

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Using SerAPI in a plugin


Chronological Thread 
  • From: Talia Ringer <tringer AT cs.washington.edu>
  • To: coq-club AT inria.fr
  • Subject: Re: [Coq-Club] Using SerAPI in a plugin
  • Date: Tue, 7 Sep 2021 19:50:53 -0500
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=tringer AT cs.washington.edu; spf=Pass smtp.mailfrom=tringer AT cs.washington.edu; spf=None smtp.helo=postmaster AT mx5.cs.washington.edu
  • Ironport-hdrordr: A9a23:OBPhyqBVII+WF93lHel055DYdb4zR+YMi2TDtnoBMiC9F/bzqynApoV+6faZskd1ZJhko6HjBEDiexPhHPxOkO8s1N6ZNWGM1QeVxcNZnOjfKlbbalTDH4BmpN9dmmtFZ+HYPBxVic775U2fCNYvwN6O9eSNif3Fx3lgCSFGApsQiDuRxjz0LqS+fmh7OaY=
  • Ironport-phdr: A9a23:YfpTtB9WDfytHP9uWf+8ngc9DxPPW53KNwIYoqAql6hJOvz6uci4ZAqOvL4w0xfgZsby07p8ke3YsqTtCyQrwK2qlzQ8SqFKTAIPks4MngYtU4avAEz/K+P2PWRhRJwRHFBq8GumPkdLBc3we0PdomGo7T4VBx7zKRd5Kv76F4LMk8i7zeS/94DcbwhIhje2fK9/IgixoQjNrMcdnJFsKrw2yhvHo3tIf/pZyGZ1Ll+NnBjy+9m98od7/ytfp/wu+chAUb7nf6sjVrxXEC4mM2Eu68L1sxTIUBaC6WEdUmUSlRpIHhTF4RTnVZr/rif2quxw0zScMMbrT747RC6i4r9kRx/miigJNzA3/mLKhMJukK1WuwiuqwBlzoPOfI2ZKPhzc6XAdt0aX2pBWcNRWjRfDIyma4sPDvAONvtEoYn8oVsOogWxBROxD+7o1j9InH723as10+s/CwHLxxAvH8kUvHXattr1L6cSUeGzzKnH0TXDaPVW1S3j54fVbxAsuPeBVq9/fsTN00cgDR/FjkmOpoz/OTOYzvkBv3Sb4eRuSO6ij2AqpxxwrzWuyMohhYfHiIILx17L9Ch0xJo4KMG4RUNnbtOqHodduiKGO4Z0TM0vQGVltSc8x7Ybt5C7ey0Kx44mxx7Zc/GHfImI4g7jVOaMOjh0nm5qeLW6hxu07EOuyfX8W9Gp3FpUrSdJiMfAumwO2hDJ9MSLUPRw80i51TqRywze7vtILEM0mKbBNpIsw789moATvEnMGCL9hV/4g7WMdko+/+il8+Tnbavipp+bL4J0jw7/P6Q0lsOjGuQ0KAYPUHKA+eS81b3j+0L5QKlNjv0wiKXWro3VJdkDqq64BQ9azJoj5g6iAzu409kUh2cLIE5GdR6dkYTlIV7DLf/gAfe6mVuskTNrx/7cPr3mB5XANmTDkK3gfbZ75E5T1hAzwMtD6JJPEL0ALuj8WlTxtNzZCB85PBC0w+HhCNlnyIwRRH+PDreDMKzOqV+I+v4vI+6UaYAJvzb9MuEp6OLqjX8kglAQZrKp3JsSaHCgBPtqOUSZYXz2gtcAC2gGpAQ+TPa5wGGFBDVUfjO5W782zjA9EoOvS4nZFa63h7nU4C6/H5QeXGFABV2WWSP0bYSCVPoWQCmJZNBoiTwFU7e9TIln2B2z4lypg4F7J/bZr3VL/ano08J4srW7ffAa8CwpSc+GlX6EVGF1mGwUQDlw0axi8xQVIrir2rM+nPVDFd1V6O9OVEE3OYOOloSS7vj5QUTed8yJSVCpXtKgRzw9U4Bpq+I=

Thanks, with Dune though I can't even get my Coq plugin without SerAPI to load Constr, Environ, and other necessary modules. I have no idea what I'm supposed to depend on to get those.

On Tue, Sep 7, 2021 at 7:47 PM Lasse Blaauwbroek <lasse AT blaauwbroek.eu> wrote:

I have an example plugin that does exactly this here: https://github.com/LasseBlaauwbroek/serapi-example

I think I built this again 8.11 at the time, but I'm not sure (I didn't try to recompile the plugin before this email). Word of warning: Using SerAPI in a Coq plugin can be rather difficult due to its dependencies.

Lasse

On 08/09/2021 02:30, Talia Ringer wrote:
Hi all,

Have any of you gotten plugins that call out to SerAPI working, especially on Coq 8.9 (I am bound to 8.9 because of a dependency)? If so, I'd really love to see some example plugins. This is a major blocker for me and a student on a project.

I'm open to any build system at this point, but I haven't managed to get Dune working even without SerAPI---it gives me a bunch of errors failing to find Constr, Environ, and so on. The Dune tutorial didn't seem to address those errors. I don't know where to find the list of Coq libraries I can try to depend on from within a Dune project.

Without using Dune, using the normal _CoqProject and so on, I can get it to build if I build from source, which is already hacky. But then it fails to load:

File "./theories/Plib.v", line 1, characters 0-25:
Error:
while loading /home/talia/coq-plugin-lib/src/plib.cmxs:
error loading shared library: /home/talia/coq-plugin-lib/src/plib.cmxs: undefined symbol: camlPlib__Serapi_goals__anon_fn$5bcoq$2dserapi$2fserapi$2fserapi_goals$2eml$3a66$2c31$2d$2d47$5d_175_closure

Help with either of these paths would be strongly appreciated. 

Talia 



Archive powered by MHonArc 2.6.19+.

Top of Page