Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49996 - dev-libs/gmp-4.1.2 fails to compile with GCC 3.4
Summary: dev-libs/gmp-4.1.2 fails to compile with GCC 3.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
: 50386 (view as bug list)
Depends on:
Blocks: 48528
  Show dependency tree
 
Reported: 2004-05-04 10:49 UTC by Stephen Bennett (RETIRED)
Modified: 2015-04-08 06:57 UTC (History)
1 user (show)

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


Attachments
Patch to fix compilation with GCC 3.4 (gmp-4.1.2-gcc3.4.diff,3.38 KB, patch)
2004-05-04 10:49 UTC, Stephen Bennett (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen Bennett (RETIRED) gentoo-dev 2004-05-04 10:49:10 UTC
Some of GMP's internal functions are declared in such a way that GCC 3.4.0 cannot compile them. Specifically, the way in which the regparm macros are used causes `conflicting type' errors for those functions. Adding REGPARM_ATTR(1) to these functions' definitions fixes this.

Reproducible: Always
Steps to Reproduce:
Comment 1 Stephen Bennett (RETIRED) gentoo-dev 2004-05-04 10:49:54 UTC
Created attachment 30721 [details, diff]
Patch to fix compilation with GCC 3.4
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2004-05-07 13:27:12 UTC
*** Bug 50386 has been marked as a duplicate of this bug. ***
Comment 3 Stephen Bennett (RETIRED) gentoo-dev 2004-05-08 10:44:53 UTC
Note: GMP 4.1.3 is fine as-is, so this can probably be disregarded now, as anyone using GCC 3.4 is likely to be using ~x86 anyway.
Comment 4 Stephen Bennett (RETIRED) gentoo-dev 2004-05-09 09:49:39 UTC
Since the new GMP seems to have fixed this, I'm setting this bug to RESOLVED FIXED. If anyone has any objections to that, I'll reopen it.