caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv
@ 2012-07-02  9:18 Sylvain Le Gall
  2012-07-02 13:01 ` Gabriel Scherer
  2012-07-02 13:59 ` [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb Daniel Bünzli
  0 siblings, 2 replies; 10+ messages in thread
From: Sylvain Le Gall @ 2012-07-02  9:18 UTC (permalink / raw)
  To: Daniel Bünzli; +Cc: caml-list, ocaml-core

Hi,

2012/7/2 Daniel Bünzli <daniel.buenzli@erratique.ch>:
> Hello,
>
> Trying to install with odb.ml and ocaml 4.00.0+beta2, with
>
> ocaml odb.ml --unstable oasis
>
> But typeconv fails with [1]. Is there a magic invocation to override that warnings are errors flag ?
>

I think Jane Street Core team added the "-w @Aemr-28" flags. They did
it in myocamlbuild.ml section not managed by OASIS. The only solution
is to change by hand.

I CC the core mailing list which will provide you more information
about this issue (I have the same kind of issue because of "@" on
Windows).

> Thanks,
>
> Daniel
>
> [1]
>
> Configuration:
> ocamlfind: ........................................... /usr/local/bin/ocamlfind
> ocamlc: .............................................. /usr/local/bin/ocamlc.opt
> ocamlopt: ............................................ /usr/local/bin/ocamlopt.opt
> ocamlbuild: .......................................... /usr/local/bin/ocamlbuild
> Package name: ........................................ type_conv
> Package version: ..................................... 108.00.01
> os_type: ............................................. Unix
> system: .............................................. macosx
> architecture: ........................................ amd64
> ccomp_type: .......................................... cc
> ocaml_version: ....................................... 4.00.0
> standard_library_default: ............................ /usr/local/lib/ocaml
> standard_library: .................................... /usr/local/lib/ocaml
> standard_runtime: .................................... /usr/local/bin/ocamlrun
> bytecomp_c_compiler: ................................. gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
> native_c_compiler: ................................... gcc -D_FILE_OFFSET_BITS=64 -D_REENTRANT
> model: ............................................... default
> ext_obj: ............................................. .o
> ext_asm: ............................................. .s
> ext_lib: ............................................. .a
> ext_dll: ............................................. .so
> default_executable_name: ............................. a.out
> systhread_supported: ................................. true
> Install architecture-independent files dir: .......... /Users/dbuenzli/.odb
> Install architecture-dependent files in dir: ......... $prefix
> User executables: .................................... $exec_prefix/bin
> System admin executables: ............................ $exec_prefix/sbin
> Program executables: ................................. $exec_prefix/libexec
> Read-only single-machine data: ....................... $prefix/etc
> Modifiable architecture-independent data: ............ $prefix/com
> Modifiable single-machine data: ...................... $prefix/var
> Object code libraries: ............................... $exec_prefix/lib
> Read-only arch-independent data root: ................ $prefix/share
> Read-only architecture-independent data: ............. $datarootdir
> Info documentation: .................................. $datarootdir/info
> Locale-dependent data: ............................... $datarootdir/locale
> Man documentation: ................................... $datarootdir/man
> Documentation root: .................................. $datarootdir/doc/$pkg_name
> HTML documentation: .................................. $docdir
> DVI documentation: ................................... $docdir
> PDF documentation: ................................... $docdir
> PS documentation: .................................... $docdir
> findlib_version: ..................................... 1.3.2
> is_native: ........................................... true
> suffix_program: ......................................
> Remove a file.: ...................................... rm -f
> Remove a directory.: ................................. rm -rf
> Turn ocaml debug flag on: ............................ true
> Turn ocaml profile flag on: .......................... false
> Compiler support generation of .cmxs.: ............... true
> OCamlbuild additional flags: .........................
> Create documentations: ............................... true
> Compile tests executable and library and run them: ... false
> camlp4o: ............................................. /usr/local/bin/camlp4o
> pkg_camlp4_quotations: ............................... /usr/local/lib/ocaml/camlp4
> pkg_camlp4_extend: ................................... /usr/local/lib/ocaml/camlp4
> ocamldoc: ............................................ /usr/local/bin/ocamldoc
> Finished, 1 target (0 cached) in 00:00:00.
> getconf: no such configuration parameter `LFS64_CFLAGS'
> + ocamlfind ocamlc -c -g -w @Aemr-28 -strict-sequence -package camlp4.quotations -package camlp4.extend -syntax camlp4o -I lib -o lib/pa_type_conv.cmo lib/pa_type_conv.ml
> File "lib/pa_type_conv.ml", line 275, characters 19-1267:
> Warning 8: this pattern-matching is not exhaustive.
> Here is an example of a value that is not matched:
> (TyTypePol (_, _, _)|TyAnP _|TyAnM _)
> File "lib/pa_type_conv.ml", line 4, characters 0-11:
> Warning 33: unused open Lexing.
> File "lib/pa_type_conv.ml", line 12, characters 4-8:
> Warning 32: unused value both.
> File "lib/pa_type_conv.ml", line 1:
> Error: Error-enabled warnings (3 occurrences)
> Command exited with code 2.
> Compilation unsuccessful after building 4 targets (0 cached) in 00:00:01.
> E: Failure("Command '/usr/local/bin/ocamlbuild lib/pa_type_conv.cma -tag debug' terminated with error code 10")
> Exception: Failure "Could not build type_conv".
>
>
>

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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv
  2012-07-02  9:18 [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv Sylvain Le Gall
@ 2012-07-02 13:01 ` Gabriel Scherer
  2012-07-09 16:05   ` Damien Doligez
  2012-07-02 13:59 ` [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb Daniel Bünzli
  1 sibling, 1 reply; 10+ messages in thread
From: Gabriel Scherer @ 2012-07-02 13:01 UTC (permalink / raw)
  To: Sylvain Le Gall; +Cc: caml-list, ocaml-core

I react to "the @ issue on Windows", because I'm the one to blame in this case.

This was discussed on the OCaml bug tracker (
http://caml.inria.fr/mantis/view.php?id=5312 ) and later on the Caml
mailing-list ( http://www.mail-archive.com/caml-list@inria.fr/msg01993.html
), and it was decided to remove support for @responsefiles from OCaml
to solve that conflict with the warning specification syntax.

Fate assigned the bug to me, but I've been busy with other things and
have not implemented it (if someone wants to help on this, feel
free!). As we're late in the release process, I don't think it would
go in for 4.00, so the best bet for now is to consider this warning
specification unportable and use -warn-error instead.

I welcome feedback on such issues on the bugtracker or mailing-list;
feedback helps setting good priorities.
Sorry for not taking care of this earlier.

On Mon, Jul 2, 2012 at 11:18 AM, Sylvain Le Gall <sylvain@le-gall.net> wrote:
> Hi,
>
> 2012/7/2 Daniel Bünzli <daniel.buenzli@erratique.ch>:
>> Hello,
>>
>> Trying to install with odb.ml and ocaml 4.00.0+beta2, with
>>
>> ocaml odb.ml --unstable oasis
>>
>> But typeconv fails with [1]. Is there a magic invocation to override that warnings are errors flag ?
>>
>
> I think Jane Street Core team added the "-w @Aemr-28" flags. They did
> it in myocamlbuild.ml section not managed by OASIS. The only solution
> is to change by hand.
>
> I CC the core mailing list which will provide you more information
> about this issue (I have the same kind of issue because of "@" on
> Windows).
>
>> Thanks,
>>
>> Daniel
>>
>> [1]
>>
>> Configuration:
>> ocamlfind: ........................................... /usr/local/bin/ocamlfind
>> ocamlc: .............................................. /usr/local/bin/ocamlc.opt
>> ocamlopt: ............................................ /usr/local/bin/ocamlopt.opt
>> ocamlbuild: .......................................... /usr/local/bin/ocamlbuild
>> Package name: ........................................ type_conv
>> Package version: ..................................... 108.00.01
>> os_type: ............................................. Unix
>> system: .............................................. macosx
>> architecture: ........................................ amd64
>> ccomp_type: .......................................... cc
>> ocaml_version: ....................................... 4.00.0
>> standard_library_default: ............................ /usr/local/lib/ocaml
>> standard_library: .................................... /usr/local/lib/ocaml
>> standard_runtime: .................................... /usr/local/bin/ocamlrun
>> bytecomp_c_compiler: ................................. gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>> native_c_compiler: ................................... gcc -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>> model: ............................................... default
>> ext_obj: ............................................. .o
>> ext_asm: ............................................. .s
>> ext_lib: ............................................. .a
>> ext_dll: ............................................. .so
>> default_executable_name: ............................. a.out
>> systhread_supported: ................................. true
>> Install architecture-independent files dir: .......... /Users/dbuenzli/.odb
>> Install architecture-dependent files in dir: ......... $prefix
>> User executables: .................................... $exec_prefix/bin
>> System admin executables: ............................ $exec_prefix/sbin
>> Program executables: ................................. $exec_prefix/libexec
>> Read-only single-machine data: ....................... $prefix/etc
>> Modifiable architecture-independent data: ............ $prefix/com
>> Modifiable single-machine data: ...................... $prefix/var
>> Object code libraries: ............................... $exec_prefix/lib
>> Read-only arch-independent data root: ................ $prefix/share
>> Read-only architecture-independent data: ............. $datarootdir
>> Info documentation: .................................. $datarootdir/info
>> Locale-dependent data: ............................... $datarootdir/locale
>> Man documentation: ................................... $datarootdir/man
>> Documentation root: .................................. $datarootdir/doc/$pkg_name
>> HTML documentation: .................................. $docdir
>> DVI documentation: ................................... $docdir
>> PDF documentation: ................................... $docdir
>> PS documentation: .................................... $docdir
>> findlib_version: ..................................... 1.3.2
>> is_native: ........................................... true
>> suffix_program: ......................................
>> Remove a file.: ...................................... rm -f
>> Remove a directory.: ................................. rm -rf
>> Turn ocaml debug flag on: ............................ true
>> Turn ocaml profile flag on: .......................... false
>> Compiler support generation of .cmxs.: ............... true
>> OCamlbuild additional flags: .........................
>> Create documentations: ............................... true
>> Compile tests executable and library and run them: ... false
>> camlp4o: ............................................. /usr/local/bin/camlp4o
>> pkg_camlp4_quotations: ............................... /usr/local/lib/ocaml/camlp4
>> pkg_camlp4_extend: ................................... /usr/local/lib/ocaml/camlp4
>> ocamldoc: ............................................ /usr/local/bin/ocamldoc
>> Finished, 1 target (0 cached) in 00:00:00.
>> getconf: no such configuration parameter `LFS64_CFLAGS'
>> + ocamlfind ocamlc -c -g -w @Aemr-28 -strict-sequence -package camlp4.quotations -package camlp4.extend -syntax camlp4o -I lib -o lib/pa_type_conv.cmo lib/pa_type_conv.ml
>> File "lib/pa_type_conv.ml", line 275, characters 19-1267:
>> Warning 8: this pattern-matching is not exhaustive.
>> Here is an example of a value that is not matched:
>> (TyTypePol (_, _, _)|TyAnP _|TyAnM _)
>> File "lib/pa_type_conv.ml", line 4, characters 0-11:
>> Warning 33: unused open Lexing.
>> File "lib/pa_type_conv.ml", line 12, characters 4-8:
>> Warning 32: unused value both.
>> File "lib/pa_type_conv.ml", line 1:
>> Error: Error-enabled warnings (3 occurrences)
>> Command exited with code 2.
>> Compilation unsuccessful after building 4 targets (0 cached) in 00:00:01.
>> E: Failure("Command '/usr/local/bin/ocamlbuild lib/pa_type_conv.cma -tag debug' terminated with error code 10")
>> Exception: Failure "Could not build type_conv".
>>
>>
>>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb
  2012-07-02  9:18 [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv Sylvain Le Gall
  2012-07-02 13:01 ` Gabriel Scherer
@ 2012-07-02 13:59 ` Daniel Bünzli
  2012-07-02 14:04   ` Wojciech Meyer
                     ` (2 more replies)
  1 sibling, 3 replies; 10+ messages in thread
From: Daniel Bünzli @ 2012-07-02 13:59 UTC (permalink / raw)
  To: caml-list; +Cc: Edgar Friendly



Le lundi, 2 juillet 2012 à 11:18, Sylvain Le Gall a écrit :

> I think Jane Street Core team added the "-w @Aemr-28" flags. They did
> it in myocamlbuild.ml section not managed by OASIS. The only solution
> is to change by hand.

Mmmh. I'm a little bit stuck (too lazy to delve into odb.ml, in fact).  

Tried to remove the flag manually in `~/.odb/install-type_conv/type_conv-108.00.01/myocamlbuild.ml` but it seems that when I reissue `odb --unstable type_conv`, odb restarts everything from scratch, download included.  

There is `--get` that only downloads and extracts the package is there a flag like `--no-get` to be able to start from that state in odb ?  

Best,

Daniel



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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb
  2012-07-02 13:59 ` [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb Daniel Bünzli
@ 2012-07-02 14:04   ` Wojciech Meyer
  2012-07-02 14:31     ` Daniel Bünzli
  2012-07-02 14:29   ` Edgar Friendly
  2012-07-09  1:49   ` Francois Berenger
  2 siblings, 1 reply; 10+ messages in thread
From: Wojciech Meyer @ 2012-07-02 14:04 UTC (permalink / raw)
  To: Daniel Bünzli; +Cc: caml-list, Edgar Friendly

Hi Daniel,

> Tried to remove the flag manually in `~/.odb/install-type_conv/type_conv-108.00.01/myocamlbuild.ml` but it seems that when I reissue `odb --unstable type_conv`, odb restarts everything from scratch, download included.

You can simply reissue:

ocaml setup.ml -build
ocaml setup.ml -install

in ~/.odb/install-type_conv/type_conv-108.00.01/

that should work.

> There is `--get` that only downloads and extracts the package is there a flag like `--no-get` to be able to start from that state in odb ?

at the moment I can't look into that, but I hardly can remember if
that was possible.

Wojciech

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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb
  2012-07-02 13:59 ` [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb Daniel Bünzli
  2012-07-02 14:04   ` Wojciech Meyer
@ 2012-07-02 14:29   ` Edgar Friendly
  2012-07-13  3:29     ` Francois Berenger
  2012-07-09  1:49   ` Francois Berenger
  2 siblings, 1 reply; 10+ messages in thread
From: Edgar Friendly @ 2012-07-02 14:29 UTC (permalink / raw)
  To: Daniel Bünzli; +Cc: caml-list

On 07/02/2012 09:59 AM, Daniel Bünzli wrote:
>
>
> Le lundi, 2 juillet 2012 à 11:18, Sylvain Le Gall a écrit :
>
>> I think Jane Street Core team added the "-w @Aemr-28" flags. They did
>> it in myocamlbuild.ml section not managed by OASIS. The only solution
>> is to change by hand.
>
> Mmmh. I'm a little bit stuck (too lazy to delve into odb.ml, in fact).
>
> Tried to remove the flag manually in `~/.odb/install-type_conv/type_conv-108.00.01/myocamlbuild.ml` but it seems that when I reissue `odb --unstable type_conv`, odb restarts everything from scratch, download included.
>
> There is `--get` that only downloads and extracts the package is there a flag like `--no-get` to be able to start from that state in odb ?
>
> Best,
>
> Daniel
>
>

At the moment, the way to have odb.ml install a package from a local 
directory is to add it to your packages file, like this:

type_conv dir=~/.odb/install-type_conv/type_conv-108.00.01

At the moment, odb allows the use of tarballs (http or local) on the 
command line, but doesn't properly handle local directories.  I'll see 
if I can add support for this quickly.

E.

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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb
  2012-07-02 14:04   ` Wojciech Meyer
@ 2012-07-02 14:31     ` Daniel Bünzli
  2012-07-02 14:52       ` Wojciech Meyer
  0 siblings, 1 reply; 10+ messages in thread
From: Daniel Bünzli @ 2012-07-02 14:31 UTC (permalink / raw)
  To: Wojciech Meyer; +Cc: caml-list, Edgar Friendly



Le lundi, 2 juillet 2012 à 16:04, Wojciech Meyer a écrit :

> You can simply reissue:
>  
> ocaml setup.ml -build
> ocaml setup.ml -install
>  
> in ~/.odb/install-type_conv/type_conv-108.00.01/
>  
> that should work.

Thanks. That did it --- however it installed the whole thing in `/usr/local/lib/ocaml/site-lib/type_conv/`, but I don't really care.  

Except that problem, oasis 0.0.3 installed fine with odb and ocaml 4.00.0+beta2 on osx 10.7.4 simply with :

    ocaml odb.ml --unstable oasis

Best,

Daniel



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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb
  2012-07-02 14:31     ` Daniel Bünzli
@ 2012-07-02 14:52       ` Wojciech Meyer
  0 siblings, 0 replies; 10+ messages in thread
From: Wojciech Meyer @ 2012-07-02 14:52 UTC (permalink / raw)
  To: Daniel Bünzli; +Cc: caml-list, Edgar Friendly

On Mon, Jul 2, 2012 at 3:31 PM, Daniel Bünzli
<daniel.buenzli@erratique.ch> wrote:

> Thanks. That did it --- however it installed the whole thing in `/usr/local/lib/ocaml/site-lib/type_conv/`, but I don't really care.

Strange - it should do the right thing, perhaps you have another
installation of OCaml, usually I do everything from home when using odb,
so the "bin" directory containing current ocaml binaries is a just below
the root of the distro. Otherwise you can always specify the location in the
configure step.

-- 
Wojciech

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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb
  2012-07-02 13:59 ` [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb Daniel Bünzli
  2012-07-02 14:04   ` Wojciech Meyer
  2012-07-02 14:29   ` Edgar Friendly
@ 2012-07-09  1:49   ` Francois Berenger
  2 siblings, 0 replies; 10+ messages in thread
From: Francois Berenger @ 2012-07-09  1:49 UTC (permalink / raw)
  To: caml-list

On 07/02/2012 10:59 PM, Daniel Bünzli wrote:
>
>
> Le lundi, 2 juillet 2012 à 11:18, Sylvain Le Gall a écrit :
>
>> I think Jane Street Core team added the "-w @Aemr-28" flags. They did
>> it in myocamlbuild.ml section not managed by OASIS. The only solution
>> is to change by hand.
>
> Mmmh. I'm a little bit stuck (too lazy to delve into odb.ml, in fact).

Don't hesitate to propose patches for odb.ml, the code is fairly simple
and completely standalone. Also, github is very nice for collaborating.

> Tried to remove the flag manually in `~/.odb/install-type_conv/type_conv-108.00.01/myocamlbuild.ml` but it seems that when I reissue `odb --unstable type_conv`, odb restarts everything from scratch, download included.
>
> There is `--get` that only downloads and extracts the package is there a flag like `--no-get` to be able to start from that state in odb ?

Another way would be to create your own tarball, already patched, then 
give it to odb via your ~/.odb/packages file.

Regards,
F.

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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv
  2012-07-02 13:01 ` Gabriel Scherer
@ 2012-07-09 16:05   ` Damien Doligez
  0 siblings, 0 replies; 10+ messages in thread
From: Damien Doligez @ 2012-07-09 16:05 UTC (permalink / raw)
  To: caml users; +Cc: ocaml-core

I think I'm the one to blame here: I chose the @ character for
this purpose.

A workaround for the authors of the original software (and indeed
a portability note for all OCaml software):

Instead of "-w @Aemr-28", you can use "-w A@Aemr-28", which will
do exactly the same thing, without triggering the bug.  Just avoid
having the @ at the beginning of the argument.

-- Damien



On 2012-07-02, at 15:01, Gabriel Scherer wrote:

> I react to "the @ issue on Windows", because I'm the one to blame in this case.
> 
> This was discussed on the OCaml bug tracker (
> http://caml.inria.fr/mantis/view.php?id=5312 ) and later on the Caml
> mailing-list ( http://www.mail-archive.com/caml-list@inria.fr/msg01993.html
> ), and it was decided to remove support for @responsefiles from OCaml
> to solve that conflict with the warning specification syntax.
> 
> Fate assigned the bug to me, but I've been busy with other things and
> have not implemented it (if someone wants to help on this, feel
> free!). As we're late in the release process, I don't think it would
> go in for 4.00, so the best bet for now is to consider this warning
> specification unportable and use -warn-error instead.
> 
> I welcome feedback on such issues on the bugtracker or mailing-list;
> feedback helps setting good priorities.
> Sorry for not taking care of this earlier.
> 
> On Mon, Jul 2, 2012 at 11:18 AM, Sylvain Le Gall <sylvain@le-gall.net> wrote:
>> Hi,
>> 
>> 2012/7/2 Daniel Bünzli <daniel.buenzli@erratique.ch>:
>>> Hello,
>>> 
>>> Trying to install with odb.ml and ocaml 4.00.0+beta2, with
>>> 
>>> ocaml odb.ml --unstable oasis
>>> 
>>> But typeconv fails with [1]. Is there a magic invocation to override that warnings are errors flag ?
>>> 
>> 
>> I think Jane Street Core team added the "-w @Aemr-28" flags. They did
>> it in myocamlbuild.ml section not managed by OASIS. The only solution
>> is to change by hand.
>> 
>> I CC the core mailing list which will provide you more information
>> about this issue (I have the same kind of issue because of "@" on
>> Windows).
>> 
>>> Thanks,
>>> 
>>> Daniel
>>> 
>>> [1]
>>> 
>>> Configuration:
>>> ocamlfind: ........................................... /usr/local/bin/ocamlfind
>>> ocamlc: .............................................. /usr/local/bin/ocamlc.opt
>>> ocamlopt: ............................................ /usr/local/bin/ocamlopt.opt
>>> ocamlbuild: .......................................... /usr/local/bin/ocamlbuild
>>> Package name: ........................................ type_conv
>>> Package version: ..................................... 108.00.01
>>> os_type: ............................................. Unix
>>> system: .............................................. macosx
>>> architecture: ........................................ amd64
>>> ccomp_type: .......................................... cc
>>> ocaml_version: ....................................... 4.00.0
>>> standard_library_default: ............................ /usr/local/lib/ocaml
>>> standard_library: .................................... /usr/local/lib/ocaml
>>> standard_runtime: .................................... /usr/local/bin/ocamlrun
>>> bytecomp_c_compiler: ................................. gcc -fno-defer-pop -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>>> native_c_compiler: ................................... gcc -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>>> model: ............................................... default
>>> ext_obj: ............................................. .o
>>> ext_asm: ............................................. .s
>>> ext_lib: ............................................. .a
>>> ext_dll: ............................................. .so
>>> default_executable_name: ............................. a.out
>>> systhread_supported: ................................. true
>>> Install architecture-independent files dir: .......... /Users/dbuenzli/.odb
>>> Install architecture-dependent files in dir: ......... $prefix
>>> User executables: .................................... $exec_prefix/bin
>>> System admin executables: ............................ $exec_prefix/sbin
>>> Program executables: ................................. $exec_prefix/libexec
>>> Read-only single-machine data: ....................... $prefix/etc
>>> Modifiable architecture-independent data: ............ $prefix/com
>>> Modifiable single-machine data: ...................... $prefix/var
>>> Object code libraries: ............................... $exec_prefix/lib
>>> Read-only arch-independent data root: ................ $prefix/share
>>> Read-only architecture-independent data: ............. $datarootdir
>>> Info documentation: .................................. $datarootdir/info
>>> Locale-dependent data: ............................... $datarootdir/locale
>>> Man documentation: ................................... $datarootdir/man
>>> Documentation root: .................................. $datarootdir/doc/$pkg_name
>>> HTML documentation: .................................. $docdir
>>> DVI documentation: ................................... $docdir
>>> PDF documentation: ................................... $docdir
>>> PS documentation: .................................... $docdir
>>> findlib_version: ..................................... 1.3.2
>>> is_native: ........................................... true
>>> suffix_program: ......................................
>>> Remove a file.: ...................................... rm -f
>>> Remove a directory.: ................................. rm -rf
>>> Turn ocaml debug flag on: ............................ true
>>> Turn ocaml profile flag on: .......................... false
>>> Compiler support generation of .cmxs.: ............... true
>>> OCamlbuild additional flags: .........................
>>> Create documentations: ............................... true
>>> Compile tests executable and library and run them: ... false
>>> camlp4o: ............................................. /usr/local/bin/camlp4o
>>> pkg_camlp4_quotations: ............................... /usr/local/lib/ocaml/camlp4
>>> pkg_camlp4_extend: ................................... /usr/local/lib/ocaml/camlp4
>>> ocamldoc: ............................................ /usr/local/bin/ocamldoc
>>> Finished, 1 target (0 cached) in 00:00:00.
>>> getconf: no such configuration parameter `LFS64_CFLAGS'
>>> + ocamlfind ocamlc -c -g -w @Aemr-28 -strict-sequence -package camlp4.quotations -package camlp4.extend -syntax camlp4o -I lib -o lib/pa_type_conv.cmo lib/pa_type_conv.ml
>>> File "lib/pa_type_conv.ml", line 275, characters 19-1267:
>>> Warning 8: this pattern-matching is not exhaustive.
>>> Here is an example of a value that is not matched:
>>> (TyTypePol (_, _, _)|TyAnP _|TyAnM _)
>>> File "lib/pa_type_conv.ml", line 4, characters 0-11:
>>> Warning 33: unused open Lexing.
>>> File "lib/pa_type_conv.ml", line 12, characters 4-8:
>>> Warning 32: unused value both.
>>> File "lib/pa_type_conv.ml", line 1:
>>> Error: Error-enabled warnings (3 occurrences)
>>> Command exited with code 2.
>>> Compilation unsuccessful after building 4 targets (0 cached) in 00:00:01.
>>> E: Failure("Command '/usr/local/bin/ocamlbuild lib/pa_type_conv.cma -tag debug' terminated with error code 10")
>>> Exception: Failure "Could not build type_conv".
>>> 
>>> 
>>> 
>> 
>> --
>> Caml-list mailing list.  Subscription management and archives:
>> https://sympa-roc.inria.fr/wws/info/caml-list
>> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
>> Bug reports: http://caml.inria.fr/bin/caml-bugs
>> 
> 
> -- 
> Caml-list mailing list.  Subscription management and archives:
> https://sympa-roc.inria.fr/wws/info/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs


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

* Re: [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb
  2012-07-02 14:29   ` Edgar Friendly
@ 2012-07-13  3:29     ` Francois Berenger
  0 siblings, 0 replies; 10+ messages in thread
From: Francois Berenger @ 2012-07-13  3:29 UTC (permalink / raw)
  To: caml-list

On 07/02/2012 11:29 PM, Edgar Friendly wrote:
> On 07/02/2012 09:59 AM, Daniel Bünzli wrote:
>>
>>
>> Le lundi, 2 juillet 2012 à 11:18, Sylvain Le Gall a écrit :
>>
>>> I think Jane Street Core team added the "-w @Aemr-28" flags. They did
>>> it in myocamlbuild.ml section not managed by OASIS. The only solution
>>> is to change by hand.
>>
>> Mmmh. I'm a little bit stuck (too lazy to delve into odb.ml, in fact).
>>
>> Tried to remove the flag manually in
>> `~/.odb/install-type_conv/type_conv-108.00.01/myocamlbuild.ml` but it
>> seems that when I reissue `odb --unstable type_conv`, odb restarts
>> everything from scratch, download included.
>>
>> There is `--get` that only downloads and extracts the package is there
>> a flag like `--no-get` to be able to start from that state in odb ?
>>
>> Best,
>>
>> Daniel
>>
>>
>
> At the moment, the way to have odb.ml install a package from a local
> directory is to add it to your packages file, like this:
>
> type_conv dir=~/.odb/install-type_conv/type_conv-108.00.01
>
> At the moment, odb allows the use of tarballs (http or local) on the
> command line, but doesn't properly handle local directories.  I'll see
> if I can add support for this quickly.

Edgar added support for local directories.

This allows users who have a locally patched version of some ocaml 
package to install it without the need to create a tarball.

I know at least one user who wanted this.

Regards,
F.

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

end of thread, other threads:[~2012-07-13  3:29 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-02  9:18 [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv Sylvain Le Gall
2012-07-02 13:01 ` Gabriel Scherer
2012-07-09 16:05   ` Damien Doligez
2012-07-02 13:59 ` [was: [Caml-list] [ANN] oasis v0.3.0: Architecture for building OCaml libraries and applications] Pb with type_conv & odb Daniel Bünzli
2012-07-02 14:04   ` Wojciech Meyer
2012-07-02 14:31     ` Daniel Bünzli
2012-07-02 14:52       ` Wojciech Meyer
2012-07-02 14:29   ` Edgar Friendly
2012-07-13  3:29     ` Francois Berenger
2012-07-09  1:49   ` Francois Berenger

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