ocaml-camlp4 doesn't build on ppc64/ppc64 /usr/bin/ocamlopt.opt -c -g -w a -I camlp4/import -warn-error A-3 -I camlp4/config -I camlp4/boot -o camlp4/boot/camlp4boot.cmx camlp4/boot/camlp4boot.ml File "camlp4/boot/camlp4boot.ml", line 3, characters 9-15: Error: Unbound module Camlp4 For more infos please take a look at http://ppc.koji.fedoraproject.org/kojifiles/work/tasks/3941/2443941/build.log
The actual error is: Command got signal -10. which is probably some kind of bus error (although 'man 7 signal' says SIGUSR1 which is pretty weird). Anyway, OCaml does generally work on ppc64 & ppc64le, and we even maintain a special downstream backend for that. What hardware is this?
Also please enable core dumps and grab the stack trace.
Than, have you tried the build with a larger stack? We saw situations when the default was too low and "ulimit -s 65536" helped to workaround the issue.
(In reply to Dan Horák from comment #3) > Than, have you tried the build with a larger stack? We saw situations when > the default was too low and "ulimit -s 65536" helped to workaround the issue. Yup, that's actually quite likely to be the problem. If it turns out to be this we'll have to modify the spec file.
Hi Dan, Richard yes, with "ulimit -s 65536", ocaml-camlp4 built fine. We should add the workaround in spec file so that it build correctly on ppc in the future. Thanks, Than
i have modified the spec file in my local branch and did scratch build. it built fine now http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=2444438 it's the patch for the spec file. diff --git a/ocaml-camlp4.spec b/ocaml-camlp4.spec index f8cd276..b243b73 100644 --- a/ocaml-camlp4.spec +++ b/ocaml-camlp4.spec @@ -50,6 +50,10 @@ This package contains the development files. %build +%ifarch %{power64} +ulimit -s 65536 +%endif + ./configure # Incompatible with parallel builds: unset MAKEFLAGS
Thanks for testing. This is fixed in: ocaml-camlp4-4.02.1-0.4.gitcf1935d3.fc23 ocaml-camlp4-4.02.0-0.9.git87c6a6b0.fc22
ocaml-camlp4-4.02.0-0.9.git87c6a6b0.fc22 has been submitted as an update for Fedora 22. https://admin.fedoraproject.org/updates/ocaml-camlp4-4.02.0-0.9.git87c6a6b0.fc22
Package ocaml-camlp4-4.02.0-0.9.git87c6a6b0.fc22: * should fix your issue, * was pushed to the Fedora 22 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing ocaml-camlp4-4.02.0-0.9.git87c6a6b0.fc22' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-4643/ocaml-camlp4-4.02.0-0.9.git87c6a6b0.fc22 then log in and leave karma (feedback).
ocaml-camlp4-4.02.0-0.9.git87c6a6b0.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.