On Tue, 03 Aug 2021 07:00:56 -0000
"Sampson Fung" <sampsonfung(a)gmail.com> wrote:
This all looks OK.
Here is my relevant error output from the configuration step.
+ cp /home/stan/rpmbuild/SOURCES/generate_all_configs.sh .
+ cp /home/stan/rpmbuild/SOURCES/merge.pl .
+ cp /home/stan/rpmbuild/SOURCES/kernel-local .
+ VERSION=5.14.0
+ ./generate_all_configs.sh fedora 0
+ for i in kernel-5.14.0-x86_64*.config
+ mv kernel-5.14.0-x86_64.config kernel-5.14.0-x86_64.config.tmp
+ ./merge.pl /home/stan/rpmbuild/SOURCES/kernel-local kernel-5.14.0-x86_64.config.tmp
+ rm kernel-5.14.0-x86_64.config.tmp
+ cp /home/stan/rpmbuild/SOURCES/process_configs.sh .
+ OPTS=
+ ./process_configs.sh kernel 5.14.0
/home/stan/rpmbuild/BUILD/kernel-5.14-rc3-38-g4010a528219e/linux-5.14.0-0.rc3.20210728git4010a528219e.32.20210731.fc35.x86_64/configs/kernel-5.14.0-x86_64.config.orig:4950:warning:
override: PSTORE_LZ4HC_COMPRESS_DEFAULT changes choice state
+ cp /home/stan/rpmbuild/SOURCES/update_scripts.sh .
+ RPM_SOURCE_DIR=/home/stan/rpmbuild/SOURCES
+ ./update_scripts.sh fedora
+ cd ..
+ find . '(' -name '*.orig' -o -name '*~' ')' -delete
Here is your error output, as you also posted, but here unwrapped
because replying wrapped it.
+ cp /home/fcc/rpmbuild/SOURCES/generate_all_configs.sh .
+ cp /home/fcc/rpmbuild/SOURCES/merge.pl .
+ cp /home/fcc/rpmbuild/SOURCES/kernel-local .
+ VERSION=5.14.0
+ ./generate_all_configs.sh fedora 1
+ for i in kernel-5.14.0-x86_64*.config
+ mv kernel-5.14.0-x86_64-debug.config kernel-5.14.0-x86_64-debug.config.tmp
+ ./merge.pl /home/fcc/rpmbuild/SOURCES/kernel-local
kernel-5.14.0-x86_64-debug.config.tmp
+ rm kernel-5.14.0-x86_64-debug.config.tmp
+ for i in kernel-5.14.0-x86_64*.config
+ mv kernel-5.14.0-x86_64.config kernel-5.14.0-x86_64.config.tmp
+ ./merge.pl /home/fcc/rpmbuild/SOURCES/kernel-local kernel-5.14.0-x86_64.config.tmp
+ rm kernel-5.14.0-x86_64.config.tmp
+ cp /home/fcc/rpmbuild/SOURCES/process_configs.sh .
+ OPTS=
+ OPTS=' -w -n -c'
+ ./process_configs.sh -w -n -c kernel 5.14.0
error: Bad exit status from /var/tmp/rpm-tmp.yeTFEV (%prep)
Your output has an extra for loop. I'm not sure where that comes from.
The OPTS line is also different when you run process_configs.sh
I ran a diff between your spec file and mine, and I found that there
were setting changes that I have that you do not have. That first one
looks like the culprit.
%define with_configchecks %{?_without_configchecks: 0} %{?!_without_configchecks:
0}
%define with_headers 1
%define with_perf 1
%define with_tools 1
# bpftool btf dump file vmlinux format c > $RPM_BUILD_ROOT/$DevelDir/vmlinux.h
#config(noreplace) /etc/modprobe.d/*-blacklist.conf\
Try these, and see if they work for you. If they don't, I can post the
spec file and the kernel-local I use. The kernel-local is tuned to my
hardware, so won't build a system you want, but they can show if what
works here works there. I don't think it will be necessary, I think it
is the configchecks setting above that is causing the problem. I
should have thought of it, but I have been setting it for years, so
it's on autopilot.