owlbarn / owl

Owl - OCaml Scientific Computing @ https://ocaml.xyz
MIT License
1.22k stars 124 forks source link

Cephes build warnings on Arch Linux #637

Open girzel opened 1 year ago

girzel commented 1 year ago

Hi there,

I'm working on a project that uses Owl and Owl-Plplot. Installing the packages works fine, but if I use anything from plplot in my own code, then run dune build, I get a ≈1min slowdown, and the following warnings:

../../_opam/.opam-switch/build/owl.1.0.2-1/_build/default/src/owl/src/owl/maths/cephes_single/ivf.c:61:15: warning: type of ‘MAXNUMF’ does not match original declaration [-Wlto-type-mismatch] ../../_opam/.opam-switch/build/owl.1.0.2-1/_build/default/src/owl/src/owl/maths/cephes_single/constf.c:9:7: note: type ‘float’ should match type ‘double’ ../../_opam/.opam-switch/build/owl.1.0.2-1/_build/default/src/owl/src/owl/maths/cephes_single/constf.c:9:7: note: ‘MAXNUMF’ was previously declared here ../../_opam/.opam-switch/build/owl.1.0.2-1/_build/default/src/owl/src/owl/maths/cephes_single/constf.c:9:7: note: code may be misoptimized unless ‘-fno-strict-aliasing’ is used The built code works just fine, but the warnings and especially the long wait are annoying.

You can see the Owl version above, I'm not sure what other information would be of use. Please let me know what else I can provide!

Thanks Eric