inux/pid.h:5, BUILDSTDERR: from ./include/linux/sched.h:14, BUILDSTDERR: from ./include/linux/cgroup.h:12, BUILDSTDERR: from kernel/cgroup/cgroup-internal.h:5, BUILDSTDERR: from kernel/cgroup/namespace.c:2: BUILDSTDERR: ./arch/riscv/include/asm/pgtable.h: In function 'pmd_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.h:140:9: note: in expansion of macro 'pfn_to_page' BUILDSTDERR: 140 | return pfn_to_page(pmd_val(pmd) >> _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.h:140:9: note: in expansion of macro 'pfn_to_page' BUILDSTDERR: 140 | return pfn_to_page(pmd_val(pmd) >> _PAGE_PFN_SHIFT); BUILDSTDERR: | ^~~~~~~~~~~ BUILDSTDERR: make[2]: *** [scripts/Makefile.build:266: kernel/cgroup/cgroup.o] Error 1 BUILDSTDERR: make[2]: *** [scripts/Makefile.build:266: kernel/cgroup/namespace.o] Error 1 BUILDSTDERR: make[1]: *** [scripts/Makefile.build:503: kernel/cgroup] Error 2 BUILDSTDERR: make: *** [Makefile:1692: kernel] Error 2 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.iGiP1d (%build) BUILDSTDERR: extra tokens at the end of %else directive in line 665: %else # released_kernel BUILDSTDERR: extra tokens at the end of %endif directive in line 674: %endif # released_kernel BUILDSTDERR: Macro expanded in comment on line 751: %{rpmversion}-%{distro_build}.tar.bz2 BUILDSTDERR: Macro expanded in comment on line 752: %{rpmversion}-%{distro_build}.tar.bz2 BUILDSTDERR: Macro expanded in comment on line 760: %{rpmversion}-redhat.patch BUILDSTDERR: extra tokens at the end of %endif directive in line 1002: %endif # with_perf BUILDSTDERR: extra tokens at the end of %endif directive in line 1057: %endif # with_tools BUILDSTDERR: extra tokens at the end of %endif directive in line 1078: %endif # with_bpftool BUILDSTDERR: extra tokens at the end of %endif directive in line 2261: %endif #turbostat/x86_energy_perf_policy BUILDSTDERR: extra tokens at the end of %endif directive in line 2483: %endif #turbostat/x86_energy_perf_policy BUILDSTDERR: extra tokens at the end of %endif directive in line 2744: %endif # with_perf BUILDSTDERR: extra tokens at the end of %endif directive in line 2765: %endif # cpupowerarchs BUILDSTDERR: extra tokens at the end of %endif directive in line 2789: %endif # with_tools BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.iGiP1d (%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