build:268: arch/riscv/kernel/process.o] Error 1 BUILDSTDERR: make[1]: *** [scripts/Makefile.build:505: arch/riscv/kernel] Error 2 BUILDSTDERR: make[1]: *** Waiting for unfinished jobs.... BUILDSTDERR: In file included from ./arch/riscv/include/asm/page.h:143, BUILDSTDERR: from ./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/spinlock.h:51, BUILDSTDERR: from ./include/linux/seqlock.h:36, BUILDSTDERR: from ./include/linux/time.h:6, BUILDSTDERR: from ./include/linux/ktime.h:24, BUILDSTDERR: from ./include/linux/timer.h:6, BUILDSTDERR: from ./include/linux/workqueue.h:9, BUILDSTDERR: from ./include/linux/bpf.h:9, BUILDSTDERR: from arch/riscv/net/bpf_jit_comp.c:8: 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:70:9: note: in expansion of macro 'pfn_to_page' BUILDSTDERR: 70 | 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:70:9: note: in expansion of macro 'pfn_to_page' BUILDSTDERR: 70 | return pfn_to_page(pud_val(pud) >> _PAGE_PFN_SHIFT); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: make[2]: *** [scripts/Makefile.build:268: arch/riscv/mm/init.o] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... BUILDSTDERR: make[1]: *** [scripts/Makefile.build:505: arch/riscv/mm] Error 2 BUILDSTDERR: make[2]: *** [scripts/Makefile.build:268: arch/riscv/net/bpf_jit_comp.o] Error 1 BUILDSTDERR: make[1]: *** [scripts/Makefile.build:505: arch/riscv/net] Error 2 BUILDSTDERR: make: *** [Makefile:1683: arch/riscv] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.VpU4Eg (%build) BUILDSTDERR: Macro expanded in comment on line 756: %{rpmversion}-%{distro_build}.tar.bz2 BUILDSTDERR: Macro expanded in comment on line 757: %{rpmversion}-%{distro_build}.tar.bz2 BUILDSTDERR: Macro expanded in comment on line 765: %{rpmversion}-redhat.patch BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.VpU4Eg (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, 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