Bug#1053519: gcc-12: ICE when compiling ghdl 3.0.0 on arm64
Package: gcc-12
Version: 12.3.0-9
Severity: normal
Tags: upstream
Forwarded: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111704
X-Debbugs-Cc: sjr@debian.org
Control: affects -1 = ghdl
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
GHDL steps on an ICE while compiling GHDL 3.0.0 on arm64:
aarch64-linux-gnu-gcc-12 -c -I./ -I../../src -I../../src/vhdl -I../../src/synth -I../../src/grt -I../../src/psl -I../../src/vhdl/translate -I../../src/ghdldrv -I../../src/ortho -I../../src/ortho/llvm6 -I../../src/synth -I../../src/ghdldrv -gnat12 -gnaty3befhkmr -g -gnatwa -gnatwC -gnatf -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -mbranch-protection=standard -gno-record-gcc-switches -gnata -I- /<<PKGBUILDDIR>>/src/synth/synth-disp_vhdl.adb
/<<PKGBUILDDIR>>/src/ghdldrv/ghdldrv.adb: In function ‘Ghdldrv.Gen_Makefile’:
/<<PKGBUILDDIR>>/src/ghdldrv/ghdldrv.adb:2022:8: error: unrecognizable insn:
(insn 1387 147 204 13 (parallel [
(set (mem/c:SI (plus:DI (reg/f:DI 29 x29)
(const_int -260 [0xfffffffffffffefc])) [36 files_it+4 S4 A32])
(reg:SI 2 x2 [244]))
(set (mem/c:SI (plus:DI (reg/f:DI 29 x29)
(const_int -256 [0xffffffffffffff00])) [36 files_it+8 S4 A64])
(reg:SI 1 x1 [604]))
]) "/<<PKGBUILDDIR>>/src/ghdldrv/ghdldrv.adb":1926:19 -1
(expr_list:REG_DEAD (reg:SI 2 x2 [244])
(expr_list:REG_DEAD (reg:SI 1 x1 [604])
(nil))))
during RTL pass: cprop_hardreg
Full build log is at https://buildd.debian.org/status/fetch.php?pkg=ghdl&arch=arm64&ver=3.0.0%2Bdfsg2-1&stamp=1696130520&raw=0
I have already reported this to the GCC Bugzilla.
Simon
- -- System Information:
Debian Release: 12.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable-debug'), (500, 'stable')
merged-usr: no
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armhf
Kernel: Linux 6.1.0-12-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
LSM: AppArmor: enabled
Versions of packages gcc-12 depends on:
ii binutils 2.40-2
ii cpp-12 12.2.0-14
ii gcc-12-base 12.2.0-14
ii libc6 2.36-9+deb12u3
ii libcc1-0 12.2.0-14
ii libgcc-12-dev 12.2.0-14
ii libgcc-s1 12.2.0-14
ii libgmp10 2:6.2.1+dfsg1-1.1
ii libisl23 0.25-1
ii libmpc3 1.3.1-1
ii libmpfr6 4.2.0-1
ii libstdc++6 12.2.0-14
ii libzstd1 1.5.4+dfsg2-5
ii zlib1g 1:1.2.13.dfsg-1
Versions of packages gcc-12 recommends:
ii libc6-dev 2.36-9+deb12u3
Versions of packages gcc-12 suggests:
pn gcc-12-doc <none>
pn gcc-12-locales <none>
pn gcc-12-multilib <none>
- -- no debconf information
-----BEGIN PGP SIGNATURE-----
iQEzBAEBCgAdFiEEtjuqOJSXmNjSiX3Tfr04e7CZCBEFAmUexsEACgkQfr04e7CZ
CBHkYggArUJUHU/RlpTocoJ13EqLsENnfQGVlLuwcyX1lSEZRA06WGZk4HXa8Q85
V6TZNDtY1wjUdMQq/AWGPxyXJH/KqZRXHyx95L1fh7LY6BiI52/uajkzTQm0+V9M
HgUMDM2XrH23ocFNU/91vNmH4RH0bjYaV215ES4XHt+RV+YJpjjo9zFmjCYy99O/
PYFdq3XkIDKgNrFc7aN4hdPf94Xx0dFRZQ0JUA9X+y3Bzx5OIH7yUZkGEP4zrhv5
twIKAN0rdI6t89CCW/WhtIDaP2CYfraiB+vdMBtGdaOKCE09D8dVjpHB85CFqYyy
/MD/PclgY7KNaQvGj4fdk6AgWEIFPg==
=ijpm
-----END PGP SIGNATURE-----
Reply to: