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$
Has duplicate #14688.