the commit had to be reverted because it broke the build of zfs-dkms,
and linux-restricted-modules:

# BTF [M] nvidia-modeset.ko
  if [ ! -f <<DKMSDIR>>/headers/linux-headers-7.0.0-11-generic/vmlinux ]; then 
printf "Skipping BTF generation for %s due to unavailability of vmlinux
" nvidia-modeset.ko 1>&2; else sh 
<<DKMSDIR>>/headers/linux-headers-7.0.0-11-generic/scripts/gen-btf.sh 
--btf_base <<DKMSDIR>>/headers/linux-headers-7.0.0-11-generic/vmlinux 
nvidia-modeset.ko; fi;
+ trap cleanup EXIT
+ BTFGEN_MODE=vmlinux
+ [ -n <<DKMSDIR>>/headers/linux-headers-7.0.0-11-generic/vmlinux ]
+ BTFGEN_MODE=module
+ gen_btf_data
+ btf1=nvidia-modeset.ko.BTF.1
+ awk 'BEGIN { pahole_cmd = "pahole"; for (i = 1; i < ARGC; i++) { if (ARGV[i] 
~ /--lang_exclude=/) { pahole_cmd = pahole_cmd sprintf(" %s,c++", ARGV[i]); } 
else { pahole_cmd = pahole_cmd sprintf(" %s", ARGV[i]); } } system(pahole_cmd); 
}' -J -j4 
--btf_features=encode_force,var,float,enum64,decl_tag,type_tag,optimized_func,consistent_func,decl_tag_kfuncs
 --btf_features=attributes --lang_exclude=rust --btf_base 
<<DKMSDIR>>/headers/linux-headers-7.0.0-11-generic/vmlinux 
--btf_encode_detached=nvidia-modeset.ko.BTF.1 nvidia-modeset.ko
awk: cmd. line:1: 'BEGIN
awk: cmd. line:1: ^ invalid char ''' in expression

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2133794

Title:
  BTF Generation Fails for Out-of-Tree Modules with Debuginfo Package

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2133794/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to