caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Viet Le <vietlq85@gmail.com>
To: OCaml Mailing List <caml-list@inria.fr>
Subject: [Caml-list] Ocamlfind can’t find lexer in default folder compiler-libs
Date: Thu, 8 Nov 2018 20:47:41 +0000	[thread overview]
Message-ID: <CAG_8+G5BiPAt6cZ8Xy4sSAorKM=m=roK6S5Z3Be23spqyigOYQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1627 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

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list https://inbox.ocaml.org/caml-list
Forum: https://discuss.ocaml.org/
Bug reports: http://caml.inria.fr/bin/caml-bugs

[-- Attachment #2: Type: text/html, Size: 6791 bytes --]

             reply	other threads:[~2018-11-08 20:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-08 20:47 Viet Le [this message]
2018-11-08 21:00 ` Nicolás Ojeda Bär
2018-11-08 21:58   ` Viet Le

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAG_8+G5BiPAt6cZ8Xy4sSAorKM=m=roK6S5Z3Be23spqyigOYQ@mail.gmail.com' \
    --to=vietlq85@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).