[MacPorts] #37206: pcc: does it actually work on today's machines/OS?

MacPorts noreply at macports.org
Thu Dec 6 00:20:40 PST 2012

#37206: pcc: does it actually work on today's machines/OS?
  Reporter:  akim.demaille@…  |      Owner:  mww@…
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:  2.1.2
Resolution:                   |   Keywords:
      Port:  pcc              |

Comment (by akim.demaille@…):

 @vince: Bonjour !

 @jmr: yes, I do agree, the problem is with the assembly language.  I am
 not knowledgeable in assembly language, yet I expected (i) pcc to generate
 i386 assembly (it's documented to support it, but not x86_64), and (ii) a
 x86_64 assembler to support i386 assembly language.  So I expected this to



 $ less foo.s
         .align 4
         .globl _main
         pushl %ebp
         movl %esp,%ebp
         subl $8,%esp
         subl $16,%esp
         call Lmain$pb
         popl %eax

         movl %eax,-4(%ebp)
         movl $0,-8(%ebp)
         jmp L12
         movl -8(%ebp),%eax
         .section __IMPORT,__pointers,non_lazy_symbol_pointers
         .ident "PCC: pcc 1.0.0.RELEASE (darwin)"
 $ as foo.s
 foo.s:5:suffix or operands invalid for `push'
 foo.s:12:suffix or operands invalid for `pop'
 foo.s:22:unknown section type: non_lazy_symbol_pointers
 foo.s:22:Rest of line ignored. 1st junk character valued 32 ( ).

 Same result with both as (/usr/bin and /opt/local/bin).  I could not find
 a MacPort package for gas.

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

More information about the macports-tickets mailing list