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

Trouble building: Unbound module Uunf_data #21

Closed
SnarkBoojum opened this issue Oct 5, 2022 · 7 comments
Closed

Trouble building: Unbound module Uunf_data #21

SnarkBoojum opened this issue Oct 5, 2022 · 7 comments

Comments

@SnarkBoojum
Copy link

I'm trying to package uunf for Debian, and I'm hitting the error below.

My build line is:

ocaml pkg/pkg.ml build --with-cmdliner true --with-uutf true

and the end of the build log is:

ocamlfind ocamldep -modules src/uunf.mli > src/uunf.mli.depends
ocamlfind ocamlc -c -g -bin-annot -safe-string -I src -I test -I support -o src/uunf.cmi src/uunf.mli
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I src -I test -I support -o src/uunf_tmap.cmx src/uunf_tmap.ml
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I src -I test -I support -o src/uunf_tmapbool.cmx src/uunf_tmapbool.ml
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I src -I test -I support -o src/uunf_tmapbyte.cmx src/uunf_tmapbyte.ml
ocamlfind ocamlopt -c -g -bin-annot -safe-string -I src -I test -I support -o src/uunf.cmx src/uunf.ml
+ ocamlfind ocamlopt -c -g -bin-annot -safe-string -I src -I test -I support -o src/uunf.cmx src/uunf.ml
File "src/uunf.ml", line 38, characters 39-65:
38 | let nfc_boundary u = Uunf_tmapbool.get Uunf_data.nfc_boundary_map u
                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^
Error: Unbound module Uunf_data
Command exited with code 2.
pkg.ml: [ERROR] cmd ['ocamlbuild' '-use-ocamlfind' '-classic-display' '-j' '4' '-tag' 'debug'
     '-build-dir' '_build' 'opam' 'pkg/META' 'CHANGES.md' 'LICENSE.md'
     'README.md' 'src/uunf.a' 'src/uunf.cmxs' 'src/uunf.cmxa' 'src/uunf.cma'
     'src/uunf.cmx' 'src/uunf.cmi' 'src/uunf.mli' 'src/uunf_data.cmx'
     'src/uunf_tmapbyte.cmx' 'src/uunf_tmapbool.cmx' 'src/uunf_tmap.cmx'
     'src/uunf_fmt.cmx' 'src/uunf_string.a' 'src/uunf_string.cmxs'
     'src/uunf_string.cmxa' 'src/uunf_string.cma' 'src/uunf_string.cmx'
     'src/uunf_string.cmi' 'src/uunf_string.mli' 'test/unftrip.native'
     'doc/index.mld' 'DEVEL.md' 'test/examples.ml']: exited with 10

I must be missing something obvious...

@dbuenzli
Copy link
Owner

dbuenzli commented Oct 5, 2022

@dbuenzli dbuenzli closed this as completed Oct 5, 2022
@dbuenzli
Copy link
Owner

dbuenzli commented Oct 5, 2022

I'm trying to package uunf for Debian,

Note you should use the distribution tarballs it has the generated data.

@SnarkBoojum
Copy link
Author

Well, I'm supposed to package using sources, so pre-generated stuff is out.

@SnarkBoojum
Copy link
Author

Thanks for your quick answer -- I had indeed missed something obvious!

(Notice the typo 'New unicod release' in DEVEL.md).

@dbuenzli
Copy link
Owner

dbuenzli commented Oct 5, 2022

I don't understand. Doesn't debian package from tarballs ?
The sources of a release are published here.

@SnarkBoojum
Copy link
Author

Sources means what developers use, so I should use as little pre-built stuff as possible.

@dbuenzli
Copy link
Owner

dbuenzli commented Oct 5, 2022

Sources means what developers use, so I should use as little pre-built stuff as possible.

Nothing is pre-built, sources are being generated. In general it's unwise to package from my repos. A function is applied on the sources to generate the source tarballs.

I'm still confused about what you are saying, the upstream tarballs are in the directory I pointed you to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants