On 11/7/22 09:57, stan via kernel wrote:
Hi,
I built the 6.1 rc3 kernel over the weekend, and on the first build it
failed.  The error was this line in the spec file:
     # Remove large intermediate files we no longer need to save space
     # rm vmlinux.o .tmp_vmlinux.btf
The error was that the [a path in tmp I don't remember]/.tmp_vmlinux.btf
file did not exist. There was no complaint about the vmlinux.o file.
As you can see, because of the helpful comment, I knew that it was only
a space issue, so I just commented the line and everything built
successfully after that.

Perhaps this should be protected with
if [-f .tmp_vmlinux.btf]
   rm .tmp_vmlinux.btf
fi
?

Makes sense to me. The file will only exist if BTF is enabled in the config, so checking for it's existence is valid IMO.

I'll submit an MR for this.

P.
_______________________________________________
kernel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to