What is this GCC error on Linux, and how do I solve it? gcc: internal compiler error: Illegal instruction (program as)

后端 未结 5 639
春和景丽
春和景丽 2021-01-18 10:41

I type gcc hello.c and this appears:

gcc: internal compiler error: Illegal instruction (program as)
Please submit a full bug report,
with preproc         


        
5条回答
  •  臣服心动
    2021-01-18 11:27

    Got it! I uninstalled gcc, installed gcc-4.7, and ... nothing.

    I cleared out the end of gcc-4.6 and re-ran sudo apt-get install gcc-4.7 and ... nothing.

    I updated binutils and ... it worked!

    So, as didn't appear to be affected by updating GCC, but updating it more directly did it for me.

    (It was from 2.22-7.1 to 2.22-8, if that helps anyone.)

提交回复
热议问题