Summary: | dev-libs/ppl needs GMP built with CXXFLAGS="-fexceptions" | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Diego Elio Pettenò (RETIRED) <flameeyes> |
Component: | New packages | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | CC: | galtgendo, j-pi, phils, truedfx |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
Build log
top level config.log ...and from Watchdog dir |
Description
Diego Elio Pettenò (RETIRED)
2009-11-28 14:05:59 UTC
Created attachment 211448 [details]
Build log
what gmp version do you have installed? configure: WARNING: CANNOT PROPAGATE EXCEPTIONS BACK FROM GMP:
*** MEMORY EXHAUSTION MAY RESULT IN ABRUPT TERMINATION.
*** This is OK, if you do not plan to use the bounded memory capabilities
*** offered by the PPL. Otherwise, if you are using GCC or the Intel C/C++
*** compiler, please make sure you use a version of GMP compiled with the
*** `-fexceptions' compiler option.
*** To build such a version, you can configure GMP as follows:
*** CPPFLAGS=-fexceptions ./configure --enable-cxx --prefix=/usr/local
>>> Source configured.
specifically, I don't see this on my system.
there is another one strangeness, it is because variable EGREP is not set, i'm now investigating why. (correct response should by yes,) checking whether the i686-pc-linux-gnu-gcc linker (/usr/i686-pc-linux-gnu/bin/ld) supports shared libraries... ./configure: line 11165: : supported targets:.* elf: command not found no I have build GMP with -fexceptions, but this does change nothigh. GMP should be build with -fexceptions by default and there should by create new bug? c++ code is built with -fexceptions by default. Created attachment 234465 [details]
top level config.log
I'm attaching two config.logs from a build
with EGREP problem - toplevel and one from
Watchdog dir
Created attachment 234467 [details]
...and from Watchdog dir
*** Bug 329615 has been marked as a duplicate of this bug. *** So, is gmp actually not being built correctly or is the configure test broken? Are you saying that when EGREP is set the -fexceptions warning goes away? (In reply to comment #6) > c++ code is built with -fexceptions by default. ppl wants the C code compiled with -fexceptions too. The configure test throws bad_alloc through gmp (both the C and the C++ parts) and expects to catch it in the main program. When the C code is compiled without -fexceptions, this may or may not work. On your system, and on one of my systems, it happens to work. On another one of mine, it doesn't work. As for EGREP, the exceptions test does not use it. Okay, that makes sense. Thanks for the explanation. Mike, how do you want to handle this? As for the EGREP part, take it as "something strange is happening during configure, which may, but doesn't have to, have other side effects". GMP is being built "correctly" as is, UNLESS you need to use it with dev-libs/ppl, in which case - as Harald pointed out - it is unreliable without -fexceptions in CPPFLAGS because of how ppl uses gmp. As far as I can see, this issue only affects people using dev-libs/ppl, which, again afaik, in practical terms means only people using dev-libs/cloog-ppl in order to use sys-devel/gcc[graphite]. it's not possible to build gmp[cxx] w/out exception support now which means other things depending on it is a moot issue |