The following issue has been SUBMITTED. ====================================================================== https://bugtracker.iptel.org/view.php?id=46 ====================================================================== Reported By: peter_lemenkov Assigned To: ====================================================================== Project: SEMS Issue ID: 46 Category: core Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2010-09-27 16:43 CEST Last Modified: 2010-09-27 16:43 CEST ====================================================================== Summary: Cannot compile with gcc 4.1.2 on i386 due to missing __sync_add_and_fetch/__sync_sub_and_fetch built-ins Description: See this log for the details (scroll to bottom):
http://koji.fedoraproject.org/koji/getfile?taskID=2491566&name=build.log See - missing necessary built-ins on this architecture (i386). I'll add workaround for this particular gcc and particular architecture - something like this: static inline int ATOMIC_INC_AND_FETCH(int *data, pthread_mutex_t *phlpmut) { int val; pthread_mutex_lock(phlpmut); val = ++(*data); pthread_mutex_unlock(phlpmut); return(val); } I don't think that something should be added to the main branch - this is very specific issue, but someone could encounter it too, so I decided to open this ticket. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2010-09-27 16:43 peter_lemenkov New Issue ====================================================================== _______________________________________________ Semsdev mailing list [email protected] http://lists.iptel.org/mailman/listinfo/semsdev
