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

ocamlc is being noisy when running with g++-4.4 #4848

Closed
vicuna opened this issue Aug 19, 2009 · 1 comment
Closed

ocamlc is being noisy when running with g++-4.4 #4848

vicuna opened this issue Aug 19, 2009 · 1 comment
Assignees
Labels
Milestone

Comments

@vicuna
Copy link

vicuna commented Aug 19, 2009

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.

@vicuna
Copy link
Author

vicuna commented Mar 4, 2015

Comment author: @damiendoligez

This is fixed since 4.00.0, see #5131 for details.

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

No branches or pull requests

2 participants