ocamlrun ../boot/camlp5r -nolib -I ../boot -mode S -o q_MLast.ppo q_MLast.ml ocamlopt.opt -warn-error A -I ../main -I ../boot -I ../lib -I ../ocaml_stuff/4.09.0/utils -c -impl q_MLast.ppo Fatal error: exception Stack overflow make[1]: *** [../config/Makefile:29: q_MLast.cmx] Error 2 make[1]: Leaving directory '/var/tmp/portage/dev-ml/camlp5-7.11/work/camlp5-rel711/meta' make: *** [Makefile:24: opt] Error 2 ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma_systemd-libressl-20200225-111518 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-9.2.0 * clang: clang version 9.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/9/bin llvm: 9.0.1 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.6 [3] python3.7 (fallback) [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.14.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm ghc: The Glorious Glasgow Haskell Compilation System, version 8.0.2 repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Thu, 27 Feb 2020 09:07:21 +0000 emerge -qpvO dev-ml/camlp5 [ebuild N ] dev-ml/camlp5-7.11 USE="ocamlopt -doc"
Created attachment 616310 [details] emerge-info.txt
Created attachment 616312 [details] dev-ml:camlp5-7.11:20200227-103000.log
Created attachment 616314 [details] emerge-history.txt
Created attachment 616316 [details] environment
Created attachment 616318 [details] etc.portage.tbz2
Created attachment 616320 [details] temp.tbz2
This issue only happens with USE="ocamlopt"
Still happen with unlimited stack size for the user portage
Managed to build, I have found out that it happen if ocaml is built with both ocamlopt and spacetime so I have disabled spacetime
Related bug: https://bugs.gentoo.org/644352
(In reply to Alessandro Barbieri from comment #8) > Still happen with unlimited stack size for the user portage It works for me if I manually raise the stack limit. Although I don't know the exact limit necessary.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c36e0f62b67beffd1452c1254d6ed041d9f6bd5 commit 7c36e0f62b67beffd1452c1254d6ed041d9f6bd5 Author: Alfredo Tupone <tupone@gentoo.org> AuthorDate: 2021-01-27 07:00:13 +0000 Commit: Alfredo Tupone <tupone@gentoo.org> CommitDate: 2021-01-27 07:01:24 +0000 dev-ml/camlp5: increasing stack during compile Bug: https://bugs.gentoo.org/710966 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Alfredo Tupone <tupone@gentoo.org> dev-ml/camlp5/camlp5-7.11-r1.ebuild | 3 ++- dev-ml/camlp5/camlp5-7.14.ebuild | 3 ++- dev-ml/camlp5/camlp5-8.00.ebuild | 1 + 3 files changed, 5 insertions(+), 2 deletions(-)