Ticket #16634 (closed defect: fixed)
__gnu_inline__ attribute directive and Apple's gcc
| Reported by: | jhr@… | Owned by: | mcalhoun@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | 1.6.0 |
| Keywords: | gmp, inline | Cc: | raimue@… |
| Port: | gmp |
Description
I am trying to build the MLton SML compiler ( http://mlton.org), which uses the gmp library. When compiling the runtime system, linking is failing because of multiple definitions of some of the GMP symbols (such as ___gmpz_abs). I've done some digging, and it seems that the source of the problem is related to a recent change in gmp.h and a bad interaction with Apple's version of gcc. Specifically, the __gnu_inline__ attribute directive is causing problems (see http://www.mail-archive.com/bug-gnulib@gnu.org/msg09721.html for some discussion; a latter message in the thread proposes a patch).


