| Summary: | openoffice-1.1.1-r1 fails to compile with agresive CXXFLAGS | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marcin Kryczek (RETIRED) <mkay> |
| Component: | Current packages | Assignee: | Gentoo Office Team <office> |
| Status: | RESOLVED INVALID | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | All | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | openoffice.patch | ||
|
Description
Marcin Kryczek (RETIRED)
2004-05-27 00:27:56 UTC
Created attachment 32126 [details, diff]
openoffice.patch
it's all about -fno-exceptions (shame on me, that i didn't read compilation
output with coution;/). i'm adding proposal patch for OO's ebuild (propably the
same should go to XOO)
We will not do such things as -fno-exceptions will not work in general on c++ software (while it shouldn't have an effect for c software). Similar to -ffast-math option which will (even according to the docs) create software that performs WRONG floating point calculations. Similarly the -fno-rtti option is not globally applicable to c++ programs. All these options limit the features of the c++ language and as such only work for programs that don't use them. They should be enabled only on per program basis after analysis of the code, and preferably by the authors. well - i'm not getting your point. i know that part of those flags are dangerous and i know consequences of using them. in the other hand - that's why the whole idea of filtering/replacing flags is, or am i wrong? flags which may cause compilation fails or are known as breakers for certain application should be blocked in ebuilds. i just don't understand why some flags (like for example -O3, which is also dissuaded) are filtered out and others are not. Well, we filter out those flags that are not problematic in general, or at least in their design should not be. The -fno-exceptions, -fno-rtti, and -ffast-math options are unsafe in general and as such not supported. I cannot stop you from using them, but to be honest, I think it is unwise to use them at all. Let alone in general. Read the info documentation for those flags, they give nonstandard c/c++ ok, i've got one more question. is there somewhere list of 'supported' flags? i mean those, which should be commited as a bug, if brakes copilation/functionality of some program? |