【环境信息】
系统:aarch64虚拟机
OS版本:LTS-SP3-RC5
repo:everything、epol、source
【问题复现步骤】
1、将gcc源码包下载到虚拟机上执行编译
yumdownloader --source gcc
2、安装gcc
rpm -ivh gcc-7.3.0-20211123.43.oe1.src.rpm
3、进入安装目录
cd /root/rpmbuild/SPECS/
4、开始编译
rpmbuild -ba gcc.spec
5、如果有依赖的就安装依赖
【预期结果】
1、源码包编译成功,生成rpm二进制包,无异常
【实际结果】
1、源码包编译失败
【附件信息】
见日志
Hi zjl_long, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Compiler, and any of the maintainers: @guoge , @eastb233 , @Haijian.Zhang , @Noah , @wangyadong , @jiangfeilong , @HsError , @Peixin Qiao , @Peilin Guo , @kuen , @Ryan Peng , @openeuler-ci-bot
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
另外,根据gcc_secure脚本中的exclude字段判断它期望排除gcc包,但实际上它依然会影响到gcc的构建,因此我准备去gcc_secure中提个Issue记录该问题。
根据如上提供的意见,gcc编译失败是因为gcc_sesure导致的;采用变通之法,首先卸载gcc包,gcc_sesure作为gcc的依赖包也被卸载,再次安装gcc后,对gcc源码包进行编译,编译通过。
arm
x86
登录 后才可以发表评论