caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Some warnings, when building opt.opt from 4.00.1
@ 2013-02-18  6:55 oliver
  2013-02-18 10:39 ` Gabriel Scherer
  0 siblings, 1 reply; 3+ messages in thread
From: oliver @ 2013-02-18  6:55 UTC (permalink / raw)
  To: caml-list

Hello,

I did not followed with my eyes the whole time,
while making OCaml 4.00, but this stuff I found,
when doing
 $ make opt.opt:

======================
  [...]
camlp4/Camlp4Filters/Camlp4TrashRemover.o
../ocamlcomp.sh dynlink.cma -g -I stdlib -I ../otherlibs/dynlink stdlib/arg.cmo stdlib/array.cmo stdlib/buffer.cmo stdlib/char.cmo stdlib/filename.cmo stdlib/format.cmo stdlib/hashtbl.cmo stdlib/lexing.cmo stdlib/list.cmo stdlib/parsing.cmo stdlib/pervasives.cmo stdlib/printf.cmo stdlib/string.cmo stdlib/sys.cmo camlp4/Camlp4_import.cmo camlp4/Camlp4_config.cmo stdlib/int32.cmo stdlib/int64.cmo stdlib/nativeint.cmo stdlib/obj.cmo stdlib/queue.cmo stdlib/set.cmo stdlib/sort.cmo stdlib/stream.cmo camlp4/boot/Camlp4.cmo stdlib/lazy.cmo stdlib/stack.cmo camlp4/boot/camlp4boot.cmo -o camlp4/boot/camlp4boot.byte
File "stdlib/arg.cmo", line 1:
Warning 31: files stdlib/arg.cmo and ../stdlib/stdlib.cma(Arg) both define a module named Arg
File "stdlib/array.cmo", line 1:
Warning 31: files stdlib/array.cmo and ../stdlib/stdlib.cma(Array) both define a module named Array
File "stdlib/buffer.cmo", line 1:
Warning 31: files stdlib/buffer.cmo and ../stdlib/stdlib.cma(Buffer) both define a module named Buffer
File "stdlib/char.cmo", line 1:
Warning 31: files stdlib/char.cmo and ../stdlib/stdlib.cma(Char) both define a module named Char
File "stdlib/filename.cmo", line 1:
Warning 31: files stdlib/filename.cmo and ../stdlib/stdlib.cma(Filename) both define a module named Filename
File "stdlib/format.cmo", line 1:
Warning 31: files stdlib/format.cmo and ../stdlib/stdlib.cma(Format) both define a module named Format
File "stdlib/hashtbl.cmo", line 1:
Warning 31: files stdlib/hashtbl.cmo and ../stdlib/stdlib.cma(Hashtbl) both define a module named Hashtbl
File "stdlib/lexing.cmo", line 1:
Warning 31: files stdlib/lexing.cmo and ../stdlib/stdlib.cma(Lexing) both define a module named Lexing
File "stdlib/list.cmo", line 1:
Warning 31: files stdlib/list.cmo and ../stdlib/stdlib.cma(List) both define a module named List
File "stdlib/parsing.cmo", line 1:
Warning 31: files stdlib/parsing.cmo and ../stdlib/stdlib.cma(Parsing) both define a module named Parsing
File "stdlib/pervasives.cmo", line 1:
Warning 31: files stdlib/pervasives.cmo and ../stdlib/stdlib.cma(Pervasives) both define a module named Pervasives
File "stdlib/printf.cmo", line 1:
Warning 31: files stdlib/printf.cmo and ../stdlib/stdlib.cma(Printf) both define a module named Printf
File "stdlib/string.cmo", line 1:
Warning 31: files stdlib/string.cmo and ../stdlib/stdlib.cma(String) both define a module named String
File "stdlib/sys.cmo", line 1:
Warning 31: files stdlib/sys.cmo and ../stdlib/stdlib.cma(Sys) both define a module named Sys
File "stdlib/int32.cmo", line 1:
Warning 31: files stdlib/int32.cmo and ../stdlib/stdlib.cma(Int32) both define a module named Int32
File "stdlib/int64.cmo", line 1:
Warning 31: files stdlib/int64.cmo and ../stdlib/stdlib.cma(Int64) both define a module named Int64
File "stdlib/nativeint.cmo", line 1:
Warning 31: files stdlib/nativeint.cmo and ../stdlib/stdlib.cma(Nativeint) both define a module named Nativeint
File "stdlib/obj.cmo", line 1:
Warning 31: files stdlib/obj.cmo and ../stdlib/stdlib.cma(Obj) both define a module named Obj
File "stdlib/queue.cmo", line 1:
Warning 31: files stdlib/queue.cmo and ../stdlib/stdlib.cma(Queue) both define a module named Queue
File "stdlib/set.cmo", line 1:
Warning 31: files stdlib/set.cmo and ../stdlib/stdlib.cma(Set) both define a module named Set
File "stdlib/sort.cmo", line 1:
Warning 31: files stdlib/sort.cmo and ../stdlib/stdlib.cma(Sort) both define a module named Sort
File "stdlib/stream.cmo", line 1:
Warning 31: files stdlib/stream.cmo and ../stdlib/stdlib.cma(Stream) both define a module named Stream
File "stdlib/stack.cmo", line 1:
Warning 31: files stdlib/stack.cmo and ../stdlib/stdlib.cma(Stack) both define a module named Stack
../ocamlcompopt.sh -nostdlib -c -g -warn-error A -I camlp4 -I stdlib -o camlp4/Camlp4_import.cmx camlp4/Camlp4_import.ml
../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4 -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/Sig.cmx camlp4/Camlp4/Sig.ml
../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4 -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/OCamlInitSyntax.cmx camlp4/Camlp4/OCamlInitSyntax.ml
../ocamlcompopt.sh -nostdlib -c -g -warn-error A -w Z -I camlp4 -I stdlib -o camlp4/Camlp4_config.cmx camlp4/Camlp4_config.ml
../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4 -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/ErrorHandler.cmx camlp4/Camlp4/ErrorHandler.ml
../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4.Struct -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4/Struct -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/Struct/Loc.cmx camlp4/Camlp4/Struct/Loc.ml
../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4.Struct -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4/Struct -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/Struct/Token.cmx camlp4/Camlp4/Struct/Token.ml
[...]
======================


Ciao,
   Oliver

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

* Re: [Caml-list] Some warnings, when building opt.opt from 4.00.1
  2013-02-18  6:55 [Caml-list] Some warnings, when building opt.opt from 4.00.1 oliver
@ 2013-02-18 10:39 ` Gabriel Scherer
  2013-02-18 10:55   ` Fabrice Le Fessant
  0 siblings, 1 reply; 3+ messages in thread
From: Gabriel Scherer @ 2013-02-18 10:39 UTC (permalink / raw)
  To: oliver; +Cc: caml-list

This is a known build issue that appears since the addition of a
warning when the same bytecode module is linked twice:
  http://caml.inria.fr/mantis/view.php?id=5461

The subtleties of the compiler bootstrapping process make it difficult
to fix in a satisfying way, so for now it has been left as is.

On Mon, Feb 18, 2013 at 7:55 AM, oliver <oliver@first.in-berlin.de> wrote:
> Hello,
>
> I did not followed with my eyes the whole time,
> while making OCaml 4.00, but this stuff I found,
> when doing
>  $ make opt.opt:
>
> ======================
>   [...]
> camlp4/Camlp4Filters/Camlp4TrashRemover.o
> ../ocamlcomp.sh dynlink.cma -g -I stdlib -I ../otherlibs/dynlink stdlib/arg.cmo stdlib/array.cmo stdlib/buffer.cmo stdlib/char.cmo stdlib/filename.cmo stdlib/format.cmo stdlib/hashtbl.cmo stdlib/lexing.cmo stdlib/list.cmo stdlib/parsing.cmo stdlib/pervasives.cmo stdlib/printf.cmo stdlib/string.cmo stdlib/sys.cmo camlp4/Camlp4_import.cmo camlp4/Camlp4_config.cmo stdlib/int32.cmo stdlib/int64.cmo stdlib/nativeint.cmo stdlib/obj.cmo stdlib/queue.cmo stdlib/set.cmo stdlib/sort.cmo stdlib/stream.cmo camlp4/boot/Camlp4.cmo stdlib/lazy.cmo stdlib/stack.cmo camlp4/boot/camlp4boot.cmo -o camlp4/boot/camlp4boot.byte
> File "stdlib/arg.cmo", line 1:
> Warning 31: files stdlib/arg.cmo and ../stdlib/stdlib.cma(Arg) both define a module named Arg
> File "stdlib/array.cmo", line 1:
> Warning 31: files stdlib/array.cmo and ../stdlib/stdlib.cma(Array) both define a module named Array
> File "stdlib/buffer.cmo", line 1:
> Warning 31: files stdlib/buffer.cmo and ../stdlib/stdlib.cma(Buffer) both define a module named Buffer
> File "stdlib/char.cmo", line 1:
> Warning 31: files stdlib/char.cmo and ../stdlib/stdlib.cma(Char) both define a module named Char
> File "stdlib/filename.cmo", line 1:
> Warning 31: files stdlib/filename.cmo and ../stdlib/stdlib.cma(Filename) both define a module named Filename
> File "stdlib/format.cmo", line 1:
> Warning 31: files stdlib/format.cmo and ../stdlib/stdlib.cma(Format) both define a module named Format
> File "stdlib/hashtbl.cmo", line 1:
> Warning 31: files stdlib/hashtbl.cmo and ../stdlib/stdlib.cma(Hashtbl) both define a module named Hashtbl
> File "stdlib/lexing.cmo", line 1:
> Warning 31: files stdlib/lexing.cmo and ../stdlib/stdlib.cma(Lexing) both define a module named Lexing
> File "stdlib/list.cmo", line 1:
> Warning 31: files stdlib/list.cmo and ../stdlib/stdlib.cma(List) both define a module named List
> File "stdlib/parsing.cmo", line 1:
> Warning 31: files stdlib/parsing.cmo and ../stdlib/stdlib.cma(Parsing) both define a module named Parsing
> File "stdlib/pervasives.cmo", line 1:
> Warning 31: files stdlib/pervasives.cmo and ../stdlib/stdlib.cma(Pervasives) both define a module named Pervasives
> File "stdlib/printf.cmo", line 1:
> Warning 31: files stdlib/printf.cmo and ../stdlib/stdlib.cma(Printf) both define a module named Printf
> File "stdlib/string.cmo", line 1:
> Warning 31: files stdlib/string.cmo and ../stdlib/stdlib.cma(String) both define a module named String
> File "stdlib/sys.cmo", line 1:
> Warning 31: files stdlib/sys.cmo and ../stdlib/stdlib.cma(Sys) both define a module named Sys
> File "stdlib/int32.cmo", line 1:
> Warning 31: files stdlib/int32.cmo and ../stdlib/stdlib.cma(Int32) both define a module named Int32
> File "stdlib/int64.cmo", line 1:
> Warning 31: files stdlib/int64.cmo and ../stdlib/stdlib.cma(Int64) both define a module named Int64
> File "stdlib/nativeint.cmo", line 1:
> Warning 31: files stdlib/nativeint.cmo and ../stdlib/stdlib.cma(Nativeint) both define a module named Nativeint
> File "stdlib/obj.cmo", line 1:
> Warning 31: files stdlib/obj.cmo and ../stdlib/stdlib.cma(Obj) both define a module named Obj
> File "stdlib/queue.cmo", line 1:
> Warning 31: files stdlib/queue.cmo and ../stdlib/stdlib.cma(Queue) both define a module named Queue
> File "stdlib/set.cmo", line 1:
> Warning 31: files stdlib/set.cmo and ../stdlib/stdlib.cma(Set) both define a module named Set
> File "stdlib/sort.cmo", line 1:
> Warning 31: files stdlib/sort.cmo and ../stdlib/stdlib.cma(Sort) both define a module named Sort
> File "stdlib/stream.cmo", line 1:
> Warning 31: files stdlib/stream.cmo and ../stdlib/stdlib.cma(Stream) both define a module named Stream
> File "stdlib/stack.cmo", line 1:
> Warning 31: files stdlib/stack.cmo and ../stdlib/stdlib.cma(Stack) both define a module named Stack
> ../ocamlcompopt.sh -nostdlib -c -g -warn-error A -I camlp4 -I stdlib -o camlp4/Camlp4_import.cmx camlp4/Camlp4_import.ml
> ../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4 -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/Sig.cmx camlp4/Camlp4/Sig.ml
> ../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4 -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/OCamlInitSyntax.cmx camlp4/Camlp4/OCamlInitSyntax.ml
> ../ocamlcompopt.sh -nostdlib -c -g -warn-error A -w Z -I camlp4 -I stdlib -o camlp4/Camlp4_config.cmx camlp4/Camlp4_config.ml
> ../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4 -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/ErrorHandler.cmx camlp4/Camlp4/ErrorHandler.ml
> ../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4.Struct -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4/Struct -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/Struct/Loc.cmx camlp4/Camlp4/Struct/Loc.ml
> ../ocamlcompopt.sh -nostdlib -c -for-pack Camlp4.Struct -g -warn-error A -w Z -pp 'boot/ocamlrun camlp4/boot/camlp4boot.byte -D OPT' -I camlp4/Camlp4/Struct -I camlp4/Camlp4 -I camlp4/build -I camlp4 -I stdlib -o camlp4/Camlp4/Struct/Token.cmx camlp4/Camlp4/Struct/Token.ml
> [...]
> ======================
>
>
> Ciao,
>    Oliver
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/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] 3+ messages in thread

* Re: [Caml-list] Some warnings, when building opt.opt from 4.00.1
  2013-02-18 10:39 ` Gabriel Scherer
@ 2013-02-18 10:55   ` Fabrice Le Fessant
  0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Le Fessant @ 2013-02-18 10:55 UTC (permalink / raw)
  To: Gabriel Scherer; +Cc: oliver, caml-list

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

Hi,

On 02/18/2013 11:40 AM, Gabriel Scherer wrote:
> This is a known build issue that appears since the addition of a
> warning when the same bytecode module is linked twice:
>    http://caml.inria.fr/mantis/view.php?id=5461
>
> The subtleties of the compiler bootstrapping process make it difficult
> to fix in a satisfying way, so for now it has been left as is.

I re-opened the bug. We had a first solution based on modifying scripts 
to ignore stdlib modules. I will test it and commit it if it works.

--Fabrice

[-- Attachment #2: fabrice_le_fessant.vcf --]
[-- Type: text/x-vcard, Size: 380 bytes --]

begin:vcard
fn:Fabrice LE FESSANT
n:LE FESSANT;Fabrice
org:INRIA Saclay -- Ile-de-France;P2P & OCaml
adr;quoted-printable:;;Parc Orsay Universit=C3=A9 ;Orsay CEDEX;;91893;France
email;internet:fabrice.le_fessant@inria.fr
title;quoted-printable:Charg=C3=A9 de Recherche
tel;work:+33 1 74 85 42 14
tel;fax:+33 1 74 85 42 49 
url:http://fabrice.lefessant.net/
version:2.1
end:vcard


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

end of thread, other threads:[~2013-02-18 10:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-18  6:55 [Caml-list] Some warnings, when building opt.opt from 4.00.1 oliver
2013-02-18 10:39 ` Gabriel Scherer
2013-02-18 10:55   ` 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).