This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36721] Compiler aborts with no message when libgmp and/or libmpfr are missing
- From: "w6ws at earthlink dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jul 2008 17:57:11 -0000
- Subject: [Bug fortran/36721] Compiler aborts with no message when libgmp and/or libmpfr are missing
- References: <bug-36721-15045@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from w6ws at earthlink dot net 2008-07-03 17:57 -------
Subject: Re: Compiler aborts with no message when libgmp
and/or libmpfr are missing
pinskia at gcc dot gnu dot org wrote:
> ------- Comment #2 from pinskia at gcc dot gnu dot org 2008-07-03 17:46 -------
> This is an OS issue really. Or maybe a distribution of GCC issue which is not
> a bug which the FSF should worry about. That is the binary distributers did
> not distribute GMP/MPFR with GCC or did not compiler GMP/MPFR as being static.
In this case, Tobias is the 'binary distributor'...
(And I really appreciate his efforts!)
> I think we can declare this as invalid based on that fact and the fact we don't
> support binary distributions.
Not user-friendly.
I can offer two suggestions:
1.) If shared libs are being used, try doing a dlopen on the library to
make sure it is available. If it is not available, an error message can
be printed before aborting.
2.) A signal handler can be written to catch the jump into nowhere.
Again, an error message can be printed.
Walter
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36721