> On Wed, 28 Jul 2021 00:25:42 -0000
> 
> I see you got the other method working, so you really don't need this,
> but I'll comment just in case someone else reads this in the far
> future.  :-)
> 
> "Sampson Fung" <sampsonfung(a)gmail.com&gt; wrote:
> 
> 
> Harmless.
> 
got it.
> 
> It has to be 
> %define buildid .local
> Note the % sign in front of the define, it matters.
> 
got it.
> 
> You can try the below.  It will show whether the installed gcc on your
> system is the same as the config files are expecting.
> 
> What is the output of rpm -q gcc?
$ rpm -q gcc
gcc-11.1.1-3.fc34.x86_64
> What is the output of grep -i cc_version
> /home/fcc/rpmbuild/BUILD/kernel-5.13.5/linux-5.13.5-200.fc34.x86_64/configs/kernel-5.13.5-x86_64-debug.confiG
> ?
$ grep -i cc_version 
~/rpmbuild/BUILD/kernel-5.13.5/linux-5.13.5-200.local.20210729.fc34.x86_64/configs/kernel-5.13.5-x86_64-debug.config
CONFIG_CC_VERSION_TEXT="gcc (GCC) 11.1.1 20210531 (Red Hat 11.1.1-3)"
CONFIG_GCC_VERSION=110101

> Are they different?  I think that creating the
> ~/rpmbuild/SOURCES/kernel-local file will fix this.
> 
both reads like 11.1.1 to me.  I did  cp .config as kernel-local after make 
menuconfig.  After rm -rf ~/rpmbuild and start over, exit with same error.
> You can turn off debug config in the kernel.spec file.  Set the switch
> to 0 as it is set below.
> # kernel-debug
> %define with_debug     %{?_without_debug:     0} %{?!_without_debug:     0}
> # kernel-debuginfo
> %define with_debuginfo %{?_without_debuginfo: 0} %{?!_without_debuginfo: 0}
> 
> You might as well turn off PAE as well as you don't need it.
> # kernel PAE (only valid for ARM (lpae))
> %define with_pae       %{?_without_pae:       0} %{?!_without_pae:       0}
> 
> You can also turn off the build of architectures that you are not
> interested in. Add the last line to your spec (it won't be there).
> %define nobuildarches i386 i686 %{arm}
> %endif
> %define nobuildarches i386 i686 ppc64 s390x %{arm} %{power64} aarch64 ppc64le
> 
> That should get you a little further, if the other method doesn't work
> out.  It is more user friendly than this technique, which is a lot more
> manual. Probably why it was replaced.
> 
> I recommend you put your effort into getting the other method working.
I will.  And come back to using kernel-spec later.
_______________________________________________
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
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/kernel@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to