[bug-notifications] [gcc4g++ 0003713]: g++ is not compatible with libmpfr
Mantis Bug Tracker
noreply at opencsw.org
Thu Jun 18 22:44:06 CEST 2009
A NOTE has been added to this issue.
======================================================================
http://www.opencsw.org/mantis/view.php?id=3713
======================================================================
Reported By: scottcurtis
Assigned To: mwatters
======================================================================
Project: gcc4g++
Issue ID: 3713
Category: upgrade
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
======================================================================
Date Submitted: 2009-06-12 18:01 CEST
Last Modified: 2009-06-18 22:44 CEST
======================================================================
Summary: g++ is not compatible with libmpfr
Description:
I did an upgrade to the "current" release to get the latest g++. When
compiling a function which requires g++ to load libmpfr, the compiler fails
with the message "undefined reference to __gmp_get_memory_functions". I
built and installed libmpfr version 2.4.1 and this corrected the problem.
======================================================================
----------------------------------------------------------------------
(0006328) scottcurtis (reporter) - 2009-06-18 22:44
http://www.opencsw.org/mantis/view.php?id=3713#c6328
----------------------------------------------------------------------
The problem seems to be related to using the sqrt() from <cmath> which uses
the g++ __builtin_sqrt(). To remove WT from the picture, I created a
main.cpp with the following:
int main(int argc, char **argv)
{
double d = __builtin_sqrtf(2.0);
return 0;
}
If I compile this using:
g++ main.cpp
I can reproduce the problem
My OS is Solaris 10.
My libmpfr is version 2.3.1,REV=2008.01.29
My g++ is version 4.3.3,REV=2009.05.07
The libmpfr and g++ versions are what pkg-get -u installs when I get from
current.
If I download and build the latest libmpfr, then __builtin_sqrtf()
compiles successfully.
More information about the bug-notifications
mailing list