[MacPorts] #31221: glib2 ppc64 build "cannot make union transparent"

MacPorts noreply at macports.org
Tue Sep 13 21:11:08 PDT 2011


#31221: glib2 ppc64 build "cannot make union transparent"
-----------------------------------------+----------------------------------
 Reporter:  ccorn@…                      |       Owner:  ryandesign@…           
     Type:  defect                       |      Status:  new                    
 Priority:  Normal                       |   Milestone:                         
Component:  ports                        |     Version:  2.0.3                  
 Keywords:  ppc64 powerpc LP64 haspatch  |        Port:  glib2                  
-----------------------------------------+----------------------------------

Comment(by ccorn@…):

 Replying to [comment:1 ryandesign@…]:

 > If I were to apply this patch to the port, I assume I should apply it
 only on PowerPC systems?

 Having no more facts to report, I leave that to your judgement.

 I do not have an x86_64 machine with macports to test whether building for
 x86_64 reproduces the bug.
 I have tested only with PowerPC.
 The root cause seems to be an (Apple) GCC bug affecting a GCC-specific
 feature.
 I cannot safely predict further manifestations of such a bug.
 Therefore, restricting the patch to builds including ppc64 would be ok for
 me.
 Then the bug might or might not appear then when building for x86_64.

 The patch simply switches to an upstream-provided alternative
 implementation of an internal glib2 macro.
 The alternative implementation uses less type checking due to the lack of
 (working) transparent unions.
 If both implementations worked, they would produce identical machine code.
 Therefore, applying the patch should be safe not just for PowerPC.

-- 
Ticket URL: <https://trac.macports.org/ticket/31221#comment:2>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list