New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #13846 (new defect)

Opened 5 years ago

Last modified 2 years ago

ocamlduce: build fails due to warnings turned into errors

Reported by: ludwig@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: dirkx@…
Port: ocamlduce

Description

My attempts to install ocamlduce 3.08.4pl3, Revision 1 failed because the build encountered warnings about unused variables and ocamlc.opt was passed the option -warn-error. This is on an Intel MacBook Pro with OS X 10.4.11.

castellio:~ cludwig$ port installed ocaml
The following ports are currently installed:
  ocaml @3.10.0_0 (active)
castellio:~ cludwig$ sudo port -v install ocamlduce
Password:
--->  Building ocamlduce with target opt
make -f Makefile.ocamlduce INCLUDES="-I stdlib/cduce" stdlib/cduce/custom.cmo stdlib/cduce/encodings.cmo stdlib/cduce/imap.cmo stdlib/cduce/upool.cmo stdlib/cduce/ns.cmo stdlib/cduce/sortedList.cmo stdlib/cduce/atoms.cmo stdlib/cduce/bool.cmo stdlib/cduce/chars.cmo stdlib/cduce/ident.cmo stdlib/cduce/intervals.cmo stdlib/cduce/inttbl.cmo stdlib/cduce/normal.cmo stdlib/cduce/pretty.cmo stdlib/cduce/stats.cmo stdlib/cduce/compunit.cmo stdlib/cduce/types.cmo stdlib/cduce/sequence.cmo stdlib/cduce/sample.cmo stdlib/cduce/auto_pat.cmo stdlib/cduce/patterns.cmo stdlib/cduce/value.cmo stdlib/cduce/run_dispatch.cmo stdlib/cduce/explain.cmo stdlib/cduce/typepat.cmo stdlib/cduce/serial.cmo
make[1]: `stdlib/cduce/custom.cmo' is up to date.
ocamlc.opt -warn-error A -I stdlib/cduce -c stdlib/cduce/encodings.ml
File "stdlib/cduce/encodings.ml", line 121, characters 8-27:
Warning Y: unused variable c.
File "stdlib/cduce/encodings.ml", line 122, characters 8-27:
Warning Y: unused variable c.
File "stdlib/cduce/encodings.ml", line 123, characters 8-27:
Warning Y: unused variable c.
File "stdlib/cduce/encodings.ml", line 124, characters 8-27:
Warning Y: unused variable c.

Error: error-enabled warnings (4 occurrences)
make[1]: *** [stdlib/cduce/encodings.cmo] Error 2
make: *** [cduce_types.cmo] Error 2
Error: Target org.macports.build returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_ocamlduce/work/ocaml-sub" && make opt -f Makefile.ocamlduce " returned error 2
Command output: make -f Makefile.ocamlduce INCLUDES="-I stdlib/cduce" stdlib/cduce/custom.cmo stdlib/cduce/encodings.cmo stdlib/cduce/imap.cmo stdlib/cduce/upool.cmo stdlib/cduce/ns.cmo stdlib/cduce/sortedList.cmo stdlib/cduce/atoms.cmo stdlib/cduce/bool.cmo stdlib/cduce/chars.cmo stdlib/cduce/ident.cmo stdlib/cduce/intervals.cmo stdlib/cduce/inttbl.cmo stdlib/cduce/normal.cmo stdlib/cduce/pretty.cmo stdlib/cduce/stats.cmo stdlib/cduce/compunit.cmo stdlib/cduce/types.cmo stdlib/cduce/sequence.cmo stdlib/cduce/sample.cmo stdlib/cduce/auto_pat.cmo stdlib/cduce/patterns.cmo stdlib/cduce/value.cmo stdlib/cduce/run_dispatch.cmo stdlib/cduce/explain.cmo stdlib/cduce/typepat.cmo stdlib/cduce/serial.cmo
make[1]: `stdlib/cduce/custom.cmo' is up to date.
ocamlc.opt -warn-error A -I stdlib/cduce -c stdlib/cduce/encodings.ml
File "stdlib/cduce/encodings.ml", line 121, characters 8-27:
Warning Y: unused variable c.
File "stdlib/cduce/encodings.ml", line 122, characters 8-27:
Warning Y: unused variable c.
File "stdlib/cduce/encodings.ml", line 123, characters 8-27:
Warning Y: unused variable c.
File "stdlib/cduce/encodings.ml", line 124, characters 8-27:
Warning Y: unused variable c.

Error: error-enabled warnings (4 occurrences)
make[1]: *** [stdlib/cduce/encodings.cmo] Error 2
make: *** [cduce_types.cmo] Error 2

Warning: the following items did not execute (for ocamlduce): org.macports.activate org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.
castellio:~ cludwig$ 

Change History

comment:1 Changed 5 years ago by jmpp@…

  • Milestone set to Port Bugs

comment:2 Changed 5 years ago by ryandesign@…

  • Cc dirkx@… added; ludwig@… removed

Has duplicate #14688.

comment:3 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

comment:4 Changed 4 years ago by ryandesign@…

  • Cc anil@… removed
  • Keywords ocamlduce removed
  • Port set to ocamlduce
  • Owner changed from macports-tickets@… to anil@…
  • Summary changed from OCamlDuce port install fails due to warnings turned into errors to ocamlduce: build fails due to warnings turned into errors

comment:5 Changed 2 years ago by jmr@…

  • Owner changed from anil@… to macports-tickets@…
Note: See TracTickets for help on using tickets.