Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Help with Opam and OCaml

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Help with Opam and OCaml


Chronological Thread 
  • From: Beta Ziliani <beta AT mpi-sws.org>
  • To: Coq Club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Help with Opam and OCaml
  • Date: Fri, 2 Oct 2015 09:03:47 -0300
  • Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=beta AT mpi-sws.org; spf=Pass smtp.mailfrom=beta AT mpi-sws.org; spf=None smtp.helo=postmaster AT hera.mpi-klsb.mpg.de
  • Ironport-phdr: 9a23:q8hJsRE6mlgpRT/wNl/snZ1GYnF86YWxBRYc798ds5kLTJ75ocmwAkXT6L1XgUPTWs2DsrQf27aQ7fyrBTVIyK3CmU5BWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYsExnyfTB4Ov7yUtaLyZ/ni6bsp9aPOk1hv3mUX/BbFF2OtwLft80b08NJC50a7V/3mEZOYPlc3mhyJFiezF7W78a0+4N/oWwL46pyv+YJa6jxfrw5QLpEF3xmdjltvIy4/SXEGCCI/zM3Vngc2k5DBBGA5xXnVL/wtDH7v6xzwn/JE9fxSOUeVCirp5VqTB7hjiZPYzQ07Gj/j9RxyblEu1SmvRMpkN2cW52cKPcrJvCVRtgdX2cUG58JDyE=

I should add that the minimal example is precisely the code that I wrote:

GEXTEND Pcoq.Gram
GLOBAL: myproof_instr;
  myproof_instr :
    [[ c=Pcoq.Constr.operconstr ; "." -> MyInstr.my_constr c ]];
END


With Ocaml installed in /usr/bin it fails complaining about myproof_instr not being defined, while in .opam's Ocaml it fails at the preprocessor level.

Thanks,
Beta


On Thu, Oct 1, 2015 at 5:16 PM, Beta Ziliani <beta AT mpi-sws.org> wrote:
Hi list,

I have the following issue that is driving me nuts. I have two Ubuntu boxes with practically the same setup. I have a plugin for Coq 8.5 beta 2. However, I can compile it in one machine but not on the other. In the machine where it works, I have OCaml installed in the system (as in /usr/bin), while on the other is in .opam.  The error in the second machine is:

File "src/myfile.ml4", line 92, characters 13-14:
Parse error: [global] or [entry] expected after uppercase identifier (in
  [gextend_body])
File "src/myfile.ml4", line 1:
Error: Error while running external preprocessor

That line is:
GEXTEND Pcoq.Gram
GLOBAL: myproof_instr;
  myproof_instr :
    [[ c=Pcoq.Constr.operconstr ; "." -> MyInstr.my_constr c ]];
END


When compiling Coq, the ./configure -local script outputs the text below, where XXX is replaced by specific locations for OCaml: /usr/bin (or lib) for one machine, and .opam in the other.

Any ideas?

Thanks!
Beta

---
You have GNU Make 3.81. Good!
You have OCaml 4.02.3. Good!
You have Camlp5 6.14. Good!
You have native-code compilation. Good!
No such directory '/home/beta/.opam/4.02.3/lib/ocaml/lablgtk2' (in OCaml library).
LablGtk2 not found:
=> no CoqIde will be built.

  Architecture                : Linux
  Coq VM bytecode link flags  : -dllib -lcoqrun -dllpath /home/beta/coq/coq8.5b2/coq-8.5beta2/kernel/byterun
  Other bytecode link flags   :
  OS dependent libraries      : -cclib -lunix
  OCaml version               : 4.02.3
  OCaml binaries in           : XXX
  OCaml library in            : XXX
  Camlp5 version              : 6.14
  Camlp5 binaries in          : /home/beta/.opam/4.02.3/bin
  Camlp5 library in           : /home/beta/.opam/4.02.3/lib/camlp5
  Native dynamic link support : true
  CoqIde                      : no
  Documentation               : None
  Web browser                 : firefox -remote "OpenURL(%s,new-tab)" || firefox %s &
  Coq web site                : http://coq.inria.fr/





Archive powered by MHonArc 2.6.18.

Top of Page