Opened 17 years ago

Closed 7 years ago

#13846 closed defect (wontfix)

ocamlduce: build fails due to warnings turned into errors

Reported by: ludwig@… Owned by: pmetzger (Perry E. Metzger)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: dirkx (Dirk-Willem van Gulik)
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 (12)

comment:1 Changed 17 years ago by jmpalacios (Juan Manuel Palacios)

Milestone: Port Bugs

comment:2 Changed 16 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: dirkx@… added; ludwig@… removed

Has duplicate #14688.

comment:3 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

comment:4 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

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

comment:5 Changed 13 years ago by jmroot (Joshua Root)

Owner: changed from anil@… to macports-tickets@…

comment:6 Changed 10 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to mww@…

comment:7 Changed 8 years ago by mf2k (Frank Schima)

Owner: mww@… deleted
Status: newassigned

See #53012.

comment:8 Changed 7 years ago by pmetzger (Perry E. Metzger)

I believe mww has ceased to be a maintainer of the OCaml ports. Feel free to assign this to me for now.

comment:9 Changed 7 years ago by mojca (Mojca Miklavec)

Owner: set to pmetzger

comment:10 Changed 7 years ago by pmetzger (Perry E. Metzger)

Okay, so far as I can tell, this port has been broken for about a decade, and ocamlduce isn't really maintained (there are no patch sets for it against the current OCaml), and has no ports that depend upon it.

I'd like to propose removing the port, and taking the unusual step of not bothering to deprecate it in the Portfile given that it has been de facto non-functioning for so long that there can't be any current users.

comment:11 Changed 7 years ago by pmetzger (Perry E. Metzger)

I've removed the port and am going to close the ticket.

comment:12 Changed 7 years ago by pmetzger (Perry E. Metzger)

Resolution: wontfix
Status: assignedclosed
Note: See TracTickets for help on using tickets.