Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004848OCamlOCaml generalpublic2009-08-19 19:202014-08-18 20:43
Reporteridadesub 
Assigned Todoligez 
PrioritynormalSeverityminorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Product Version3.11.0 
Target Version4.02.1+devFixed in Version 
Summary0004848: ocamlc is being noisy when running with g++-4.4
DescriptionWhen 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.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2009-08-19 19:20 idadesub New Issue
2011-05-31 16:20 doligez Status new => assigned
2011-05-31 16:20 doligez Assigned To => doligez
2012-07-11 14:22 doligez Target Version => 4.01.0+dev
2012-07-31 13:36 doligez Target Version 4.01.0+dev => 4.00.1+dev
2012-09-17 17:21 doligez Target Version 4.00.1+dev => 4.00.2+dev
2013-07-10 15:47 doligez Target Version 4.00.2+dev => 4.01.0+dev
2013-07-29 15:33 doligez Target Version 4.01.0+dev => 4.01.1+dev
2014-05-25 20:20 doligez Target Version 4.01.1+dev => 4.02.0+dev
2014-08-18 20:43 doligez Target Version 4.02.0+dev => 4.02.1+dev


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker