I updated jbuilder to beta17, the latest release, on Rawhide. Unfortunately the build failed just on ppc64: https://koji.fedoraproject.org/koji/taskinfo?taskID=24418945 The error message was not entirely helpful. > '/usr/bin/ocamlopt.opt' -w -40 -o boot.exe unix.cmxa boot.ml > make: *** [Makefile:13: boot.exe] Error 255 For now, I have ExcludeArch'd ppc64 and rebuilt jbuilder. Unfortunately this will probably affect a bunch of OCaml packages if not fixed (certainly, opam and its dependencies). I'll file an upstream bug.
I have filed an upstream ticket. https://github.com/ocaml/dune/issues/446
Forgot to block the PPC tracker bug.
Per the upstream discussion it seems that the issue is resolved by doing the bootstrap part of the build with ocamlc rather than ocamlopt. (This also speeds up the build). This has been committed upstream here: https://github.com/ocaml/dune/pull/463 I have pulled this patch into master and am rebuilding on Rawhide.
Fixed in jbuilder-1.0-0.7.beta17.fc28.
(In reply to Ben Rosser from comment #3) > Per the upstream discussion it seems that the issue is resolved by doing the > bootstrap part of the build with ocamlc rather than ocamlopt. (This also > speeds up the build). This has been committed upstream here: > > https://github.com/ocaml/dune/pull/463 > > I have pulled this patch into master and am rebuilding on Rawhide. But you're still building a native binary in the end?
Yes. The jbuilder build process builds a strippped down version of jbuilder to compile itself; it's that first bootstrap step that was failing (and has now been made a bytecode binary). (rpm seems to confirm this; looking at the most recent build https://koji.fedoraproject.org/koji/rpminfo?rpmID=12638067 the only dependencies are basic system libraries as expected).