* [Caml-list] Ocamlfind can’t find lexer in default folder compiler-libs
@ 2018-11-08 20:47 Viet Le
2018-11-08 21:00 ` Nicolás Ojeda Bär
0 siblings, 1 reply; 3+ messages in thread
From: Viet Le @ 2018-11-08 20:47 UTC (permalink / raw)
To: OCaml Mailing List
[-- Attachment #1: Type: text/plain, Size: 1396 bytes --]
Hi all, I’m trying to revive and modernise the project iocamljs by Andrew
Ray. Here’s my fork branch:
https://github.com/vietlq/iocamljs/tree/scratch/modernise-build
I was able to compile initially but somehow it stopped compiling. The issue
is ocamlfind can’t find lexer in default folder compiler-libs. I’m using
macos Mojavee and OCaml 4.06.1.
The steps to reproduce:
git clone https://github.com/vietlq/iocamljs.gitcd iocamljs
git fetch --all
git checkout scratch/modernise-build
make clean full
The error logs:
rm -f *.cmis.js
rm -f *.cm[ioa] iocaml_full.byte iocaml.byte iocaml.js
rm -fr *~
ocamlfind ocamlc -c exec.mli
ocamlfind ocamlc -package lexer -package js_of_ocaml -package js_of_ocaml-ppx \
-package str,dynlink,js_of_ocaml,js_of_ocaml.compiler,js_of_ocaml.toplevel \
-I /Users/vietlq/.opam/4.06.1/lib/ocaml/compiler-libs \
exec.ml
ocamlfind: Package `lexer' not found
make: *** [exec.cmo] Error 2
I actually have lexer files by default:
$ ls -ltra $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/*lexer*
$HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmi
$HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmt
$HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmti
$HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.mli
$HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmx
Any help is appreciated.
--
Kind regards,
Viet
[-- Attachment #2: Type: text/html, Size: 6791 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Ocamlfind can’t find lexer in default folder compiler-libs
2018-11-08 20:47 [Caml-list] Ocamlfind can’t find lexer in default folder compiler-libs Viet Le
@ 2018-11-08 21:00 ` Nicolás Ojeda Bär
2018-11-08 21:58 ` Viet Le
0 siblings, 1 reply; 3+ messages in thread
From: Nicolás Ojeda Bär @ 2018-11-08 21:00 UTC (permalink / raw)
To: Viet Le; +Cc: OCaml Mailing List
Hi Viet,
Probably you should use `-package compiler-libs.common` instead of
`-package lexer` (and if you do this you should not need to explicitly
pass the path to the compiler-libs directory with `-I`).
Hope it helps!
Best wishes,
Nicolás
On Thu, Nov 8, 2018 at 9:48 PM Viet Le <vietlq85@gmail.com> wrote:
>
> Hi all, I’m trying to revive and modernise the project iocamljs by Andrew Ray. Here’s my fork branch: https://github.com/vietlq/iocamljs/tree/scratch/modernise-build
>
> I was able to compile initially but somehow it stopped compiling. The issue is ocamlfind can’t find lexer in default folder compiler-libs. I’m using macos Mojavee and OCaml 4.06.1.
>
> The steps to reproduce:
>
> git clone https://github.com/vietlq/iocamljs.git
> cd iocamljs
> git fetch --all
> git checkout scratch/modernise-build
>
> make clean full
>
> The error logs:
>
> rm -f *.cmis.js
> rm -f *.cm[ioa] iocaml_full.byte iocaml.byte iocaml.js
> rm -fr *~
> ocamlfind ocamlc -c exec.mli
> ocamlfind ocamlc -package lexer -package js_of_ocaml -package js_of_ocaml-ppx \
> -package str,dynlink,js_of_ocaml,js_of_ocaml.compiler,js_of_ocaml.toplevel \
> -I /Users/vietlq/.opam/4.06.1/lib/ocaml/compiler-libs \
> exec.ml
> ocamlfind: Package `lexer' not found
> make: *** [exec.cmo] Error 2
>
> I actually have lexer files by default:
>
> $ ls -ltra $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/*lexer*
>
> $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmi
> $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmt
> $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmti
> $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.mli
> $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmx
>
> Any help is appreciated.
>
> --
> Kind regards,
> Viet
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Caml-list] Ocamlfind can’t find lexer in default folder compiler-libs
2018-11-08 21:00 ` Nicolás Ojeda Bär
@ 2018-11-08 21:58 ` Viet Le
0 siblings, 0 replies; 3+ messages in thread
From: Viet Le @ 2018-11-08 21:58 UTC (permalink / raw)
To: Nicolás Ojeda Bär; +Cc: OCaml Mailing List
[-- Attachment #1: Type: text/plain, Size: 2303 bytes --]
Hi Nicolás,
Thanks for your reply. I tried compiler-libs.common and compiler-libs and
got another issue:
Error: Required module `Lexer' is unavailable
So it means both compiler-libs and compiler-libs.commons do not contain the
module Lexer.
Thanks,
Viet
On Thu, 8 Nov 2018 at 21:00, Nicolás Ojeda Bär <nicolas.ojeda.bar@lexifi.com>
wrote:
> Hi Viet,
>
> Probably you should use `-package compiler-libs.common` instead of
> `-package lexer` (and if you do this you should not need to explicitly
> pass the path to the compiler-libs directory with `-I`).
>
> Hope it helps!
>
> Best wishes,
> Nicolás
> On Thu, Nov 8, 2018 at 9:48 PM Viet Le <vietlq85@gmail.com> wrote:
> >
> > Hi all, I’m trying to revive and modernise the project iocamljs by
> Andrew Ray. Here’s my fork branch:
> https://github.com/vietlq/iocamljs/tree/scratch/modernise-build
> >
> > I was able to compile initially but somehow it stopped compiling. The
> issue is ocamlfind can’t find lexer in default folder compiler-libs. I’m
> using macos Mojavee and OCaml 4.06.1.
> >
> > The steps to reproduce:
> >
> > git clone https://github.com/vietlq/iocamljs.git
> > cd iocamljs
> > git fetch --all
> > git checkout scratch/modernise-build
> >
> > make clean full
> >
> > The error logs:
> >
> > rm -f *.cmis.js
> > rm -f *.cm[ioa] iocaml_full.byte iocaml.byte iocaml.js
> > rm -fr *~
> > ocamlfind ocamlc -c exec.mli
> > ocamlfind ocamlc -package lexer -package js_of_ocaml -package
> js_of_ocaml-ppx \
> > -package
> str,dynlink,js_of_ocaml,js_of_ocaml.compiler,js_of_ocaml.toplevel \
> > -I /Users/vietlq/.opam/4.06.1/lib/ocaml/compiler-libs \
> > exec.ml
> > ocamlfind: Package `lexer' not found
> > make: *** [exec.cmo] Error 2
> >
> > I actually have lexer files by default:
> >
> > $ ls -ltra $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/*lexer*
> >
> > $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmi
> > $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmt
> > $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmti
> > $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.mli
> > $HOME/.opam/4.06.1/lib/ocaml/compiler-libs/lexer.cmx
> >
> > Any help is appreciated.
> >
> > --
> > Kind regards,
> > Viet
>
--
Kind regards,
Viet
[-- Attachment #2: Type: text/html, Size: 3448 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-11-08 21:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-08 20:47 [Caml-list] Ocamlfind can’t find lexer in default folder compiler-libs Viet Le
2018-11-08 21:00 ` Nicolás Ojeda Bär
2018-11-08 21:58 ` Viet Le
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox