* problem installing janestreet core through godi
@ 2008-10-21 18:34 Ashish Agarwal
2008-10-21 20:22 ` [Caml-list] " Markus Mottl
0 siblings, 1 reply; 7+ messages in thread
From: Ashish Agarwal @ 2008-10-21 18:34 UTC (permalink / raw)
To: Caml List
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
I am having trouble installing JaneStreet's Core library through godi.
On Mac OS X, it fails while installing the prerequisite bin-prot:
...
> ocamlfind ocamlc -package type-conv -c -pp "cpp $ARCH_FLAGS " -I +camlp4
type_class.mli
> File "type_class.mli", line 93, characters 15-16:
> Syntax error
...
Line 93 of type_class.mli is:
MK_BASE(unit)
On a Red Hat Enterprise Linux system, bin-prot successfully installs.
However, janestreet-core fails:
...
> ocamlfind ocamlc -package res,sexplib,bin_prot,threads -c -thread -dtypes
-for-pack Core -dtypes -I +camlp4 -I . binable.ml
> File "binable.ml", line 12, characters 21-47:
> Unbound type constructor Map_to_safe.sw_arg
...
Line 12 of binable.ml is
val bin_sw_arg_t : binable Map_to_safe.sw_arg
[-- Attachment #2: Type: text/html, Size: 1216 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] problem installing janestreet core through godi
2008-10-21 18:34 problem installing janestreet core through godi Ashish Agarwal
@ 2008-10-21 20:22 ` Markus Mottl
2008-10-22 8:16 ` Mark Shinwell
0 siblings, 1 reply; 7+ messages in thread
From: Markus Mottl @ 2008-10-21 20:22 UTC (permalink / raw)
To: Ashish Agarwal; +Cc: Caml List
2008/10/21 Ashish Agarwal <Ashish.Agarwal@yale.edu>:
> I am having trouble installing JaneStreet's Core library through godi.
> On Mac OS X, it fails while installing the prerequisite bin-prot:
> ...
>> ocamlfind ocamlc -package type-conv -c -pp "cpp $ARCH_FLAGS " -I +camlp4
>> type_class.mli
>> File "type_class.mli", line 93, characters 15-16:
>> Syntax error
> ...
> Line 93 of type_class.mli is:
> MK_BASE(unit)
It's possible that the C-preprocessor works differently on Mac OS X.
I haven't investigated this yet, but would be grateful if anybody who
has set up Godi on a Mac could try to find a patch.
> On a Red Hat Enterprise Linux system, bin-prot successfully installs.
> However, janestreet-core fails:
> ...
>> ocamlfind ocamlc -package res,sexplib,bin_prot,threads -c -thread -dtypes
>> -for-pack Core -dtypes -I +camlp4 -I . binable.ml
>> File "binable.ml", line 12, characters 21-47:
>> Unbound type constructor Map_to_safe.sw_arg
> ...
> Line 12 of binable.ml is
> val bin_sw_arg_t : binable Map_to_safe.sw_arg
janestreet-core is out of date, and a new version will be released
within the next few weeks. You might want to downgrade the bin-prot
package installed in your Godi tree to an older version.
Regards,
Markus
--
Markus Mottl http://www.ocaml.info markus.mottl@gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] problem installing janestreet core through godi
2008-10-21 20:22 ` [Caml-list] " Markus Mottl
@ 2008-10-22 8:16 ` Mark Shinwell
2008-10-22 13:08 ` Ashish Agarwal
0 siblings, 1 reply; 7+ messages in thread
From: Mark Shinwell @ 2008-10-22 8:16 UTC (permalink / raw)
To: Markus Mottl; +Cc: Ashish Agarwal, Caml List
On Tue, Oct 21, 2008 at 04:22:09PM -0400, Markus Mottl wrote:
> 2008/10/21 Ashish Agarwal <Ashish.Agarwal@yale.edu>:
> > I am having trouble installing JaneStreet's Core library through godi.
> > On Mac OS X, it fails while installing the prerequisite bin-prot:
> > ...
> >> ocamlfind ocamlc -package type-conv -c -pp "cpp $ARCH_FLAGS " -I +camlp4
> >> type_class.mli
> >> File "type_class.mli", line 93, characters 15-16:
> >> Syntax error
> > ...
> > Line 93 of type_class.mli is:
> > MK_BASE(unit)
>
> It's possible that the C-preprocessor works differently on Mac OS X.
> I haven't investigated this yet, but would be grateful if anybody who
> has set up Godi on a Mac could try to find a patch.
There is something about the preprocessors on Mac OS X which causes cpp to
behave differently from gcc -E; I've hit this before but can't remember the
full explanation offhand. You can see the difference, for example, if you
try to use the ## operator. Does everything work if you get everything
to use gcc -E for preprocessing?
Mark
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] problem installing janestreet core through godi
2008-10-22 8:16 ` Mark Shinwell
@ 2008-10-22 13:08 ` Ashish Agarwal
2008-10-22 13:52 ` Markus Mottl
2008-10-22 17:57 ` Nobuyuki TOMIZAWA
0 siblings, 2 replies; 7+ messages in thread
From: Ashish Agarwal @ 2008-10-22 13:08 UTC (permalink / raw)
To: Mark Shinwell; +Cc: Markus Mottl, Caml List
[-- Attachment #1: Type: text/plain, Size: 1527 bytes --]
Thank you for the replies. In type_class.ml and type_class.mli, I
replaced (*pp cpp $ARCH_FLAGS *) with (*pp gcc -E $ARCH_FLAGS *). The
compilation gets further but now fails with:...
ocamlfind ocamlc -package type-conv -c -I +camlp4 -for-pack Bin_prot
binable.ml
File "binable.ml", line 36, characters 21-46:
Unbound type constructor Type_class.writer
On Wed, Oct 22, 2008 at 4:16 AM, Mark Shinwell
<mshinwell@janestcapital.com>wrote:
> On Tue, Oct 21, 2008 at 04:22:09PM -0400, Markus Mottl wrote:
> > 2008/10/21 Ashish Agarwal <Ashish.Agarwal@yale.edu>:
> > > I am having trouble installing JaneStreet's Core library through godi.
> > > On Mac OS X, it fails while installing the prerequisite bin-prot:
> > > ...
> > >> ocamlfind ocamlc -package type-conv -c -pp "cpp $ARCH_FLAGS " -I
> +camlp4
> > >> type_class.mli
> > >> File "type_class.mli", line 93, characters 15-16:
> > >> Syntax error
> > > ...
> > > Line 93 of type_class.mli is:
> > > MK_BASE(unit)
> >
> > It's possible that the C-preprocessor works differently on Mac OS X.
> > I haven't investigated this yet, but would be grateful if anybody who
> > has set up Godi on a Mac could try to find a patch.
>
> There is something about the preprocessors on Mac OS X which causes cpp to
> behave differently from gcc -E; I've hit this before but can't remember the
> full explanation offhand. You can see the difference, for example, if you
> try to use the ## operator. Does everything work if you get everything
> to use gcc -E for preprocessing?
>
> Mark
>
[-- Attachment #2: Type: text/html, Size: 2244 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] problem installing janestreet core through godi
2008-10-22 13:08 ` Ashish Agarwal
@ 2008-10-22 13:52 ` Markus Mottl
2008-10-22 17:57 ` Nobuyuki TOMIZAWA
1 sibling, 0 replies; 7+ messages in thread
From: Markus Mottl @ 2008-10-22 13:52 UTC (permalink / raw)
To: Ashish Agarwal; +Cc: Mark Shinwell, Caml List
On Wed, Oct 22, 2008 at 9:08 AM, Ashish Agarwal <agarwal1975@gmail.com> wrote:
> Thank you for the replies. In type_class.ml and type_class.mli, I
> replaced (*pp cpp $ARCH_FLAGS *) with (*pp gcc -E $ARCH_FLAGS *). The
> compilation gets further but now fails with:
> ...
> ocamlfind ocamlc -package type-conv -c -I +camlp4 -for-pack Bin_prot
> binable.ml
> File "binable.ml", line 36, characters 21-46:
> Unbound type constructor Type_class.writer
Great! This means that this fix solved the problem. You have now run
into another, known one: the "core" library is badly out of date, and
needs to be updated to work with newer releases of bin-prot. We will
make a release within (probably) the next few weeks. In the meanwhile
you might want to downgrade bin-prot to make it work with "core".
I'll add a patch to bin-prot to make it work on Macs in the meanwhile...
Regards,
Markus
--
Markus Mottl http://www.ocaml.info markus.mottl@gmail.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Caml-list] problem installing janestreet core through godi
2008-10-22 13:08 ` Ashish Agarwal
2008-10-22 13:52 ` Markus Mottl
@ 2008-10-22 17:57 ` Nobuyuki TOMIZAWA
[not found] ` <d8be5ae20810221134q171e27bat67328196849526e2@mail.gmail.com>
1 sibling, 1 reply; 7+ messages in thread
From: Nobuyuki TOMIZAWA @ 2008-10-22 17:57 UTC (permalink / raw)
To: Ashish Agarwal; +Cc: Mark Shinwell, Markus Mottl, Caml List
[-- Attachment #1: Type: text/plain, Size: 383 bytes --]
Hi, list,
> Thank you for the replies. In type_class.ml and type_class.mli, I
> replaced (*pp cpp $ARCH_FLAGS *) with (*pp gcc -E $ARCH_FLAGS *).
Another option is to use /usr/bin/cpp-4.2 instead of /usr/bin/cpp.
After making symbolic link ~/bin/cpp to /usr/bin/cpp-4.2 (and put `~/
bin' in PATH), I succeed to build bin-proto without source code
modification.
-- nobuyuki
[-- Attachment #2: Type: text/html, Size: 683 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Fwd: [Caml-list] problem installing janestreet core through godi
[not found] ` <d8be5ae20810221134q171e27bat67328196849526e2@mail.gmail.com>
@ 2008-10-22 18:34 ` Ashish Agarwal
0 siblings, 0 replies; 7+ messages in thread
From: Ashish Agarwal @ 2008-10-22 18:34 UTC (permalink / raw)
To: Caml List
[-- Attachment #1: Type: text/plain, Size: 575 bytes --]
I only had cpp-4.0 and tried your suggestion with that; bin-prot compiles
completely.
On Wed, Oct 22, 2008 at 1:57 PM, Nobuyuki TOMIZAWA <
n-tomizawa@mua.biglobe.ne.jp> wrote:
> Hi, list,
>
> Thank you for the replies. In type_class.ml and type_class.mli, I
> replaced (*pp cpp $ARCH_FLAGS *) with (*pp gcc -E $ARCH_FLAGS *).
>
>
> Another option is to use /usr/bin/cpp-4.2 instead of /usr/bin/cpp.
>
> After making symbolic link ~/bin/cpp to /usr/bin/cpp-4.2 (and put `~/bin'
> in PATH), I succeed to build bin-proto without source code modification.
>
> -- nobuyuki
>
[-- Attachment #2: Type: text/html, Size: 1214 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-10-22 18:34 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-21 18:34 problem installing janestreet core through godi Ashish Agarwal
2008-10-21 20:22 ` [Caml-list] " Markus Mottl
2008-10-22 8:16 ` Mark Shinwell
2008-10-22 13:08 ` Ashish Agarwal
2008-10-22 13:52 ` Markus Mottl
2008-10-22 17:57 ` Nobuyuki TOMIZAWA
[not found] ` <d8be5ae20810221134q171e27bat67328196849526e2@mail.gmail.com>
2008-10-22 18:34 ` Fwd: " Ashish Agarwal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox