Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 710966 - dev-ml/camlp5-7.11 : Fatal error: exception Stack overflow
Summary: dev-ml/camlp5-7.11 : Fatal error: exception Stack overflow
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-27 17:56 UTC by Toralf Förster
Modified: 2021-06-10 03:53 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.04 KB, text/plain)
2020-02-27 17:57 UTC, Toralf Förster
Details
dev-ml:camlp5-7.11:20200227-103000.log (dev-ml:camlp5-7.11:20200227-103000.log,57.15 KB, text/plain)
2020-02-27 17:57 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,78.12 KB, text/plain)
2020-02-27 17:57 UTC, Toralf Förster
Details
environment (environment,20.13 KB, text/plain)
2020-02-27 17:57 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.34 KB, application/x-bzip)
2020-02-27 17:57 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,11.57 KB, application/x-bzip)
2020-02-27 17:57 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-02-27 17:56:59 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2020-02-27 17:57:02 UTC
Created attachment 616310 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-02-27 17:57:05 UTC
Created attachment 616312 [details]
dev-ml:camlp5-7.11:20200227-103000.log
Comment 3 Toralf Förster gentoo-dev 2020-02-27 17:57:07 UTC
Created attachment 616314 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-02-27 17:57:10 UTC
Created attachment 616316 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-02-27 17:57:13 UTC
Created attachment 616318 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-02-27 17:57:16 UTC
Created attachment 616320 [details]
temp.tbz2
Comment 7 Alessandro Barbieri 2020-11-07 12:02:04 UTC
This issue only happens with USE="ocamlopt"
Comment 8 Alessandro Barbieri 2020-11-08 08:05:46 UTC
Still happen with unlimited stack size for the user portage
Comment 9 Alessandro Barbieri 2020-11-15 09:52:52 UTC
Managed to build, I have found out that it happen if ocaml is built with both ocamlopt and spacetime so I have disabled spacetime
Comment 10 Attila Tóth 2021-01-26 23:03:08 UTC
Related bug:
https://bugs.gentoo.org/644352
Comment 11 Attila Tóth 2021-01-26 23:59:27 UTC
(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.
Comment 12 Larry the Git Cow gentoo-dev 2021-01-27 07:01:37 UTC
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(-)