./arch/riscv/include/asm/thread_info.h:11, BUILDSTDERR: from ./include/linux/thread_info.h:38, BUILDSTDERR: from ./include/asm-generic/preempt.h:5, BUILDSTDERR: from ./arch/riscv/include/generated/asm/preempt.h:1, BUILDSTDERR: from ./include/linux/preempt.h:78, BUILDSTDERR: from ./include/linux/radix-tree.h:14, BUILDSTDERR: from ./include/linux/idr.h:15, BUILDSTDERR: from ./include/linux/kernfs.h:13, BUILDSTDERR: from ./include/linux/sysfs.h:16, BUILDSTDERR: from ./include/linux/kobject.h:20, BUILDSTDERR: from ./include/linux/device.h:16, BUILDSTDERR: from ./include/linux/node.h:18, BUILDSTDERR: from ./include/linux/cpu.h:17, BUILDSTDERR: from arch/riscv/kernel/process.c:10: BUILDSTDERR: ./arch/riscv/include/asm/pgtable-64.h: In function 'pud_page': BUILDSTDERR: ./include/asm-generic/memory_model.h:54:29: error: 'vmemmap' undeclared (first use in this function); did you mean 'mem_map'? BUILDSTDERR: 54 | #define __pfn_to_page(pfn) (vmemmap + (pfn)) BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: ./include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page' BUILDSTDERR: 82 | #define pfn_to_page __pfn_to_page BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: ./arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page' BUILDSTDERR: 63 | return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: ./include/asm-generic/memory_model.h:54:29: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: 54 | #define __pfn_to_page(pfn) (vmemmap + (pfn)) BUILDSTDERR: | ^~~~~~~ BUILDSTDERR: ./include/asm-generic/memory_model.h:82:21: note: in expansion of macro '__pfn_to_page' BUILDSTDERR: 82 | #define pfn_to_page __pfn_to_page BUILDSTDERR: | ^~~~~~~~~~~~~ BUILDSTDERR: ./arch/riscv/include/asm/pgtable-64.h:63:9: note: in expansion of macro 'pfn_to_page' BUILDSTDERR: 63 | return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: make[2]: *** [scripts/Makefile.build:266: arch/riscv/kernel/process.o] Error 1 BUILDSTDERR: make[1]: *** [scripts/Makefile.build:509: arch/riscv/kernel] Error 2 BUILDSTDERR: make: *** [Makefile:1649: arch/riscv] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.48O2Ym (%build) BUILDSTDERR: Macro expanded in comment on line 149: %define with_kabichk %{?_without_kabichk: 0} %{?!_without_kabichk: 1} BUILDSTDERR: extra tokens at the end of %endif directive in line 837: %endif # with_selftests BUILDSTDERR: extra tokens at the end of %endif directive in line 1027: %endif # with_zfcpdump BUILDSTDERR: extra tokens at the end of %endif directive in line 1540: %endif # fedora BUILDSTDERR: extra tokens at the end of %endif directive in line 1541: %endif # arches BUILDSTDERR: extra tokens at the end of %endif directive in line 2083: %endif # with_doc BUILDSTDERR: extra tokens at the end of %endif directive in line 2128: %endif # with_kernel_abi_whitelists BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.48O2Ym (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/kernel.spec