Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile of driver/optcompile.ml fails #4527

Closed
vicuna opened this issue Apr 6, 2008 · 0 comments
Closed

Compile of driver/optcompile.ml fails #4527

vicuna opened this issue Apr 6, 2008 · 0 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Apr 6, 2008

Original bug ID: 4527
Reporter: spiralvoice
Status: closed (set by @damiendoligez on 2008-04-07T11:15:00Z)
Resolution: fixed
Priority: normal
Severity: block
Version: 3.10.3+dev
Fixed in version: 3.10.3+dev
Category: ~DO NOT USE (was: OCaml general)

Bug description

Using Debian unstable, gcc-4.3:

boot/ocamlrun boot/ocamlc -nostdlib -I boot -warn-error A -I utils -I parsing -I typing -I bytecomp -I asmcomp -I driver -I toplevel -c driver/optcompile.ml
File "driver/optcompile.ml", line 97, characters 10-17:
Warning Y: unused variable objfile.
File "driver/optcompile.ml", line 112, characters 16-23:
Unbound value objfile
make: *** [driver/optcompile.cmo] Fehler 2

using CVS checkout of branch release310

cat ocaml/VERSION

3.10.3+dev1 (2008-03-12)

This bug seems to be caused by the last code check-in:
http://camlcvs.inria.fr/cgi-bin/cvsweb/ocaml/driver/optcompile.ml.diff?r1=1.53;r2=1.53.10.1;f=h

Additional information

The new code lines

  let cmxfile = outputprefix ^ ".cmx" in
  let objfile = outputprefix ^ ext_obj in

must be moved before

  try
    if !Clflags.print_types then ignore(

to fix the problem.

@vicuna vicuna closed this as completed Apr 7, 2008
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant