clangml icon indicating copy to clipboard operation
clangml copied to clipboard

Error: Unbound value String.uppercase_ascii

Open ZhuSixiao opened this issue 8 years ago • 5 comments

File "tools/bridgen/codegen.ml", line 359, characters 18-40: Error: Unbound value String.uppercase_ascii

environment: clangml 3.7, clang-3.7, ubuntu 16, ocaml 4.02.3

ZhuSixiao avatar Apr 12 '17 07:04 ZhuSixiao

try this: BatString.uppercase_ascii instead

UnixJunkie avatar Apr 13 '17 13:04 UnixJunkie

I found 4.04.0 version ocaml compiler bypasses this issue.

ZhuSixiao avatar Apr 13 '17 13:04 ZhuSixiao

You should have installed clangml with opam; it would have checked your ocaml version is supported.

UnixJunkie avatar Apr 13 '17 13:04 UnixJunkie

on my machine by default opam chooses ocaml 4.02.3 + clangml-3.7 + clang-3.7 combination which leads to this issue. If I pin ocaml to 4.04.0, opam chooses clangml-3.9 + clang-3.9 which works correctly.

ZhuSixiao avatar Apr 13 '17 13:04 ZhuSixiao

you can try the correction I suggested. If it works, propose a patch.

UnixJunkie avatar Apr 13 '17 15:04 UnixJunkie