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.
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
16
Star
26
Fork
122
openEuler
/
gcc
Code
Issues
8
Pull Requests
9
Wiki
Insights
Pipelines
Service
JavaDoc
PHPDoc
Quality Analysis
Jenkins for Gitee
Tencent CloudBase
Tencent Cloud Serverless
悬镜安全
Aliyun SAE
Codeblitz
SBOM
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.
【22.03 LTS-SP1】【arm】【codedb】-O3 -ftree-slp-transpose-vectorize编译mcsema ICE: during GIMPLE pass: ldist:internal compiler error: Segmentation fault
Accepted
#I65A1O
Bug
纪晓慧
Opened this issue
2022-12-08 14:46
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 【标题描述】 【22.03 LTS-SP1】【arm】【codedb】-O3 -ftree-slp-transpose-vectorize编译mcsema ICE: during GIMPLE pass: ldist:internal compiler error: Segmentation fault 【环境信息】 软件信息: 1)os版本:openEuler 21.09 2)内核信息:5.10.0-5.10.0.24.oe1.aarch64 3)工具链版本 ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr2/jixiaohui/slreach/install/bin/../libexec/gcc/aarch64-linux-gnu/10.3.1/lto-wrapper Target: aarch64-linux-gnu Configured with: ../gcc/configure --prefix=/home/lyc/2022/gitee_lyc_gcc/install --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,lto --enable-plugin --enable-initfini-array --disable-libgcj --without-isl --without-cloog --enable-gnu-indirect-function --build=aarch64-linux-gnu --with-stage1-ldflags=' -Wl,-z,relro,-z,now' --with-boot-ldflags=' -Wl,-z,relro,-z,now' --disable-bootstrap --with-multilib-list=lp64 --enable-bolt Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.3.1 (GCC) ``` 【问题复现步骤】 1、配置工具链: ``` export PATH=path to 1230b02 ``` 2、执行以下命令: ``` cd ./test/build/MultiSource/Applications/JM/lencod && ./test/build/tools/timeit --summary CMakeFiles/lencod.dir/block.c.o.time gcc -DNDEBUG -I./test/MultiSource/Applications/JM/lencod -I./test/build/MultiSource/Applications/JM/lencod -O2 -fcommon -O3 -ftree-slp-transpose-vectorize -w -Werror=date-time -D __USE_LARGEFILE64 -D _FILE_OFFSET_BITS=64 -o CMakeFiles/lencod.dir/block.c.o -c ./test/MultiSource/Applications/JM/lencod/block.c ``` 【预期结果】 编译成功 【实际结果】 ``` during GIMPLE pass: ldist ./test/MultiSource/Applications/JM/lencod/block.c: In function ‘dct_luma’: ./test/MultiSource/Applications/JM/lencod/block.c:947:5: internal compiler error: Segmentation fault 947 | int dct_luma(int block_x,int block_y,int *coeff_cost, int intra) | ^~~~~~~~ 0xb07ae3 crash_signal ../../gcc/gcc/toplev.c:328 0xb86f5c build_queue ../../gcc/gcc/tree-loop-distribution.c:3217 0xb86f5c find_isomorphic_stmts ../../gcc/gcc/tree-loop-distribution.c:3836 0xb86f5c get_cut_points ../../gcc/gcc/tree-loop-distribution.c:4022 0xb86f5c loop_distribution::insert_temp_arrays(loop*, vec<gimple*, va_heap, vl_ptr>, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, bitmap_head*) ../../gcc/gcc/tree-loop-distribution.c:4233 0xb87e8b loop_distribution::distribute_loop(loop*, vec<gimple*, va_heap, vl_ptr>, control_dependences*, int*, bool*, bool) ../../gcc/gcc/tree-loop-distribution.c:4329 0xb8a09f loop_distribution::execute(function*) ../../gcc/gcc/tree-loop-distribution.c:4719 0xb8a34f execute ../../gcc/gcc/tree-loop-distribution.c:4807 ``` 【附件信息】 附件私下分享
<!-- #请根据issue的类型在标题右侧下拉框中选择对应的选项(需求、缺陷或CVE等)--> <!-- #请根据issue相关的版本在里程碑中选择对应的节点,若是与版本无关,请选择“不关联里程碑”--> 【标题描述】 【22.03 LTS-SP1】【arm】【codedb】-O3 -ftree-slp-transpose-vectorize编译mcsema ICE: during GIMPLE pass: ldist:internal compiler error: Segmentation fault 【环境信息】 软件信息: 1)os版本:openEuler 21.09 2)内核信息:5.10.0-5.10.0.24.oe1.aarch64 3)工具链版本 ``` Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr2/jixiaohui/slreach/install/bin/../libexec/gcc/aarch64-linux-gnu/10.3.1/lto-wrapper Target: aarch64-linux-gnu Configured with: ../gcc/configure --prefix=/home/lyc/2022/gitee_lyc_gcc/install --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,lto --enable-plugin --enable-initfini-array --disable-libgcj --without-isl --without-cloog --enable-gnu-indirect-function --build=aarch64-linux-gnu --with-stage1-ldflags=' -Wl,-z,relro,-z,now' --with-boot-ldflags=' -Wl,-z,relro,-z,now' --disable-bootstrap --with-multilib-list=lp64 --enable-bolt Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 10.3.1 (GCC) ``` 【问题复现步骤】 1、配置工具链: ``` export PATH=path to 1230b02 ``` 2、执行以下命令: ``` cd ./test/build/MultiSource/Applications/JM/lencod && ./test/build/tools/timeit --summary CMakeFiles/lencod.dir/block.c.o.time gcc -DNDEBUG -I./test/MultiSource/Applications/JM/lencod -I./test/build/MultiSource/Applications/JM/lencod -O2 -fcommon -O3 -ftree-slp-transpose-vectorize -w -Werror=date-time -D __USE_LARGEFILE64 -D _FILE_OFFSET_BITS=64 -o CMakeFiles/lencod.dir/block.c.o -c ./test/MultiSource/Applications/JM/lencod/block.c ``` 【预期结果】 编译成功 【实际结果】 ``` during GIMPLE pass: ldist ./test/MultiSource/Applications/JM/lencod/block.c: In function ‘dct_luma’: ./test/MultiSource/Applications/JM/lencod/block.c:947:5: internal compiler error: Segmentation fault 947 | int dct_luma(int block_x,int block_y,int *coeff_cost, int intra) | ^~~~~~~~ 0xb07ae3 crash_signal ../../gcc/gcc/toplev.c:328 0xb86f5c build_queue ../../gcc/gcc/tree-loop-distribution.c:3217 0xb86f5c find_isomorphic_stmts ../../gcc/gcc/tree-loop-distribution.c:3836 0xb86f5c get_cut_points ../../gcc/gcc/tree-loop-distribution.c:4022 0xb86f5c loop_distribution::insert_temp_arrays(loop*, vec<gimple*, va_heap, vl_ptr>, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, bitmap_head*) ../../gcc/gcc/tree-loop-distribution.c:4233 0xb87e8b loop_distribution::distribute_loop(loop*, vec<gimple*, va_heap, vl_ptr>, control_dependences*, int*, bool*, bool) ../../gcc/gcc/tree-loop-distribution.c:4329 0xb8a09f loop_distribution::execute(function*) ../../gcc/gcc/tree-loop-distribution.c:4719 0xb8a34f execute ../../gcc/gcc/tree-loop-distribution.c:4807 ``` 【附件信息】 附件私下分享
Comments (
2
)
Sign in
to comment
Status
Accepted
Backlog
已挂起
Fixing
Confirmed
Done
Accepted
Canceled
Assignees
Not set
笨鸟不飞就是鸡
benniaobufeijiushiji
Assignee
Collaborator
+Assign
+Mention
Labels
sig/Compiler
Not set
Projects
Unprojected
Unprojected
Milestones
openEuler-22.03-LTS-SP1-round-2
No related milestones
Pull Requests
None yet
None yet
Successfully merging a pull request will close this issue.
Branches
No related branch
No related branch
master
gcc-10-feature
gcc-10
openEuler-22.03-LTS-LoongArch
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)
参与者(1)
1
https://gitee.com/openeuler/gcc.git
git@gitee.com:openeuler/gcc.git
openeuler
gcc
gcc
Going to Help Center
Search
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
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