close

 

compile the source code,but got the errors listed below

/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 716: error: unknown opcode ".uleb128"
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 716: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 717: error: unknown opcode ".sleb128"
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 717: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 720: error: unknown opcode ".uleb128"
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 720: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 721: error: unknown opcode ".uleb128"
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 721: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 733: error: unknown opcode ".uleb128"
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 733: error: statement syntax
/usr/ccs/bin/as: "/var/tmp//ccth7JPU.s", line 736: error: unknown opcode ".uleb128"

Solution:

(a) find the path that exists "GNU Binutils" of your gcc version

     ex: /usr/local/bin/

(b)  make sure the path is before /usr/ccs/bin

     you can check "ld", "as" in the path

      /usr/local/bin/ld

      /usr/local/bin/as

    

     use the command to check the version

     $ ld -v

     GNU ld (GNU Binutils) 2.20

    

     $ as -v

     GNU assembler version 2.20 (sparc-sun-solaris2.9) using BFD version (GNU Binutils) 2.20

  

arrow
arrow
    全站熱搜

    poisonjudy 發表在 痞客邦 留言(0) 人氣()