A NOTE has been added to this issue. 
====================================================================== 
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-28 13:47 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.
====================================================================== 

---------------------------------------------------------------------- 
 (0000073) rco (manager) - 2010-09-28 13:47
 https://bugtracker.iptel.org/view.php?id=46#c73 
---------------------------------------------------------------------- 
Hi Peter,

I just made a patch here, as it concerns any build for any target arch
which does not support the atomic built-ins...

Can you confirm if it works on your side? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-09-27 16:43 peter_lemenkov New Issue                                    
2010-09-28 13:47 rco            Note Added: 0000073                          
======================================================================
_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to