Bug 1619837

Summary: rebuild fails on kernel-4.17.14-202.fc28.src.rpm
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: airlied, bskeggs, ewk, hdegoede, ichavero, itamar, jarodwilson, jglisse, john.j5live, jonathan, josef, kernel-maint, labbott, linville, mchehab, mjg59, steved
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-02-21 21:13:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
piece of strace.out showing invocation of "make ARCH= " none

Description John Reiser 2018-08-21 21:08:32 UTC
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.

Comment 1 John Reiser 2018-08-21 21:10:52 UTC
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

Comment 2 Laura Abbott 2018-08-21 21:16:45 UTC
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?

Comment 3 John Reiser 2018-08-21 21:23:40 UTC
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.

Comment 4 Justin M. Forbes 2019-01-29 16:25:26 UTC
*********** 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.

Comment 5 Justin M. Forbes 2019-02-21 21:13:37 UTC
*********** 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.