Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8947 - Texmacs ebuild for 10.0.0.16 ignores CFLAGS & CXXFLAGS
Summary: Texmacs ebuild for 10.0.0.16 ignores CFLAGS & CXXFLAGS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Turk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-09 16:41 UTC by Alexander Isacson
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Isacson 2002-10-09 16:41:11 UTC
Looking at the output from "emerge texmacs" it doesn't use the cflags set in
/etc/make.conf.
Comment 1 Matthew Turk (RETIRED) gentoo-dev 2002-10-09 18:20:11 UTC
I think this might be related to a bug determined to be an upstream problem  
with GCC 3.2.  I will create a new revision and mask it to make sure it works  
under GCC 3.2 with optimizations.  
Comment 2 Pierre-Henri Jondot 2002-10-13 11:38:04 UTC
Well, this is a choice being done by the texmacs makefiles...

There are lots of problems with optimization indeed with texmacs, so I wouldn't
play too much on the flags and rather keep the default ones...

Yet, whatever the flags, the texmacs binary generated with gcc 3.2 will segfault
quite randomly (and frequently...) This is not specific to gentoo. The only fix
right now is to use a staticly generated binary from www.texmacs.org

There was a bug about it a few weeks ago... This one was closed since, don't
know why. 
Comment 3 Markus Bertheau (RETIRED) gentoo-dev 2002-10-19 07:36:28 UTC
It seems to do quite well when I modify the configure script to not use -O3 and
-fexpensive-optimizations.
Quite well means it doesn't crash for me after having it running ofr 10 minutes.
Comment 4 Pierre-Henri Jondot 2002-10-20 01:53:53 UTC
Looks like it does indeed... Don't remember if I tried previously (certainly
didn't try to remove everything which was the most sensible thing to do as a
beginning...)

Indeed with all optimization removed : it seems to work fine. Wasn't able to
make it segfault... although I tried !

With -O2 instead, it does segfault :(
Comment 5 Alexander Isacson 2002-10-20 02:08:01 UTC
So the ebuild now uses the /etc/make.conf flags?
If not, which is the best way to change the flags and still make portage know
that texmacs is installed?

Which flags should I use on my p4 system?
Just "-march=pentium4"?
Comment 6 Matthew Turk (RETIRED) gentoo-dev 2002-10-20 22:57:19 UTC
This package has proven to be very unreliable under GCC 3.2, and with any  
optimizations in general.  As such, it's being moved to an unsupported status.   
Issues with the package should be taken to the developing party  
www.texmacs.org.  The best solution to any problems has been, in the past, to 
disable optimizations.  If a guaranteed, tried and tested cross-platform 
solution to optimization/segfault woes can be found, we will implement it.