Segmentation fault in btrfs module while compiling kernel 6.3 with gcc v11

Bug #2046648 reported by Marc S
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-11 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Compilation error with Kernel Source 6.5.0 with command "nice make -j$(nproc) bindeb-pkg".

This is the stacktrace:
  CC [M] fs/btrfs/send.o
  CC [M] fs/btrfs/dev-replace.o
  CC [M] fs/btrfs/raid56.o
during GIMPLE pass: ccp
fs/btrfs/raid56.c: In function ‘hweight_long’:
fs/btrfs/raid56.c:2789:1: internal compiler error: Erreur de segmentation
 2789 | }
      | ^
0x7ffb91d6a51f ???
 ./signal/../sysdeps/unix/sysv/linux/x86_64/libc_sigaction.c:0
0x7ffb91d51d8f __libc_start_call_main
 ../sysdeps/nptl/libc_start_call_main.h:58
0x7ffb91d51e3f __libc_start_main_impl
 ../csu/libc-start.c:392
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions.
  CC [M] fs/btrfs/uuid-tree.o
  CC [M] fs/btrfs/props.o
  CC [M] fs/btrfs/free-space-tree.o
  CC [M] fs/btrfs/tree-checker.o
The bug is not reproducible, so it is likely a hardware or OS problem.
make[8]: *** [scripts/Makefile.build:251 : fs/btrfs/raid56.o] Erreur 1
make[8]: *** Attente des tâches non terminées....
make[7]: *** [scripts/Makefile.build:488 : fs/btrfs] Erreur 2
make[6]: *** [scripts/Makefile.build:488 : fs] Erreur 2
make[5]: *** [Makefile:2037 : .] Erreur 2
make[4]: *** [Makefile:359 : __build_one_by_one] Erreur 2
make[3]: *** [debian/rules:10 : build-arch] Erreur 2
dpkg-buildpackage: erreur: le sous-processus debian/rules binary a retourné l’état de sortie 2
make[2]: *** [scripts/Makefile.package:139 : bindeb-pkg] Erreur 2
make[1]: *** [/usr/src/linux-source-6.5.0/Makefile:1664 : bindeb-pkg] Erreur 2
make: *** [Makefile:234 : __sub-make] Erreur 2

I use gcc 11.4:
:/usr/src/linux-source-6.5.0$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/11/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none:amdgcn-amdhsa
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --disable-werror --enable-cet --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-nvptx/usr,amdgcn-amdhsa=/build/gcc-11-XeT9lY/gcc-11-11.4.0/debian/tmp-gcn/usr --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=2
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

Release:
lsb_release -rd
Description: Linux Mint 21
Release: 21

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.