Summary: | dev-lang/ocaml-3.08.2 segfaults during emerge | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gabriel Ebner <ge> |
Component: | [OLD] Development | Assignee: | Gentoo Team for the ML programming language family <ml> |
Status: | RESOLVED CANTFIX | ||
Severity: | normal | CC: | bugs-gentoo.org, simons |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Gabriel Ebner
2004-12-03 08:42:04 UTC
According to the ewarn in the ebuild I tried emerging with CFLAGS="-O0 -fPIC", CFLAGS="-fPIC" and CFLAGS="-O0", and it always failed with the same log. I was having the same problem. It seems to stem from an incorrectly set GCC_SPECS variable. My GCC_SPECS in /etc/env.d/05gcc was pointing to a hardened gcc (which doesn't compile the bytecode interpreter correctly) even though I'd selected an "unhardened" gcc profile with gcc-config. Upgrading to sys-devel/gcc-config-1.3.7-r5 fixed it for me. Does bardur's fix work for you guys ? I had the same problem with a hardened gcc causing a segfault in dev-lang/ocaml-3.08. Ocaml compiles nicely after changing to a vanilla gcc with gcc-config. I've noticed that the compiler generally doesn't work when hardened-gcc is enabled. I've tried to compile the application "monotone-viz", for example, but only managed after switching to a vanilla-gcc profile. Passing "-nopie -fno-stack-protector-all -fno-stack-protector" through "-ccopts" doesn't seem to make any difference. This situation is somewhat unfortunate. Is there a solution for this problem visible on the horizon? I don't think there is. Ocaml uses hand-tuned assembler (to implement the garbage collector efficiently for example) which does not play nicely with things such as PIE and SPP. |