【标题描述】 -O3 -flto -flto-partition=one -fipa-prefetch -fipa-ic选项编译SQLite报ICE:lto1:lto1: internal compiler error(during IPA pass: ipa_prefetch,at ipa-prefetch.c:700)
一、缺陷信息
【环境信息】
软件信息
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.将编译器工具链中的./libexec/gcc/aarch64-linux-gnu/10.3.1/liblto_plugin.so.0.0.0拷贝至系统/usr/lib64/bfd-plugins目录,并进行软连接
ln -s liblto_plugin.so.0.0.0 liblto_plugin.so.0
ln -s liblto_plugin.so.0.0.0 liblto_plugin.so
3.获取源码:https://www.sqlite.org/2019/sqlite-autoconf-3280000.tar.gz
4.执行以下命令进行编译安装
tar -zxvf sqlite-autoconf-3280000.tar.gz
cd sqlite-autoconf-3280000
./configure --prefix=/path/sqlite CFLAGS="-O3 -flto -flto-partition=one -fipa-prefetch -fipa-ic" CPPFLAGS=" -O3 -flto -flto-partition=one -ficp -fipa-prefetch -fipa-ic"
make -j4
【实际结果】
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
使用RC5转测repo,回归结果:通过
登录 后才可以发表评论