Undefined symbol : __sync_fetch_and_add_4 in file t-assign.o

Dennis Clarke dclarke at blastwave.org
Tue Jun 21 18:47:38 CEST 2011


> On Tue, 21 Jun 2011, Dennis Clarke wrote:
>
>> -mtune=i386 -march=i386
> [...]
>> Undefined                       first referenced
>> symbol                             in file
>> __sync_fetch_and_add_4              t-assign.o
>
> A classic. You need to replace -march=i386 with something more recent.
> Blame it on gcc if you must.
>

Yeah, thing of beauty, -march=pentiumpro fixes everything.

As for GCC, well, I am in fact working on a build of the GCC 4.6.1 RC that
was release yesterday or the day before and I wanted fresh gmp/mpfr/mpc.

Everythign seems to be going well thus far on both Sparc and x86.

--
+-------------------------+---------------------------------+
| Dennis Clarke           |     Elected Member of the       |
| dclarke at blastwave.org   |  OpenSolaris Governance Board   |
+-------------------------+---------------------------------+




More information about the gmp-bugs mailing list