GCC error - during RTL pass: cprop /segfault in sbitmap

Development on core packages and the distribution goes on in here.

GCC error - during RTL pass: cprop /segfault in sbitmap

Postby moonlinux » Fri Oct 01, 2021 5:43 pm

Hi All,

I am observing this gcc bug while native compiling the kernel on my RockProc N10.

$this->bbcode_second_pass_code('', ' CC kernel/auditsc.o
CC fs/ext4/bitmap.o
CC mm/memblock.o
CC fs/proc/softirqs.o
CC fs/ext4/block_validity.o
during RTL pass: cprop
mm/page_alloc.c: In function 'get_page_from_freelist':
mm/page_alloc.c:4184:1: internal compiler error: Segmentation fault
4184 | }
| ^
CC fs/ext4/dir.o
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://github.com/archlinuxarm/PKGBUILDs/issues> for instructions.
make[1]: *** [scripts/Makefile.build:277: mm/page_alloc.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC fs/ext4/ext4_jbd2.o
CC fs/proc/namespaces.o
make: *** [Makefile:1868: mm] Error 2
make: *** Waiting for unfinished jobs....
CC fs/ext4/extents.o
CC fs/ext4/extents_status.o
CC fs/proc/self.o
')

See below thread on this issue.
https://www.mail-archive.com/gcc-bugs@gcc.gnu.org/msg666937.html

Gcc version below.
$this->bbcode_second_pass_code('', ' [alarm@alarm linux-rockchip]$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-unknown-linux-gnu/10.2.0/lto-wrapper
Target: aarch64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://github.com/archlinuxarm/PKGBUILDs/issues --enable-languages=c,c++,fortran,go,lto,objc,obj-c++,d --with-isl --with-linker-hash-style=gnu --with-system-zlib --enable-__cxa_atexit --enable-checking=release --enable-clocale=gnu --enable-default-pie --enable-default-ssp --enable-gnu-indirect-function --enable-gnu-unique-object --enable-install-libiberty --enable-linker-build-id --enable-lto --enable-plugin --enable-shared --enable-threads=posix --disable-libssp --disable-libstdcxx-pch --disable-libunwind-exceptions --disable-multilib --disable-werror --host=aarch64-unknown-linux-gnu --build=aarch64-unknown-linux-gnu --with-arch=armv8-a --enable-fix-cortex-a53-835769 --enable-fix-cortex-a53-843419 gdc_include_dir=/usr/include/dlang/gdc
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 10.2.0 (GCC)
')
moonlinux
 
Posts: 14
Joined: Mon Jul 13, 2015 5:38 pm

Re: GCC error - during RTL pass: cprop /segfault in sbitmap

Postby moonlinux » Sun Oct 17, 2021 6:49 pm

How can I upgrade the gcc for ARM and ARM64. gcc 10.3 or gcc 11.2.
moonlinux
 
Posts: 14
Joined: Mon Jul 13, 2015 5:38 pm

Re: GCC error - during RTL pass: cprop /segfault in sbitmap

Postby graysky » Sun Oct 17, 2021 7:22 pm

$this->bbcode_second_pass_quote('moonlinux', 'H')ow can I upgrade the gcc for ARM and ARM64. gcc 10.3 or gcc 11.2.


Compile your own or wait for Kevin to get issues sorted out and bump the official toolchain. For aarch64, I switched over a few months ago. See my gcc-v11.2 branch. You can use my toolchain if you want since I compiled it for my own use, I have been sharing it on repo-ck:

Add this to your pacman.conf before [core]:
$this->bbcode_second_pass_code('', '[gcc-testing]
Server = http://repo-ck.com/aarch64-test/
')

Import my signing key (instructions http://repo-ck.com/)
Run pacman -Syu
graysky
Developer
 
Posts: 1723
Joined: Sun Jun 26, 2011 6:56 am
Location: /run/user/1000

Re: GCC error - during RTL pass: cprop /segfault in sbitmap

Postby moonlinux » Tue Oct 19, 2021 5:15 pm

Thanks for the input, I followed your example to add the gpg key but it failed on my dev board.

$this->bbcode_second_pass_code('', '[alarm@archl-hc1-t ~]$ sudo vim /etc/pacman.conf
[alarm@archl-hc1-t ~]$ sudo pacman-key -r 5EE46C4C --keyserver hkp://pool.sks-keyservers.net && pacman-key --lsign-key 5EE46C4C
gpg: keyserver receive failed: No name
==> ERROR: Remote key not fetched correctly from keyserver.
')
moonlinux
 
Posts: 14
Joined: Mon Jul 13, 2015 5:38 pm


Return to Arch Linux ARM

Who is online

Users browsing this forum: No registered users and 2 guests

cron