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/ fails #4527

vicuna opened this Issue Apr 6, 2008 · 0 comments


None yet
1 participant
Copy link

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/
File "driver/", line 97, characters 10-17:
Warning Y: unused variable objfile.
File "driver/", 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:;r2=;f=h

Additional information

The new code lines

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

must be moved before

    if !Clflags.print_types then ignore(

to fix the problem.

@vicuna vicuna closed this 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
You can’t perform that action at this time.