caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] ocaml-top on 4.03.0 ?
@ 2016-05-11 23:19 Andrew Shi-hwa Chen
  2016-05-12  6:31 ` vrotaru.md
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Shi-hwa Chen @ 2016-05-11 23:19 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 2362 bytes --]

I'm new to OCaml and trying to get started by getting ocaml-top installed.

I really want to use 4.03.0 because I really want to have all my experience
with OCaml be with multicore OCaml (I had a list of criteria that I was
looking for in my next language, and OCaml was almost perfect until
multicore support came along - when it came along, that made it perfect and
worth overcoming the inertia of trying to switch from my current language
of daily use).

Unfortunately, ocaml-top has ocp-indent as a dependency, and when I try to
install ocp-indent, I get the following error. If this is due to a known
issue, let me know and I'll wait for a fix. If this is due to some issue
with my build environment, please direct me to appropriate resources for
figuring out how to remedy this problem.

Furthermore, if there are good resources or tips for helping to determine
when a problem is a build environment issue as opposed to an issue with an
existing package that just needs to be updated, please let me know what
they are.

Thanks,
Andrew



#=== ERROR while installing ocp-index.1.1.4
===================================#
# opam-version 1.2.2
# os           darwin
# command      make
# path         /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4
# compiler     4.03.0
# exit-code    2
# env-file
/Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.env
# stdout-file
/Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.out
# stderr-file
/Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.err
### stdout ###
# ocp-build -init
# ocp-build ocp-index-lib
### stderr ###
# [...]
# [33.1] '/Users/chenan/.opam/4.03.0/bin/ocamlc.opt' '-g' '-w'
'+1..39-4-9-37-40' '-safe-string' '-bin-annot' '-c' '-o'
'_obuild/7ee5d0cd3cfec6c5ba81000630d4c060/indexOut.cmo' '-I'
'./_obuild/ocp-index-lib' '-I' './src' '-I'
'/Users/chenan/.opam/4.03.0/lib/ocp-indent/utils' '-I'
'/Users/chenan/.opam/4.03.0/lib/ocaml/compiler-libs' '-I'
'/Users/chenan/.opam/4.03.0/lib/ocp-indent/lexer' 'src/indexOut.ml'
#
# File "src/indexOut.ml", line 184, characters 17-25:
# Error: This pattern matches values of type 'a * 'b * 'c
#        but a pattern was expected which matches values of type
#          Outcometree.out_val_decl
#
# Error:
# Target _obuild/ocp-index-lib/indexOut.cmo not built
# make: *** [ocp-index-lib] Error 2

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] ocaml-top on 4.03.0 ?
  2016-05-11 23:19 [Caml-list] ocaml-top on 4.03.0 ? Andrew Shi-hwa Chen
@ 2016-05-12  6:31 ` vrotaru.md
  2016-05-13  5:55   ` Junsong Li
  0 siblings, 1 reply; 5+ messages in thread
From: vrotaru.md @ 2016-05-12  6:31 UTC (permalink / raw)
  To: Andrew Shi-hwa Chen, caml-list

[-- Attachment #1: Type: text/plain, Size: 2968 bytes --]

Sorry to disappoint you, but there is no multicore support in OCaml, yet.
At least, in a form which which is suitable for beginners. (Cause you can
span a thread from C, or use a very-very devel branch which supports it)

As for ocaml-top you either switch to a version where it compiles (4.02.3)
or wait until ocp-index get fixed.


În joi, 12 mai 2016 la 02:19, Andrew Shi-hwa Chen <andrewsw@gmail.com> a
scris:

> I'm new to OCaml and trying to get started by getting ocaml-top installed.
>
> I really want to use 4.03.0 because I really want to have all my
> experience with OCaml be with multicore OCaml (I had a list of criteria
> that I was looking for in my next language, and OCaml was almost perfect
> until multicore support came along - when it came along, that made it
> perfect and worth overcoming the inertia of trying to switch from my
> current language of daily use).
>
> Unfortunately, ocaml-top has ocp-indent as a dependency, and when I try to
> install ocp-indent, I get the following error. If this is due to a known
> issue, let me know and I'll wait for a fix. If this is due to some issue
> with my build environment, please direct me to appropriate resources for
> figuring out how to remedy this problem.
>
> Furthermore, if there are good resources or tips for helping to determine
> when a problem is a build environment issue as opposed to an issue with an
> existing package that just needs to be updated, please let me know what
> they are.
>
> Thanks,
> Andrew
>
>
>
> #=== ERROR while installing ocp-index.1.1.4
> ===================================#
> # opam-version 1.2.2
> # os           darwin
> # command      make
> # path         /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4
> # compiler     4.03.0
> # exit-code    2
> # env-file
> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.env
> # stdout-file
> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.out
> # stderr-file
> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.err
> ### stdout ###
> # ocp-build -init
> # ocp-build ocp-index-lib
> ### stderr ###
> # [...]
> # [33.1] '/Users/chenan/.opam/4.03.0/bin/ocamlc.opt' '-g' '-w'
> '+1..39-4-9-37-40' '-safe-string' '-bin-annot' '-c' '-o'
> '_obuild/7ee5d0cd3cfec6c5ba81000630d4c060/indexOut.cmo' '-I'
> './_obuild/ocp-index-lib' '-I' './src' '-I'
> '/Users/chenan/.opam/4.03.0/lib/ocp-indent/utils' '-I'
> '/Users/chenan/.opam/4.03.0/lib/ocaml/compiler-libs' '-I'
> '/Users/chenan/.opam/4.03.0/lib/ocp-indent/lexer' 'src/indexOut.ml'
> #
> # File "src/indexOut.ml", line 184, characters 17-25:
> # Error: This pattern matches values of type 'a * 'b * 'c
> #        but a pattern was expected which matches values of type
> #          Outcometree.out_val_decl
> #
> # Error:
> # Target _obuild/ocp-index-lib/indexOut.cmo not built
> # make: *** [ocp-index-lib] Error 2
>
>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] ocaml-top on 4.03.0 ?
  2016-05-12  6:31 ` vrotaru.md
@ 2016-05-13  5:55   ` Junsong Li
  2016-05-13  6:21     ` Junsong Li
  0 siblings, 1 reply; 5+ messages in thread
From: Junsong Li @ 2016-05-13  5:55 UTC (permalink / raw)
  To: vrotaru.md; +Cc: Andrew Shi-hwa Chen, caml users

[-- Attachment #1: Type: text/plain, Size: 3627 bytes --]

Oops, just tried. I got the same compilation error, so it is not your
building environment.

Since you just get started, I would recommend work on 4.02.3. Multicore
will be just one piece of the whole OCaml eco-system, so you can hone your
skills on the rest for now. And many tools still have problems with 4.03.0
(Batteries is released today for 4.03.0, yeah!) and certainly you don't
want to deal with these overhead when you just get started.

Anyway, welcome to the list.

On Wed, May 11, 2016 at 11:31 PM, vrotaru.md@gmail.com <vrotaru.md@gmail.com
> wrote:

> Sorry to disappoint you, but there is no multicore support in OCaml, yet.
> At least, in a form which which is suitable for beginners. (Cause you can
> span a thread from C, or use a very-very devel branch which supports it)
>
> As for ocaml-top you either switch to a version where it compiles (4.02.3)
> or wait until ocp-index get fixed.
>
>
> În joi, 12 mai 2016 la 02:19, Andrew Shi-hwa Chen <andrewsw@gmail.com> a
> scris:
>
>> I'm new to OCaml and trying to get started by getting ocaml-top installed.
>>
>> I really want to use 4.03.0 because I really want to have all my
>> experience with OCaml be with multicore OCaml (I had a list of criteria
>> that I was looking for in my next language, and OCaml was almost perfect
>> until multicore support came along - when it came along, that made it
>> perfect and worth overcoming the inertia of trying to switch from my
>> current language of daily use).
>>
>> Unfortunately, ocaml-top has ocp-indent as a dependency, and when I try
>> to install ocp-indent, I get the following error. If this is due to a known
>> issue, let me know and I'll wait for a fix. If this is due to some issue
>> with my build environment, please direct me to appropriate resources for
>> figuring out how to remedy this problem.
>>
>> Furthermore, if there are good resources or tips for helping to determine
>> when a problem is a build environment issue as opposed to an issue with an
>> existing package that just needs to be updated, please let me know what
>> they are.
>>
>> Thanks,
>> Andrew
>>
>>
>>
>> #=== ERROR while installing ocp-index.1.1.4
>> ===================================#
>> # opam-version 1.2.2
>> # os           darwin
>> # command      make
>> # path         /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4
>> # compiler     4.03.0
>> # exit-code    2
>> # env-file
>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.env
>> # stdout-file
>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.out
>> # stderr-file
>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.err
>> ### stdout ###
>> # ocp-build -init
>> # ocp-build ocp-index-lib
>> ### stderr ###
>> # [...]
>> # [33.1] '/Users/chenan/.opam/4.03.0/bin/ocamlc.opt' '-g' '-w'
>> '+1..39-4-9-37-40' '-safe-string' '-bin-annot' '-c' '-o'
>> '_obuild/7ee5d0cd3cfec6c5ba81000630d4c060/indexOut.cmo' '-I'
>> './_obuild/ocp-index-lib' '-I' './src' '-I'
>> '/Users/chenan/.opam/4.03.0/lib/ocp-indent/utils' '-I'
>> '/Users/chenan/.opam/4.03.0/lib/ocaml/compiler-libs' '-I'
>> '/Users/chenan/.opam/4.03.0/lib/ocp-indent/lexer' 'src/indexOut.ml'
>> #
>> # File "src/indexOut.ml", line 184, characters 17-25:
>> # Error: This pattern matches values of type 'a * 'b * 'c
>> #        but a pattern was expected which matches values of type
>> #          Outcometree.out_val_decl
>> #
>> # Error:
>> # Target _obuild/ocp-index-lib/indexOut.cmo not built
>> # make: *** [ocp-index-lib] Error 2
>>
>>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] ocaml-top on 4.03.0 ?
  2016-05-13  5:55   ` Junsong Li
@ 2016-05-13  6:21     ` Junsong Li
  2016-05-13  9:39       ` Fabrice Le Fessant
  0 siblings, 1 reply; 5+ messages in thread
From: Junsong Li @ 2016-05-13  6:21 UTC (permalink / raw)
  To: vrotaru.md; +Cc: Andrew Shi-hwa Chen, caml users

[-- Attachment #1: Type: text/plain, Size: 3971 bytes --]

Hi Andrew,

A patch was delivered yesterday, so run `opam update` before `opam install
ocp-indent`. You should be able to install without problem now.


On Thu, May 12, 2016 at 10:55 PM, Junsong Li <ljs.darkfish@gmail.com> wrote:

> Oops, just tried. I got the same compilation error, so it is not your
> building environment.
>
> Since you just get started, I would recommend work on 4.02.3. Multicore
> will be just one piece of the whole OCaml eco-system, so you can hone your
> skills on the rest for now. And many tools still have problems with 4.03.0
> (Batteries is released today for 4.03.0, yeah!) and certainly you don't
> want to deal with these overhead when you just get started.
>
> Anyway, welcome to the list.
>
> On Wed, May 11, 2016 at 11:31 PM, vrotaru.md@gmail.com <
> vrotaru.md@gmail.com> wrote:
>
>> Sorry to disappoint you, but there is no multicore support in OCaml, yet.
>> At least, in a form which which is suitable for beginners. (Cause you can
>> span a thread from C, or use a very-very devel branch which supports it)
>>
>> As for ocaml-top you either switch to a version where it compiles
>> (4.02.3) or wait until ocp-index get fixed.
>>
>>
>> În joi, 12 mai 2016 la 02:19, Andrew Shi-hwa Chen <andrewsw@gmail.com> a
>> scris:
>>
>>> I'm new to OCaml and trying to get started by getting ocaml-top
>>> installed.
>>>
>>> I really want to use 4.03.0 because I really want to have all my
>>> experience with OCaml be with multicore OCaml (I had a list of criteria
>>> that I was looking for in my next language, and OCaml was almost perfect
>>> until multicore support came along - when it came along, that made it
>>> perfect and worth overcoming the inertia of trying to switch from my
>>> current language of daily use).
>>>
>>> Unfortunately, ocaml-top has ocp-indent as a dependency, and when I try
>>> to install ocp-indent, I get the following error. If this is due to a known
>>> issue, let me know and I'll wait for a fix. If this is due to some issue
>>> with my build environment, please direct me to appropriate resources for
>>> figuring out how to remedy this problem.
>>>
>>> Furthermore, if there are good resources or tips for helping to
>>> determine when a problem is a build environment issue as opposed to an
>>> issue with an existing package that just needs to be updated, please let me
>>> know what they are.
>>>
>>> Thanks,
>>> Andrew
>>>
>>>
>>>
>>> #=== ERROR while installing ocp-index.1.1.4
>>> ===================================#
>>> # opam-version 1.2.2
>>> # os           darwin
>>> # command      make
>>> # path         /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4
>>> # compiler     4.03.0
>>> # exit-code    2
>>> # env-file
>>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.env
>>> # stdout-file
>>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.out
>>> # stderr-file
>>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.err
>>> ### stdout ###
>>> # ocp-build -init
>>> # ocp-build ocp-index-lib
>>> ### stderr ###
>>> # [...]
>>> # [33.1] '/Users/chenan/.opam/4.03.0/bin/ocamlc.opt' '-g' '-w'
>>> '+1..39-4-9-37-40' '-safe-string' '-bin-annot' '-c' '-o'
>>> '_obuild/7ee5d0cd3cfec6c5ba81000630d4c060/indexOut.cmo' '-I'
>>> './_obuild/ocp-index-lib' '-I' './src' '-I'
>>> '/Users/chenan/.opam/4.03.0/lib/ocp-indent/utils' '-I'
>>> '/Users/chenan/.opam/4.03.0/lib/ocaml/compiler-libs' '-I'
>>> '/Users/chenan/.opam/4.03.0/lib/ocp-indent/lexer' 'src/indexOut.ml'
>>> #
>>> # File "src/indexOut.ml", line 184, characters 17-25:
>>> # Error: This pattern matches values of type 'a * 'b * 'c
>>> #        but a pattern was expected which matches values of type
>>> #          Outcometree.out_val_decl
>>> #
>>> # Error:
>>> # Target _obuild/ocp-index-lib/indexOut.cmo not built
>>> # make: *** [ocp-index-lib] Error 2
>>>
>>>
>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Caml-list] ocaml-top on 4.03.0 ?
  2016-05-13  6:21     ` Junsong Li
@ 2016-05-13  9:39       ` Fabrice Le Fessant
  0 siblings, 0 replies; 5+ messages in thread
From: Fabrice Le Fessant @ 2016-05-13  9:39 UTC (permalink / raw)
  To: Junsong Li, vrotaru.md; +Cc: Andrew Shi-hwa Chen, caml users

[-- Attachment #1: Type: text/plain, Size: 4391 bytes --]

Indeed, from
http://opam.ocamlpro.com/builder/html/report-last.html#ocaml-top,
ocaml-top.1.1.2 works on all versions >= 4.00 since yesterday.
I also upstreamed a patch to make ocp-index work on all 4.01,4.02 and 4.03.
--Fabrice

On Fri, May 13, 2016 at 8:22 AM Junsong Li <ljs.darkfish@gmail.com> wrote:

> Hi Andrew,
>
> A patch was delivered yesterday, so run `opam update` before `opam install
> ocp-indent`. You should be able to install without problem now.
>
>
> On Thu, May 12, 2016 at 10:55 PM, Junsong Li <ljs.darkfish@gmail.com>
> wrote:
>
>> Oops, just tried. I got the same compilation error, so it is not your
>> building environment.
>>
>> Since you just get started, I would recommend work on 4.02.3. Multicore
>> will be just one piece of the whole OCaml eco-system, so you can hone your
>> skills on the rest for now. And many tools still have problems with 4.03.0
>> (Batteries is released today for 4.03.0, yeah!) and certainly you don't
>> want to deal with these overhead when you just get started.
>>
>> Anyway, welcome to the list.
>>
>> On Wed, May 11, 2016 at 11:31 PM, vrotaru.md@gmail.com <
>> vrotaru.md@gmail.com> wrote:
>>
>>> Sorry to disappoint you, but there is no multicore support in OCaml, yet.
>>> At least, in a form which which is suitable for beginners. (Cause you
>>> can span a thread from C, or use a very-very devel branch which supports it)
>>>
>>> As for ocaml-top you either switch to a version where it compiles
>>> (4.02.3) or wait until ocp-index get fixed.
>>>
>>>
>>> În joi, 12 mai 2016 la 02:19, Andrew Shi-hwa Chen <andrewsw@gmail.com>
>>> a scris:
>>>
>>>> I'm new to OCaml and trying to get started by getting ocaml-top
>>>> installed.
>>>>
>>>> I really want to use 4.03.0 because I really want to have all my
>>>> experience with OCaml be with multicore OCaml (I had a list of criteria
>>>> that I was looking for in my next language, and OCaml was almost perfect
>>>> until multicore support came along - when it came along, that made it
>>>> perfect and worth overcoming the inertia of trying to switch from my
>>>> current language of daily use).
>>>>
>>>> Unfortunately, ocaml-top has ocp-indent as a dependency, and when I try
>>>> to install ocp-indent, I get the following error. If this is due to a known
>>>> issue, let me know and I'll wait for a fix. If this is due to some issue
>>>> with my build environment, please direct me to appropriate resources for
>>>> figuring out how to remedy this problem.
>>>>
>>>> Furthermore, if there are good resources or tips for helping to
>>>> determine when a problem is a build environment issue as opposed to an
>>>> issue with an existing package that just needs to be updated, please let me
>>>> know what they are.
>>>>
>>>> Thanks,
>>>> Andrew
>>>>
>>>>
>>>>
>>>> #=== ERROR while installing ocp-index.1.1.4
>>>> ===================================#
>>>> # opam-version 1.2.2
>>>> # os           darwin
>>>> # command      make
>>>> # path         /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4
>>>> # compiler     4.03.0
>>>> # exit-code    2
>>>> # env-file
>>>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.env
>>>> # stdout-file
>>>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.out
>>>> # stderr-file
>>>> /Users/chenan/.opam/4.03.0/build/ocp-index.1.1.4/ocp-index-13029-a00279.err
>>>> ### stdout ###
>>>> # ocp-build -init
>>>> # ocp-build ocp-index-lib
>>>> ### stderr ###
>>>> # [...]
>>>> # [33.1] '/Users/chenan/.opam/4.03.0/bin/ocamlc.opt' '-g' '-w'
>>>> '+1..39-4-9-37-40' '-safe-string' '-bin-annot' '-c' '-o'
>>>> '_obuild/7ee5d0cd3cfec6c5ba81000630d4c060/indexOut.cmo' '-I'
>>>> './_obuild/ocp-index-lib' '-I' './src' '-I'
>>>> '/Users/chenan/.opam/4.03.0/lib/ocp-indent/utils' '-I'
>>>> '/Users/chenan/.opam/4.03.0/lib/ocaml/compiler-libs' '-I'
>>>> '/Users/chenan/.opam/4.03.0/lib/ocp-indent/lexer' 'src/indexOut.ml'
>>>> #
>>>> # File "src/indexOut.ml", line 184, characters 17-25:
>>>> # Error: This pattern matches values of type 'a * 'b * 'c
>>>> #        but a pattern was expected which matches values of type
>>>> #          Outcometree.out_val_decl
>>>> #
>>>> # Error:
>>>> # Target _obuild/ocp-index-lib/indexOut.cmo not built
>>>> # make: *** [ocp-index-lib] Error 2
>>>>
>>>>
>>
>

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-13  9:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-11 23:19 [Caml-list] ocaml-top on 4.03.0 ? Andrew Shi-hwa Chen
2016-05-12  6:31 ` vrotaru.md
2016-05-13  5:55   ` Junsong Li
2016-05-13  6:21     ` Junsong Li
2016-05-13  9:39       ` Fabrice Le Fessant

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).