From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by c5ff346549e7 (Postfix) with ESMTP id 1D52E5D4 for ; Thu, 8 Nov 2018 21:59:13 +0000 (UTC) X-IronPort-AV: E=Sophos;i="5.54,480,1534802400"; d="scan'208,217";a="354836516" Received: from sympa.inria.fr ([193.51.193.213]) by mail2-relais-roc.national.inria.fr with ESMTP; 08 Nov 2018 22:59:11 +0100 Received: by sympa.inria.fr (Postfix, from userid 20132) id 199E982535; Thu, 8 Nov 2018 22:59:11 +0100 (CET) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sympa.inria.fr (Postfix) with ESMTPS id C50BB824E4 for ; Thu, 8 Nov 2018 22:59:04 +0100 (CET) Authentication-Results: mail3-smtp-sop.national.inria.fr; spf=None smtp.pra=vietlq85@gmail.com; spf=Pass smtp.mailfrom=vietlq85@gmail.com; spf=None smtp.helo=postmaster@mail-ua1-f48.google.com IronPort-PHdr: =?us-ascii?q?9a23=3AoHRPJxH3hVWMVzbx9io2Bp1GYnF86YWxBRYc798d?= =?us-ascii?q?s5kLTJ78rsqwAkXT6L1XgUPTWs2DsrQY07WQ6/iocFdDyK7JiGoFfp1IWk1Nou?= =?us-ascii?q?QttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZr?= =?us-ascii?q?KeTpAI7SiNm82/yv95HJbAhEmDiwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+?= =?us-ascii?q?NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjD?= =?us-ascii?q?QhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlC?= =?us-ascii?q?YHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU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filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0C2AQBasORbhzDeVdFkHQEBBQEHBQGBZ?= =?us-ascii?q?YJqTzMng3iBHYJekBmCDYhxiG2HTg0jhEkCgxgaBwEENBYBAwEBAgEBAQEBEwE?= =?us-ascii?q?BAQgNCQgpIwyCNiQBgl8BAQEBAgEjHQEbHQEDAQsGBQsNKgICIQEBEQEFARwGE?= =?us-ascii?q?4MhAYFoAQMNCA+cfTyLDYERBQEXgncFhEAKGScNWlBnAgYSi2eCF4MlfoJWRQK?= =?us-ascii?q?CDoJXglcCgSoBAZNsigItAQYCAQ2BQQVIhFeGeYMrGIIjjkmNIIEEiT0PIYE5g?= =?us-ascii?q?XZwUDFtgU4JghIagiSBL4QghjJCMAGNVAEB?= X-IPAS-Result: =?us-ascii?q?A0C2AQBasORbhzDeVdFkHQEBBQEHBQGBZYJqTzMng3iBHYJ?= =?us-ascii?q?ekBmCDYhxiG2HTg0jhEkCgxgaBwEENBYBAwEBAgEBAQEBEwEBAQgNCQgpIwyCN?= =?us-ascii?q?iQBgl8BAQEBAgEjHQEbHQEDAQsGBQsNKgICIQEBEQEFARwGE4MhAYFoAQMNCA+?= =?us-ascii?q?cfTyLDYERBQEXgncFhEAKGScNWlBnAgYSi2eCF4MlfoJWRQKCDoJXglcCgSoBA?= =?us-ascii?q?ZNsigItAQYCAQ2BQQVIhFeGeYMrGIIjjkmNIIEEiT0PIYE5gXZwUDFtgU4JghI?= =?us-ascii?q?agiSBL4QghjJCMAGNVAEB?= X-IronPort-AV: E=Sophos;i="5.54,480,1534802400"; d="scan'208,217";a="284852671" Received: from mail-ua1-f48.google.com ([209.85.222.48]) by mail3-smtp-sop.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 08 Nov 2018 22:59:03 +0100 Received: by mail-ua1-f48.google.com with SMTP id v24so7784078uap.13 for ; Thu, 08 Nov 2018 13:59:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hlK4HeasPW1Kj3mg0zWe4tmPKoTIfwv+/RMq29iPxuw=; b=sO/HR8KY22/iwcrwsA61MyvIhRJzcHcFcBzk3fYiwXkX4vYgdrkWGha5WuRQx3G++P 4LrZIYF/PVsxr1escszs/CzPsqrQcjVAE69CCLG4utxSw7FvzlmNfVjuX7719ReZ16pg QqqQjY5Id+a4mIJWYPFs0epi0S5+lvLiyhrnXmBh5nxcFx2sTVgRv1palxhl0b3jqGy2 9+4jW1v4sVqDYjcv2tml9DCmYI7SCe0PMGcm4fI8tuP3NpUfuS17OHg6e3uwWeX3YM+f EurqqhY/2FbtIPg5KChK2AM7jFSjk5qWtXeKmtFQpVFx6r0qxzuPEQ8OzIs5k8G8hxXO JFYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hlK4HeasPW1Kj3mg0zWe4tmPKoTIfwv+/RMq29iPxuw=; b=I3yDOlHT4UCsA+U3daf84IPxKXma1nTF7SgybaNvX3xHRep34/vFw99rWHrv/xJp50 9HHdmlBhUeJld6carmMfIniyLpDnK6cbWjn2KHr/k1r/GHMQphovAk7aecXhIrRtK7Hc lhHPjF3lYaDMbWmhPKQCP1zk0H36KoRbFmchgOsKyUtbFVt5avDILvgN4eq3rphWDHE2 FvE51J+P0MKa+B3Obv/SJYLzDoXdPGZpkrFKWWK54QI7ucyLOB/mc4TkQsQBNBi5iYO5 9z5CgA79NyHZkN+cA7GO9BabODLFDSRmLirP+/Zc+4OqAOLwrx0yiHWJjhwEWY60kMJR 1fGw== X-Gm-Message-State: AGRZ1gLcbr0Bntsk92pNiX3icciYp/GlS53UTVyMGAQ90SjVi/st7lo3 /unHSSwYP/w1zRuZdqBALfbLWT6egnEtXIEb1D1f+zCG X-Google-Smtp-Source: AJdET5e5X1LZL2Jz4gs9i21QFd63KyCsZPGfN7NcJurnAswF4Oh6uZs3ET9tYlDv3H/jsl7imjP5NIbEMqAloAbc9gM= X-Received: by 2002:ab0:162e:: with SMTP id k43mr2824154uae.77.1541714341816; Thu, 08 Nov 2018 13:59:01 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Viet Le Date: Thu, 8 Nov 2018 21:58:50 +0000 Message-ID: To: =?UTF-8?Q?Nicol=C3=A1s_Ojeda_B=C3=A4r?= Cc: OCaml Mailing List Content-Type: multipart/alternative; boundary="000000000000b06e87057a2e571f" Subject: Re: [Caml-list] =?UTF-8?Q?Ocamlfind_can=E2=80=99t_find_lexer_in_d?= =?UTF-8?Q?efault_folder_compiler-libs?= Reply-To: Viet Le X-Loop: caml-list@inria.fr X-Sequence: 17129 Errors-to: caml-list-owner@inria.fr Precedence: list Precedence: bulk Sender: caml-list-request@inria.fr X-no-archive: yes List-Id: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --000000000000b06e87057a2e571f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Nicol=C3=A1s, 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=C3=A1s Ojeda B=C3=A4r 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=C3=A1s > On Thu, Nov 8, 2018 at 9:48 PM Viet Le wrote: > > > > Hi all, I=E2=80=99m trying to revive and modernise the project iocamljs= by > Andrew Ray. Here=E2=80=99s 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=E2=80=99t find lexer in default folder compiler-li= bs. I=E2=80=99m > 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 > --=20 Kind regards, Viet --=20 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= --000000000000b06e87057a2e571f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi=C2=A0Nicol=C3=A1s,

Thanks = for your reply. I tried compiler-libs.common and compiler-libs=C2=A0and got= another issue:

Error: Required module `Lexer'= is unavailable

So it means both compiler-libs= and=C2=A0compiler-libs.commons do not contain the module Lexer.
=
Thanks,
Viet

On Thu, 8 Nov 2018 at 2= 1:00, Nicol=C3=A1s Ojeda B=C3=A4r <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=C3=A1s
On Thu, Nov 8, 2018 at 9:48 PM Viet Le <vietlq85@gmail.com> wrote:
>
> Hi all, I=E2=80=99m trying to revive and modernise the project iocamlj= s by Andrew Ray. Here=E2=80=99s 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=E2=80=99t find lexer in default folder compiler-libs= . I=E2=80=99m 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_oc= aml-ppx \
> -package str,dynlink,js_of_ocaml,js_of_ocaml.compiler,js_of_ocaml.topl= evel \
> -I /Users/vietlq/.opam/4.06.1/lib/ocaml/compiler-libs \
> exec.m= l
> 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
--000000000000b06e87057a2e571f--