Bug 240470 - dev-libs/boost-1.35.0-r2 uses sync_fetch_and_add on all architectures but it only implemented for x86
Bug#: 240470 Product:  Gentoo Linux Version: unspecified Platform: Sparc
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dev-zero@gentoo.org Reported By: erm67@yahoo.it
Component: Development
URL: 
Summary: dev-libs/boost-1.35.0-r2 uses sync_fetch_and_add on all architectures but it only implemented for x86
Keywords:  
Status Whiteboard: 
Opened: 2008-10-08 09:14 0000
Description:   Opened: 2008-10-08 09:14 0000
boost/detail/atomic_count_sync.hpp uses sync_fetch_and_add on all architecture
while it is only defined foe x86

Reproducible: Always

Steps to Reproduce:
1.emerge gnash under gentoo sparc, linking fails because sync_fetch_and_add is
not defined.

------- Comment #1 From E. Scaglione 2008-10-08 09:16:04 0000 -------
Created an attachment (id=167588) [details]
10_all_1.35.0-arm_hppa_sparc-sync_fetch_and_add.patch

This patch fixes the problem and gnash compiles correctly

------- Comment #2 From E. Scaglione 2008-10-08 12:11:36 0000 -------
The bug is already fixed almost in the same way in the svn version of boost.

------- Comment #3 From Jeroen Roovers 2008-10-08 12:57:19 0000 -------
Looks like bug #230529 which points to [1].

[1] http://svn.boost.org/trac/boost/changeset/44440

------- Comment #4 From E. Scaglione 2008-10-09 20:51:27 0000 -------
I tested gnash compiled with this patch on a ultra2 enterprise sparc 2 CPU
296Mhz and works well on most flash films. No chrashes. 

------- Comment #5 From jean baptiste leroux 2008-11-04 16:31:06 0000 -------
(In reply to comment #1)
> Created an attachment (id=167588) [edit] [details]
> 10_all_1.35.0-arm_hppa_sparc-sync_fetch_and_add.patch
> 
> This patch fixes the problem and gnash compiles correctly
> 

I have the same bug on gnash compile.
So I try the patch on boost but it doesn't change anything on gnash compile.
Anyone can help me please ?

------- Comment #6 From Tiziano Müller 2009-05-13 19:22:34 0000 -------
Done. Thanks!