Sign in
Sign up
Explore
Enterprise
Education
Search
Help
Terms of use
About Us
Explore
Enterprise
Education
Gitee Premium
Gitee AI
AI teammates
Sign in
Sign up
Fetch the repository succeeded.
description of repo status
Donate
Please sign in before you donate.
Cancel
Sign in
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
Watch
Unwatch
Watching
Releases Only
Ignoring
23
Star
30
Fork
165
src-openEuler
/
gcc
Closed
Code
Issues
30
Pull Requests
12
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
DevLens
Don’t show this again
Update failed. Please try again later!
Remove this flag
Content Risk Flag
This task is identified by
as the content contains sensitive information such as code security bugs, privacy leaks, etc., so it is only accessible to contributors of this repository.
Bug in openEuler/gcc (10.3.0) ,22.03-LTS-performance 分支
Confirmed
#I5XP8E
Bug
yygg100
Opened this issue
2022-10-26 09:13
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 【标题描述】 gcc/tree/openEuler-22.03-LTS-performance 分支构建的gcc,使用该gcc 打开 pointer compression (编译开关: -O3 -flto -flto-partition=one -fipa-struct-reorg=5 --param param-pointer-compression-size=1), 运行 spec cpu2006测试时 build过程中报错。 【环境信息】 硬件信息: 1) 鲲鹏920; 软件信息: 1) OS:openEuler-22.03-LTS 2)kernel:5.10.0-60.18.0.50.oe2203.aarch64 3) GCC:10.3.0 build in branch gcc/tree/openEuler-22.03-LTS-performance 【问题复现步骤】 具体操作步骤 : 1)在 gcc/tree/openEuler-22.03-LTS-performance分支构建gcc。 2)通过export PATH ,使用该gcc 运行spec cpu 2006 测试。 2.1)测试 cfg的编译选项设置为: -O3 -flto -flto-partition=one -fipa-struct-reorg=5 --param param-pointer-compression-size=1。 3)build过程中报错 3.1) 以429.mcf为例,报错信息如下: ``` gcc mcf.o mcfutil.o readmin.o implicit.o pstart.o output.o treeup.o pbla.o pflowup.o psimplex.o pbeampp.o -lm -O3 -flto -flto-partition=one -fipa-struct-reorg=5 --param param-pointer-compression-size=1 -DSPEC_CPU_LP64 -o mcf during IPA pass: struct_layout lto1: internal compiler error: in create_new_decls, at ipa-struct-reorg/ipa-struct-reorg.c:1149 Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/>; for instructions. lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status specmake: *** [mcf] Error 1 Error with make 'specmake -j4 build': check file '/home/mx/spec2006/benchspec/CPU2006/429.mcf/run/build_base_mx_rate_final.0000/make.err' Error with make! *** Error building 429.mcf ``` 【出现概率】 1)必然出现 2)若将 编译开关 -O3 更改为 -O2 ,则可正常build,但测试成绩显著下降。 3)若 关闭 -flto ,则build正常,但测试成绩显著下降。 【预期结果】 在使用编译选项 -O3 -flto -flto-partition=one -fipa-struct-reorg=5 时可以正常build测试程序 【实际结果】 使用编译选项 -O3 -flto -flto-partition=one -fipa-struct-reorg=5 ,build报错 lto1: internal compiler error 【附件信息】 比如系统message日志/组件日志、dump信息、图片等
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 【标题描述】 gcc/tree/openEuler-22.03-LTS-performance 分支构建的gcc,使用该gcc 打开 pointer compression (编译开关: -O3 -flto -flto-partition=one -fipa-struct-reorg=5 --param param-pointer-compression-size=1), 运行 spec cpu2006测试时 build过程中报错。 【环境信息】 硬件信息: 1) 鲲鹏920; 软件信息: 1) OS:openEuler-22.03-LTS 2)kernel:5.10.0-60.18.0.50.oe2203.aarch64 3) GCC:10.3.0 build in branch gcc/tree/openEuler-22.03-LTS-performance 【问题复现步骤】 具体操作步骤 : 1)在 gcc/tree/openEuler-22.03-LTS-performance分支构建gcc。 2)通过export PATH ,使用该gcc 运行spec cpu 2006 测试。 2.1)测试 cfg的编译选项设置为: -O3 -flto -flto-partition=one -fipa-struct-reorg=5 --param param-pointer-compression-size=1。 3)build过程中报错 3.1) 以429.mcf为例,报错信息如下: ``` gcc mcf.o mcfutil.o readmin.o implicit.o pstart.o output.o treeup.o pbla.o pflowup.o psimplex.o pbeampp.o -lm -O3 -flto -flto-partition=one -fipa-struct-reorg=5 --param param-pointer-compression-size=1 -DSPEC_CPU_LP64 -o mcf during IPA pass: struct_layout lto1: internal compiler error: in create_new_decls, at ipa-struct-reorg/ipa-struct-reorg.c:1149 Please submit a full bug report, with preprocessed source if appropriate. See <https://gcc.gnu.org/bugs/>; for instructions. lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status specmake: *** [mcf] Error 1 Error with make 'specmake -j4 build': check file '/home/mx/spec2006/benchspec/CPU2006/429.mcf/run/build_base_mx_rate_final.0000/make.err' Error with make! *** Error building 429.mcf ``` 【出现概率】 1)必然出现 2)若将 编译开关 -O3 更改为 -O2 ,则可正常build,但测试成绩显著下降。 3)若 关闭 -flto ,则build正常,但测试成绩显著下降。 【预期结果】 在使用编译选项 -O3 -flto -flto-partition=one -fipa-struct-reorg=5 时可以正常build测试程序 【实际结果】 使用编译选项 -O3 -flto -flto-partition=one -fipa-struct-reorg=5 ,build报错 lto1: internal compiler error 【附件信息】 比如系统message日志/组件日志、dump信息、图片等
Comments (
5
)
Sign in
to comment
Status
Confirmed
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
Labels
sig/Compiler
Not set
Projects
Unprojected
Unprojected
Milestones
openEuler-22.03-LTS-Dailybuild
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
Branches (
-
)
Tags (
-
)
Planed to start   -   Planed to end
-
Top level
Not Top
Top Level: High
Top Level: Medium
Top Level: Low
Priority
Not specified
Serious
Main
Secondary
Unimportant
Duration
(hours)
参与者(3)
1
https://gitee.com/src-openeuler/gcc.git
git@gitee.com:src-openeuler/gcc.git
src-openeuler
gcc
gcc
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register