It has been known for a long time that texmacs when built with gcc >= 3.2 and some optimisation does segfault a lot... The gcc 3.2 optimizer is the cause of these segfaults (don't know if the problem is solved with gcc 3.2.1, suppose not...) The bug has been tracked down by the texmacs developpers and comes from inlining optimisation and the solution lies in disabling those with -fno-default-inline -fno-inline flags... The configure script takes care of this and add these flags but the texmacs ebuilds overrule these choices to replace them with the gentoo CFLAGS... So I suggest : either stick to texmacs flags (they are for example for my configuration : -O3 -fexpensive-optimizations -fno-default-inline -fno-inline -fno-rtti -fno-exceptions ) (IMO : the most sensible approach) or add the necessary flags to disable inlining optimisations... Btw, the version of texmacs is now 1.0.0.25 (soon 1.0.1 stable) Please find a ebuild for texmacs-1.0.0.25...
Created attachment 6565 [details] ebuild for texmacs-1.0.0.25
use filter-flags to take them out, I suppose
Ok. I've filtered out all maybe-unsafe ones with strip-flags, and followed this up by appending the -fno-inline and -fno-default-inline flags. Also bumped version to 1.0.1.