From: Orion P. <or...@nw...> - 2020-05-22 03:15:00
|
On 5/21/20 3:01 AM, Richard W.M. Jones wrote: > On Wed, May 20, 2020 at 09:28:10PM -0600, Orion Poplawski wrote: >> With the update from ocaml 1.05 to 1.08 plplot now fails to build: > > 4.05 -> 4.08 ? Sorry, ocaml-camlidl 1.05 -> 1.08 . No ocaml change directly. > >> [ 4%] Generating plplot_core.idl, plplot_core.mli, plplot_core.ml, >> plplot_core_stubs.c, plplot_core.h >> cd /builddir/build/BUILD/plplot-5.15.0/fedora/bindings/ocaml && >> /usr/bin/cmake -E copy >> /builddir/build/BUILD/plplot-5.15.0/bindings/ocaml/plplot_core.idl /builddir/build/BUILD/plplot-5.15.0/fedora/bindings/ocaml/plplot_core.idl >> cd /builddir/build/BUILD/plplot-5.15.0/fedora/bindings/ocaml && >> /usr/bin/camlidl -I >> /builddir/build/BUILD/plplot-5.15.0/bindings/ocaml -header >> plplot_core.idl >> File plplot_core.idl, line 369, column 13: Illegal character # >> >> This line is: >> >> RAW_ML(external plgriddata : float array -> float array -> float >> array -> float array -> float array -> plplot_grid_method_type -> >> float -> float array array = "ml_plgriddata_bytecode" >> "ml_plgriddata") >> >> The macros involved are: >> >> #define QUOTEME(x) #x >> #define RAW_ML(x) quote(mlmli, QUOTEME(x)); >> >> Now, I know nothing about ocaml so I'm hoping Richard can clue us in >> on what has changed. > > I compiled plplot from git fine using OCaml 4.11 prerelease, so > probably the easiest thing is to move to the latest git version. > > mkdir build > cd build > CFLAGS="%{optflags}" cmake .. -DENABLE_ocaml:BOOL=ON > make > > Nothing has changed significantly under bindings/ocaml/ for a long > time, so I don't know why specifically it works from git and not from > the Fedora build. Maybe one of the huge number of cmake flags? > > Rich. > I suspect without ocaml-camlidl-devel installed it won't build the above code. -- Orion Poplawski Manager of NWRA Technical Systems 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane or...@nw... Boulder, CO 80301 https://www.nwra.com/ |