问题描述
在我的 Solaris 机器上,我从源代码构建了 GCC 10.2.0 并安装了它。它一直有效,直到我还想要一个新版本的 GNU Assembler,所以我从源代码构建了 GNU Binutils 并安装了它们。现在,当我尝试使用 GCC 编译一个简单的 C Hello World 程序时,我收到以下错误消息:
/usr/local/lib/gcc/x86_64-pc-solaris2.11/10.2.0/../../../../x86_64-pc-solaris2.11/bin/as: unrecognized option `-xarch=generic64'
gcc --version
在我的机器上打印以下内容:
gcc (GCC) 10.2.0
Copyright (C) 2020 Free Software Foundation,Inc.
Ovo je slobodan softver; pogledajte kod za upute o kopiranju. NEMA
jamstava; čak ni za TRGOVINSKU PRIKLADNOST ili ODGOVARANJE ODREĐENOJ SVRSI.
as --version
打印以下内容:
GNU assembler (GNU Binutils) 2.35.1
Copyright (C) 2020 Free Software Foundation,Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or later.
This program has absolutely no warranty.
This assembler was configured for a target of `x86_64-pc-solaris2.11'.
幸运的是,CLANG 11 继续在我的机器上运行。
发生了什么?我该怎么做才能让 GCC 再次工作?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)