Error related to GCC LTO optimization for GMP at ARM AArch64

Some One gluker at gmail.com
Fri Jan 6 15:51:40 CET 2023


Dear GMP developers,

I've found the problem related to GCC LTO optimization for GMP for ARM
aarch64
under QEMU with ARM Neoverse-N1 virt-4.2 (Oracle Cloud) and ARM virt-7.2
(Apple M1)
both running the latest Gentoo with gmp-6.2.1-r5 compiled by both
gcc version 11.3.1 20221209 and gcc version 12.2.1 20221231.

To reproduce:
1. Compile GMP with LTO optimization -- compiles OK
2. Try to compile iproute2-6.1.0 or cmake-3.25.1 -- compilation hangs
during the process

Disabling LTO optimization for GMP solves the problem.

Regards!


More information about the gmp-bugs mailing list