Thank you for your help.
Here I start with a empty ~/rpmbuild:
- build error is 64K, so I uploaded to pastebin the content of kernel.spec, build_report
and build_error to
http://cwillu.com:8080/112.119.240.206/3 (in step 16)
1.
https://kojipkgs.fedoraproject.org//packages/kernel/5.14.0/0.rc3.29.fc35/...
2. mount ~/rpmbuild to /mnt/250G/rpmbild
3. rpmdev-setuptree
4. rpm -ivh kernel-5.14.0-0.rc3.29.fc35.src.rpm
5. kernel.spec: %define .20210803
6. rpmbuild -bp kernel.spec
7. sudo cp /boot/config-5.13.6-200.fc34.x86_64
~/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/.config
8. make oldconfig #press enter for all prompts
9. make menuconfig #CONFIG_BTRFS_ASSERT=y
10. cp
~/rpmbuild/BUILD/kernel-5.14-rc3//linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/.config
~/rpmbuild/SOURCES/kernel-local
11. rpmbuild -bb kernel.spec
+ ./process_configs.sh -w -n -c kernel 5.14.0
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-aarch64-debug.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-aarch64.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-armv7hl-debug.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-armv7hl-lpae-debug.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-armv7hl-lpae.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-armv7hl.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-i686-debug.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-i686.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-ppc64le-debug.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-ppc64le.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-s390x-debug.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-s390x.config
... done
Processing
/home/fcc/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-x86_64-debug.config
... Error: Mismatches found in configuration files
Found CONFIG_CC_VERSION_TEXT="gcc (scripts/dummy-tools/gcc)" after generation,
had CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)" in
Source tree
Found CONFIG_GCC_VERSION=200000 after generation, had CONFIG_GCC_VERSION=110201 in Source
tree
Found CONFIG_AS_VERSION=25000 after generation, had CONFIG_AS_VERSION=23501 in Source
tree
Found CONFIG_LD_VERSION=25000 after generation, had CONFIG_LD_VERSION=23501 in Source
tree
error: Bad exit status from /var/tmp/rpm-tmp.b3Ax1d (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.b3Ax1d (%prep)
12. pm -q gcc
gcc-11.2.1-1.fc34.x86_64
13. grep -i cc_version
~/rpmbuild/BUILD/kernel-5.14-rc3/linux-5.14.0-0.rc3.29.20210803.fc34.x86_64/configs/kernel-5.14.0-x86_64-debug.config
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.2.1 20210728 (Red Hat 11.2.1-1)"
CONFIG_GCC_VERSION=110201
14. (before redo 11, modify kernel.spec)
- #kernel-debug -> 0
- #kernel-debuginfo -> 0
- #kernel PAE (only valid for ARM (lpae)) -> 0
- %define nobuildarches i386 i686 ppc64 s390x %{arm} %{power64} aarch64 ppc64le
- # verbose build, i.e. no silent rules and V=1 -> 1
15. rpmbuild -bb kernel.spec > build_output 2> error_output
+ cp /home/fcc/rpmbuild/SOURCES/kernel-aarch64-debug-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-aarch64-debug-rhel.config
/home/fcc/rpmbuild/SOURCES/kernel-aarch64-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-aarch64-rhel.config
/home/fcc/rpmbuild/SOURCES/kernel-armv7hl-debug-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-armv7hl-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-armv7hl-lpae-debug-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-armv7hl-lpae-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-i686-debug-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-i686-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-ppc64le-debug-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-ppc64le-debug-rhel.config
/home/fcc/rpmbuild/SOURCES/kernel-ppc64le-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-ppc64le-rhel.config
/home/fcc/rpmbuild/SOURCES/kernel-s390x-debug-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-s390x-debug-rhel.config
/home/fcc/rpmbuild/SOURCES/kernel-s390x-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-s390x-rhel.config
/home/fcc/rpmbuild/SOURCES/kernel-s390x-zfcpdump-rhel.config
/home/fcc/rpmbuild/SOURCES/kernel-x86_64-debug-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-x86_64-debug-rhel.config
/home/fcc/rpmbuild/SOURCES/kernel-x86_64-fedora.config
/home/fcc/rpmbuild/SOURCES/kernel-x86_64-rhel.config .
+ 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)
Bad exit status from /var/tmp/rpm-tmp.yeTFEV (%prep)
16. cat kernel.spec build_output error_output | nc
cwillu.com 10101
http://cwillu.com:8080/112.119.240.206/3
17.
grep -i -e 'config_gcc_version' ~/rpmbuild/SOURCES/kernel-local
CONFIG_GCC_VERSION=110201
18. grep -i -r -e 'config_gcc_version' *
configs/kernel-local:CONFIG_GCC_VERSION=110201
configs/kernel-5.14.0-x86_64-debug.config:CONFIG_GCC_VERSION=110201
configs/kernel-5.14.0-x86_64.config:CONFIG_GCC_VERSION=110201
configs/kernel-5.14.0-aarch64-debug.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-aarch64.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-armv7hl-debug.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-armv7hl-lpae-debug.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-armv7hl-lpae.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-armv7hl.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-i686-debug.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-i686.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-ppc64le-debug.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-ppc64le.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-s390x-debug.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-s390x.config:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-x86_64-debug.config.orig.old:CONFIG_GCC_VERSION=110201
configs/kernel-5.14.0-x86_64-debug.config.orig:CONFIG_GCC_VERSION=200000
configs/kernel-5.14.0-x86_64-debug.config.tmp:CONFIG_GCC_VERSION=200000
include/config/auto.conf:CONFIG_GCC_VERSION=200000
include/generated/autoconf.h:#define CONFIG_GCC_VERSION 200000
scripts/Makefile.compiler:cc-ifversion = $(shell [ $(CONFIG_GCC_VERSION)0 $(1) $(2)000 ]
&& echo $(3) || echo $(4))