Re: Building custom kernel from src.rpm fails for kernel 5.7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/11/20 10:04 AM, stan wrote:
> Hi,
> 
> I build a custom kernel from the src.rpm for the development kernels,
> currently 5.7, on FC31 for x86_64.  The 5.6 kernels worked just fine,
> but I can't seem to get 5.7 kernels to build.
> 
> I first got the multiple %files error because I build perf and tools,
> but the  [OS-BUILD PATCH] Fix "multiple %files for package kernel-tools"
> fixed that.  But now I get an rpmbuild error that stops the build, but
> it doesn't give me any reason.  The note occurs above this last stanza
> without issue, so I don't think it has anything to do with the problem.
> 
> Can you think of any reason this might be occurring?  Could there be
> a dependency missing in the spec file?  Is it the ar command failing?
> 
> Here is the last little bit of output:
> 
>    ./tools/objtool/objtool orc generate  --no-fp --uaccess mm/memcontrol.o
>   if objdump -h mm/memcontrol.o | grep -q __ksymtab; then gcc -E -D__GENKSYMS__ -Wp,-MD,mm/.memcontrol.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/9/include -I./arch/x86/include -I./arch/x86/include/generated  -I./include -I./arch/x86/include/uapi -I./arch/x86/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Wno-format-security -Wno-address-of-packed-member -std=gnu89 -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setup -mtune=generic -mno-red-zone -mcmodel=kernel -Wno-sign-compare -fno-asynchronous-unwind-tables -fno-delete-null-pointer-checks -Wno-frame-address -Wno-format-truncation -Wno-
>  format-overflow -Wno-address-of-packed-member -O2 --param=allow-store-data-races=0 -fplugin=./scripts/gcc-plugins/latent_entropy_plugin.so -fplugin=./scripts/gcc-plugins/structleak_plugin.so -fplugin=./scripts/gcc-plugins/randomize_layout_plugin.so -fplugin=./scripts/gcc-plugins/stackleak_plugin.so -DLATENT_ENTROPY_PLUGIN -fplugin-arg-structleak_plugin-verbose -fplugin-arg-structleak_plugin-byref-all -DSTRUCTLEAK_PLUGIN -DRANDSTRUCT_PLUGIN -DSTACKLEAK_PLUGIN -fplugin-arg-stackleak_plugin-track-min-size=100 -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -Wimplicit-fallthrough -Wno-unused-const-variable -fomit-frame-pointer -fno-var-tracking-assignments -fno-inline-functions-called-once -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-stringop-truncation -fno-strict-overflow -fno-merge-all-constants -fmerge-constants -fno-stack-check -fconserve-stack -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -fmacro-prefix-ma
>  p=./= -Wno-packed-not-aligned    -DKBUILD_MODFILE='"mm/memcontrol"' -DKBUILD_BASENAME='"memcontrol"' -DKBUILD_MODNAME='"memcontrol"' mm/memcontrol.c | scripts/genksyms/genksyms    -r /dev/null > mm/.tmp_memcontrol.ver; ld -m elf_x86_64  -z max-page-size=0x200000 -r -o mm/.tmp_memcontrol.o mm/memcontrol.o -T mm/.tmp_memcontrol.ver; mv -f mm/.tmp_memcontrol.o mm/memcontrol.o; rm -f mm/.tmp_memcontrol.ver; fi
> 
> 
>   rm -f mm/built-in.a; ar cDPrST mm/built-in.a mm/filemap.o mm/mempool.o mm/oom_kill.o mm/fadvise.o mm/maccess.o mm/page-writeback.o mm/readahead.o mm/swap.o mm/truncate.o mm/vmscan.o mm/shmem.o mm/util.o mm/mmzone.o mm/vmstat.o mm/backing-dev.o mm/mm_init.o mm/mmu_context.o mm/percpu.o mm/slab_common.o mm/compaction.o mm/vmacache.o mm/interval_tree.o mm/list_lru.o mm/workingset.o mm/debug.o mm/gup.o mm/highmem.o mm/memory.o mm/mincore.o mm/mlock.o mm/mmap.o mm/mmu_gather.o mm/mprotect.o mm/mremap.o mm/msync.o mm/page_vma_mapped.o mm/pagewalk.o mm/pgtable-generic.o mm/rmap.o mm/vmalloc.o mm/process_vm_access.o mm/page_alloc.o mm/shuffle.o mm/init-mm.o mm/memblock.o mm/madvise.o mm/page_io.o mm/swap_state.o mm/swapfile.o mm/swap_slots.o mm/frontswap.o mm/zswap.o mm/dmapool.o mm/hugetlb.o mm/mempolicy.o mm/sparse.o mm/sparse-vmemmap.o mm/mmu_notifier.o mm/ksm.o mm/slub.o mm/migrate.o mm/huge_memory.o mm/khugepaged.o mm/page_counter.o mm/memcontrol.o mm/vmpressure.o mm/swap_cgroup.o mm/
>  memory-failure.o mm/rodata_test.o mm/cleancache.o mm/page_isolation.o mm/zpool.o mm/zbud.o mm/zsmalloc.o mm/early_ioremap.o mm/memfd.o mm/ptdump.o
> 
> 
> RPM build errors:
> 
> 
> And here is the last little bit of error output:
> 
> mm/memcontrol.c: In function 'mem_cgroup_try_charge_swap':
> mm/memcontrol.c:7036:23: note: byref variable will be forcibly initialized
>  7036 |  struct page_counter *counter;
>       |                       ^~~~~~~
> error: Bad exit status from /var/tmp/rpm-tmp.8rFEzz (%build)
>     Bad exit status from /var/tmp/rpm-tmp.8rFEzz (%build)

Did we turn -Wall on?  If yes, that's IMO a mistake to do on the upstream kernel.

P.

> _______________________________________________
> kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 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@xxxxxxxxxxxxxxxxxxxxxxx
> 

_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux