21 Star 26 Fork 94

src-openEuler / gcc

 / 详情

[22.03 SP3 RC4][codedb] -O2 -fifcvt-allow-complicated-cmps --param=ifcvt-allow-register-renaming=2选项编译llvm-12报ICE:internal compiler error(during RTL pass: ce1, at ifcvt.c:2184)

已验收
缺陷
创建于  
2023-12-21 22:22

【标题描述】 -O2 -fifcvt-allow-complicated-cmps --param=ifcvt-allow-register-renaming=2选项编译llvm-12报ICE:internal compiler error(during RTL pass: ce1, at ifcvt.c:2184)

一、缺陷信息
【环境信息】
软件信息

  • OS版本及分支信息:openEuler-22.03-LTS-SP3
  • 内核信息:5.10.0-179.0.0.93.oe2203sp3.aarch64
  • 发现问题的组件版本信息:gcc-10.3.1-45.oe2203sp3.aarch64
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-linux-gnu/10.3.1/lto-wrapper
Target: aarch64-linux-gnu
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --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++,fortran,objc,obj-c++,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-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
gcc version 10.3.1 (GCC)

【问题复现步骤】
1.配置工具链:

export PATH=/usr/bin:$PATH
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH

2.源码私下分享
3.执行以下命令进行编译

export CC="gcc -O2 -fifcvt-allow-complicated-cmps --param=ifcvt-allow-register-renaming=2"
export CXX="g++ -O2 -fifcvt-allow-complicated-cmps --param=ifcvt-allow-register-renaming=2"
tar -xf llvm-12.tar.gz
cd llvm-project
mkdir build
cd build
cmake -G "Unix Makefiles" -DCMAKE_INSTALL_PREFIX=/path/install -DCMAKE_BUILD_TYPE=Release  -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra;libcxx;libcxxabi;libunwind;lldb;compiler-rt;lld;polly" ../llvm
sed -i '86,95s/^/#/g' projects/libcxx/src/cmake_install.cmake
make -j96

【实际结果】
输入图片说明

评论 (3)

纪晓慧 创建了缺陷

Hi jixiaohuiyou, 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: @Noah , @eastb233 , @kuen , @Peilin Guo , @编译小伙 , @huangxiaoquan , @cf-zhao , @周磊 , @stubCode , @dingguangya , @Haijian.Zhang

openeuler-ci-bot 添加了
 
sig/Compiler
标签
纪晓慧 负责人设置为熊洲
纪晓慧 优先级设置为主要
纪晓慧 计划截止日期设置为2023-12-22
纪晓慧 计划开始日期设置为2023-12-21
纪晓慧 计划截止日期2023-12-22 修改为2023-12-23
纪晓慧 修改了描述

can you give a link to direct llvm-12.tar.gz that you use?
or single file that fails?

郑晨卉 通过src-openeuler/gcc Pull Request !376任务状态待办的 修改为已完成

使用RC5转测repo,回归结果:通过
输入图片说明

纪晓慧 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/gcc.git
git@gitee.com:src-openeuler/gcc.git
src-openeuler
gcc
gcc

搜索帮助