You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Original bug ID: 4848 Reporter: idadesub Assigned to:@damiendoligez Status: closed (set by @damiendoligez on 2015-03-04T20:16:45Z) Resolution: fixed Priority: normal Severity: minor Version: 3.11.0 Target version: 4.02.2+dev / +rc1 Fixed in version: 4.00.0 Category: ~DO NOT USE (was: OCaml general) Has duplicate:#5131 Monitored by: th5 @hcarty
Bug description
When we compile the ocaml bindings for llvm, ocamlc is very noisy with this particular error:
$ /usr/bin/ocamlc -cc "g++ -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic" -I /scratch/llvm/llvm-build-Debug/Debug/lib/ocaml -warn-error A llvm.cma llvm_analysis.cma llvm_bitwriter.cma /scratch/llvm/llvm/test/Bindings/Ocaml/vmcore.ml -o vmcore.ml.tmp
/tmp/camlprim1539f1.c:1490: warning: deprecated conversion from string constant to ‘char*’
/tmp/camlprim1539f1.c:1490: warning: deprecated conversion from string constant to ‘char*’
/tmp/camlprim1539f1.c:1490: warning: deprecated conversion from string constant to ‘char*’
/tmp/camlprim1539f1.c:1490: warning: deprecated conversion from string constant to ‘char*’
...
I looked at that file, and it looks like ocaml is generating a file with:
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.
The text was updated successfully, but these errors were encountered:
Original bug ID: 4848
Reporter: idadesub
Assigned to: @damiendoligez
Status: closed (set by @damiendoligez on 2015-03-04T20:16:45Z)
Resolution: fixed
Priority: normal
Severity: minor
Version: 3.11.0
Target version: 4.02.2+dev / +rc1
Fixed in version: 4.00.0
Category: ~DO NOT USE (was: OCaml general)
Has duplicate: #5131
Monitored by: th5 @hcarty
Bug description
When we compile the ocaml bindings for llvm, ocamlc is very noisy with this particular error:
$ /usr/bin/ocamlc -cc "g++ -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic" -I /scratch/llvm/llvm-build-Debug/Debug/lib/ocaml -warn-error A llvm.cma llvm_analysis.cma llvm_bitwriter.cma /scratch/llvm/llvm/test/Bindings/Ocaml/vmcore.ml -o vmcore.ml.tmp
/tmp/camlprim1539f1.c:1490: warning: deprecated conversion from string constant to ‘char*’
/tmp/camlprim1539f1.c:1490: warning: deprecated conversion from string constant to ‘char*’
/tmp/camlprim1539f1.c:1490: warning: deprecated conversion from string constant to ‘char*’
/tmp/camlprim1539f1.c:1490: warning: deprecated conversion from string constant to ‘char*’
...
I looked at that file, and it looks like ocaml is generating a file with:
char * caml_names_of_builtin_cprim[] = {
"caml_alloc_dummy",
"caml_alloc_dummy_float",
"caml_update_dummy",
"caml_array_get_addr",
...
};
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.
The text was updated successfully, but these errors were encountered: