Created attachment 1477680 [details] piece of strace.out showing invocation of "make ARCH= " Description of problem: kernel-4.17.14-202.fc28.src.rpm fails to rebuild. Version-Release number of selected component (if applicable): kernel-4.17.14-202.fc28.src.rpm How reproducible: every time Steps to Reproduce: 1. dnf download --source kernel-4.17.14-202.fc28.src.rpm 2. sudo dnf builddep kernel-4.17.14-202.fc28.src.rpm 3. cd rpmbuild/BUILD 4. strace -f -o strace.out -e trace=file -v -s 250 rpmbuild -bc kernel.spec 2>&1 | tee rpmbuild.out Actual results: [[snip]] + cp /bigdata/home2/jreiser-home2/rpmbuild/SOURCES/process_configs.sh . + OPTS= + OPTS=' -n' + OPTS=' -n -c' + ./process_configs.sh -n -c kernel 4.17.14 $DIR/rpmbuild/BUILD/kernel-4.17.fc28/linux-4.17.14-202.fc28.x86_64 $DIR/rpmbuild/BUILD/kernel-4.17.fc28/linux-4.17.14-202.fc28.x86_64/configs Processing $DIR/rpmbuild/BUILD/kernel-4.17.fc28/linux-4.17.14-202.fc28.x86_64/configs/kernel-4.17.14-2.6.10-i586-smp.config ... Makefile:521: arch//Makefile: No such file or directory make: *** No rule to make target 'arch//Makefile'. Stop. Makefile:521: arch//Makefile: No such file or directory make: *** No rule to make target 'arch//Makefile'. Stop. error: Bad exit status from /var/tmp/rpm-tmp.5QwFSO (%prep) Expected results: successful re-build of kernel Additional info: relevant portion of strace.out will be attached. The immediate problem is that 'make' is invoked with a command-line parameter of "ARCH=" (an empty string) which does not get overridden by ARCH ?= $(SUBARCH) at line 323 of the Makefile.
Steps to Reproduce: 1.5 [insert] rpm --install kernel-4.17.14-202.fc28.src.rpm 2.0 [replace] cd rpmbuild/SPECS; sudo dnf builddep kernel.spec
kernel-4.17.14-2.6.10-i586-smp.config is not a file we have in our tree, where is that file coming from?
The strace says: 9509 execve("/usr/bin/mv", ["mv", "kernel-2.6.10-i586-smp.config", "kernel-4.17.14-2.6.10-i586-smp.config"], ... and rpmbuild/BUILD has these directories: kernel-2.6.29 kernel-2.6.30 kernel-3.5.fc17 kernel-4.17.fc28 which retain historical results of earlier builds. and rpmbuild/SOURCES has a file kernel-2.6.10-i586-smp.config which also is historical. So the problem is not restricting some shell glob pattern to files in the current build.
*********** MASS BUG UPDATE ************** We apologize for the inconvenience. There are a large number of bugs to go through and several of them have gone stale. Due to this, we are doing a mass bug update across all of the Fedora 28 kernel bugs. Fedora 28 has now been rebased to 4.20.5-100.fc28. Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel. If you have moved on to Fedora 29, and are still experiencing this issue, please change the version to Fedora 29. If you experience different issues, please open a new bug report for those.
*********** MASS BUG UPDATE ************** This bug is being closed with INSUFFICIENT_DATA as there has not been a response in 3 weeks. If you are still experiencing this issue, please reopen and attach the relevant data from the latest kernel you are running and any data that might have been requested previously.