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

ocamlopt -pack bug: Fatal error: exception Not_found #3445

Closed
vicuna opened this issue Jul 20, 2002 · 2 comments
Closed

ocamlopt -pack bug: Fatal error: exception Not_found #3445

vicuna opened this issue Jul 20, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Jul 20, 2002

Original bug ID: 1252
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Charles Martin
Version: 3.04+15 (2002-06-18)
OS: FreeBSD 4.6-RELEASE-p1
Submission from: adsl-63-195-80-23.dsl.snfc21.pacbell.net (63.195.80.23)

ocamlopt fails with "Fatal error: exception Not_found" when files created with
the -pack option are not referenced. Here is a small test case to reproduce the
bug:

$ cat test.ml
let name = "OK"
$ ocamlopt -c -pack -o pack.cmx test.ml
$ cat main.ml
let _ = print_endline Test.name
$ ocamlopt -o main test.ml pack.cmx main.ml
Fatal error: exception Not_found

The error does not occur if main.ml includes a reference to Pack.Test.name,
whether or not it also includes a reference to Test.name. The error does not
occur when using ocamlc.

@vicuna
Copy link
Author

vicuna commented Jul 22, 2002

Comment author: administrator

ocamlopt fails with "Fatal error: exception Not_found" when files
created with the -pack option are not referenced.

There was indeed a bug in ocamlopt -pack, namely in the dependency
part of the generated .cmx file. This is now fixed; thanks for your
timely bug report.

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Jul 22, 2002

Comment author: administrator

Fixed 2002-07-22 by XL

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