I believe if that was a "const char*" this error would go away. Unfortunately, I haven't been able to reduce this down to a smaller example since I can't figure out when ocaml actually generates this block of text.