caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Error when compiling 4.02.2 in centos
@ 2015-06-23 12:30 Leonardo Laguna Ruiz
  2015-06-26 20:26 ` Richard W.M. Jones
  0 siblings, 1 reply; 3+ messages in thread
From: Leonardo Laguna Ruiz @ 2015-06-23 12:30 UTC (permalink / raw)
  To: caml-list

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

Hi,

I'm trying to compile ocaml 4.02.2 in a computer with centos 6.6 using 
opam but I get the following error message:


../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -strict-sequence 
-w +27+32..39 -warn-error A -safe-string -I ../utils -I ../parsing -I 
../typing -I ../bytecomp -I ../asmcomp -I ../driver -I ../toplevel 
objinfo.ml
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -o objinfo 
../compilerlibs/ocamlcommon.cma ../compilerlibs/ocamlbytecomp.cma 
../asmcomp/printclambda.cmo objinfo.cmo
../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -strict-sequence 
-w +27+32..39 -warn-error A -safe-string -I ../utils -I ../parsing -I 
../typing -I ../bytecomp -I ../asmcomp -I ../driver -I ../toplevel 
../utils/warnings.ml
File "../utils/warnings.ml", line 219, characters 6-7:
Warning 27: unused variable c.
File "../utils/warnings.ml", line 363, characters 20-25:
Warning 27: unused variable slist.
File "../utils/warnings.ml", line 1:
*Error: Some fatal warnings were triggered (2 occurrences)*
make[4]: *** [../utils/warnings.cmo] Error 2
make[4]: Leaving directory `/home/leonardo/Development/ocaml-4.02.2/tools'
make[3]: *** [ocamltools] Error 2
make[3]: Leaving directory `/home/leonardo/Development/ocaml-4.02.2'
make[2]: *** [coreall] Error 2
make[2]: Leaving directory `/home/leonardo/Development/ocaml-4.02.2'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/leonardo/Development/ocaml-4.02.2'
make: *** [world] Error 2


Any idea why I don't get this problem in any other computer?

Leonardo

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

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

* Re: [Caml-list] Error when compiling 4.02.2 in centos
  2015-06-23 12:30 [Caml-list] Error when compiling 4.02.2 in centos Leonardo Laguna Ruiz
@ 2015-06-26 20:26 ` Richard W.M. Jones
  2015-06-29  6:30   ` Leonardo Laguna Ruiz
  0 siblings, 1 reply; 3+ messages in thread
From: Richard W.M. Jones @ 2015-06-26 20:26 UTC (permalink / raw)
  To: Leonardo Laguna Ruiz; +Cc: caml-list

On Tue, Jun 23, 2015 at 02:30:56PM +0200, Leonardo Laguna Ruiz wrote:
> Hi,
> 
> I'm trying to compile ocaml 4.02.2 in a computer with centos 6.6 using opam
> but I get the following error message:
> 
> 
> ../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -strict-sequence -w
> +27+32..39 -warn-error A -safe-string -I ../utils -I ../parsing -I ../typing
> -I ../bytecomp -I ../asmcomp -I ../driver -I ../toplevel objinfo.ml
> ../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -o objinfo
> ../compilerlibs/ocamlcommon.cma ../compilerlibs/ocamlbytecomp.cma
> ../asmcomp/printclambda.cmo objinfo.cmo
> ../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -strict-sequence -w
> +27+32..39 -warn-error A -safe-string -I ../utils -I ../parsing -I ../typing
> -I ../bytecomp -I ../asmcomp -I ../driver -I ../toplevel
> ../utils/warnings.ml
> File "../utils/warnings.ml", line 219, characters 6-7:
> Warning 27: unused variable c.
> File "../utils/warnings.ml", line 363, characters 20-25:
> Warning 27: unused variable slist.
> File "../utils/warnings.ml", line 1:
> *Error: Some fatal warnings were triggered (2 occurrences)*

Somehow you're using -warn-error A.  Maybe opam added that?

In any case I believe that the OCaml developers warn against turning
every warning into an error, although I cannot find where I read that.

Rich.

-- 
Richard Jones
Red Hat

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

* Re: [Caml-list] Error when compiling 4.02.2 in centos
  2015-06-26 20:26 ` Richard W.M. Jones
@ 2015-06-29  6:30   ` Leonardo Laguna Ruiz
  0 siblings, 0 replies; 3+ messages in thread
From: Leonardo Laguna Ruiz @ 2015-06-29  6:30 UTC (permalink / raw)
  To: Richard W.M. Jones; +Cc: caml-list

I kept digging and found that if I install the BDF library I don't get 
that error. Maybe having this library installed changes the build process.

Leonardo

On 2015-06-26 22:26, Richard W.M. Jones wrote:
> On Tue, Jun 23, 2015 at 02:30:56PM +0200, Leonardo Laguna Ruiz wrote:
>> Hi,
>>
>> I'm trying to compile ocaml 4.02.2 in a computer with centos 6.6 using opam
>> but I get the following error message:
>>
>>
>> ../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -strict-sequence -w
>> +27+32..39 -warn-error A -safe-string -I ../utils -I ../parsing -I ../typing
>> -I ../bytecomp -I ../asmcomp -I ../driver -I ../toplevel objinfo.ml
>> ../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -o objinfo
>> ../compilerlibs/ocamlcommon.cma ../compilerlibs/ocamlbytecomp.cma
>> ../asmcomp/printclambda.cmo objinfo.cmo
>> ../boot/ocamlrun ../boot/ocamlc -nostdlib -I ../boot -c -strict-sequence -w
>> +27+32..39 -warn-error A -safe-string -I ../utils -I ../parsing -I ../typing
>> -I ../bytecomp -I ../asmcomp -I ../driver -I ../toplevel
>> ../utils/warnings.ml
>> File "../utils/warnings.ml", line 219, characters 6-7:
>> Warning 27: unused variable c.
>> File "../utils/warnings.ml", line 363, characters 20-25:
>> Warning 27: unused variable slist.
>> File "../utils/warnings.ml", line 1:
>> *Error: Some fatal warnings were triggered (2 occurrences)*
> Somehow you're using -warn-error A.  Maybe opam added that?
>
> In any case I believe that the OCaml developers warn against turning
> every warning into an error, although I cannot find where I read that.
>
> Rich.
>


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

end of thread, other threads:[~2015-06-29  6:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-23 12:30 [Caml-list] Error when compiling 4.02.2 in centos Leonardo Laguna Ruiz
2015-06-26 20:26 ` Richard W.M. Jones
2015-06-29  6:30   ` Leonardo Laguna Ruiz

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