[MacPorts] #18755: PPC problem on gmp 4.2.4_2

MacPorts noreply at macports.org
Sat Mar 7 18:00:50 PST 2009


#18755: PPC problem on gmp 4.2.4_2
--------------------------------------+-------------------------------------
 Reporter:  garribald@…               |       Owner:  mcalhoun@…           
     Type:  defect                    |      Status:  assigned             
 Priority:  Normal                    |   Milestone:  Port Bugs            
Component:  ports                     |     Version:  1.7.0                
 Keywords:  ppc                       |        Port:  gmp                  
--------------------------------------+-------------------------------------

Comment(by vinc17@…):

 As documented, I'd say that -force_cpusubtype_ALL fixes the symptom, not
 the bug. Indeed here the problem concerns the asm file, and the as(1) man
 page says:
 {{{
        -force_cpusubtype_ALL
               By default, the assembler will produce the CPU subtype  ALL
 for
               the  object file it is assembling if it finds no
 implementation-
               specific instructions.  Also  by  default,  the  assembler
 will
               allow  implementation-specific instructions and will combine
 the
               CPU subtype for those specific implementations.   The
 combining
               of  specific  implementations is architecture-dependent; if
 some
               combination of instructions is not allowed, an error  is
 gener-
               ated.    With   the  optional  -force_cpusubtype_ALL  flag,
 all
               instructions are allowed and the object file's CPU subtype
 will
               be  the  ALL subtype.  If the target architecture specified
 is a
               machine-specific  implementation  (e.g.,  -arch  ppc603,
 -arch
               i486),  the  assembler will flag as errors instructions that
 are
               not supported on that  architecture,  and  it  will  produce
 an
               object  file  with the CPU subtype for that specific
 implementa-
               tion (even if no implementation-specific instructions are
 used).
               The  -force_cpusubtype_ALL  flag  is the default for all x86
 and
               x86_64 architectures.
 }}}
 So, basically -force_cpusubtype_ALL tells the assembler not to report any
 error if a non-generic instruction (optional instruction, extension...) is
 used. This means that the programmer needs to make sure that such
 instructions are (dynamically) executed only when they exist. By adding
 -force_cpusubtype_ALL, you hide a potential error made by upstream.

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


More information about the macports-tickets mailing list