21 Star 26 Fork 93

src-openEuler / gcc

 / 详情

[22.03 SP3 RC2][codedb]-O3 -march=armv8.1-a -floop-crc 选项导致netcdf-c编译Segmentation fault:during GIMPLE pass: loop_crc

已验收
缺陷
创建于  
2023-12-12 17:13

【标题描述】-O3 -march=armv8.1-a -floop-crc 选项导致netcdf-c编译Segmentation fault:during GIMPLE pass: loop_crc

【环境信息】
软件信息

  • OS版本及分支信息:openEuler 22.03 (LTS-SP3)
  • 内核信息:5.10.0-176.0.0.89.oe2203sp3.aarch64
  • 发现问题的组件版本信息:gcc-10.3.1-40.oe2203sp3.aarch64
使用内建 specs。
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/aarch64-linux-gnu/10.3.1/lto-wrapper
目标:aarch64-linux-gnu
配置为:../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
线程模型:posix
Supported LTO compression algorithms: zlib
gcc 版本 10.3.1 (GCC)

【问题复现步骤】

1. 下载netcdf-c源码包:https://codeload.github.com/Unidata/netcdf-c/tar.gz/refs/tags/v4.7.0
2. 安装依赖包:yum install -y m4 curl-devel cmake make
3. tar -xf netcdf-c-4.7.0.tar.gz
4. cd netcdf-c-4.7.0
5. ./configure --prefix=/PATH/netcdf-c-4.7.0 CPPFLAGS="-O3 -march=armv8.1-a -floop-crc" CFLAGS="-O3 -march=armv8.1-a -floop-crc" --disable-dap --disable-netcdf-4
6. make -j96

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

评论 (4)

erin_dan 创建了缺陷

Hi erin_dan, 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
标签

不带-floop-crc选项可编译成功
输入图片说明

erin_dan 修改了描述
erin_dan 负责人设置为eastb233
erin_dan 计划截止日期设置为2023-12-13
erin_dan 计划开始日期设置为2023-12-12
erin_dan 计划截止日期2023-12-13 修改为2023-12-15
erin_dan 优先级设置为主要
erin_dan 修改了描述
XingYuShuai 通过openeuler/gcc Pull Request !154任务状态待办的 修改为已完成
erin_dan 任务状态已完成 修改为已验收

登录 后才可以发表评论

状态
负责人
项目
里程碑
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

搜索帮助

53164aa7 5694891 3bd8fe86 5694891