Bug 6232 - [anolis23 5.10] build kernel rpms fail,is due to some macro errors.
Summary: [anolis23 5.10] build kernel rpms fail,is due to some macro errors.
Status: NEW
Alias: None
Product: Anolis OS 23
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 23.0
Hardware: All Linux
: P3-Medium S2-major
Target Milestone: ---
Assignee: maqiao
QA Contact: bolong_tbl
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-25 15:35 UTC by xugangjian
Modified: 2023-08-25 15:49 UTC (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description xugangjian alibaba_cloud_group 2023-08-25 15:35:53 UTC
Description of problem:
    anolis23 build kernel rpms fail,is due to some macro errors.


Steps to Reproduce:
    1.start a container environment
    2.export some env_parameters(export BUILD_MODE=nightly ; export BUILD_VARIANT=with-debug )
    3.sh -x ./build.sh

Actual results:
    Kernel compilation was interrupted by some macro errors

Expected results:
    success.

Additional info:

    <threr are some build logs>:
......
+ dist=an23
 + kernel_spec=/home/admin/builder/kernel.spec
 ++ grep -c processor /proc/cpuinfo
 + nproc=128
 + echo 'mode: nightly'
 mode: nightly
 + build
 + '[' -f /home/admin/builder/cloud-kernel/anolis/rpm/kernel.spec.template ']'
 + '[' -f /home/admin/builder/cloud-kernel/anolis/buildpkg.sh ']'
 + intree_spec_build
 + pushd /home/admin/builder/cloud-kernel/anolis/
 + DIST=.an23
 + DIST_BUILD_NUMBER=3
 + DIST_OUTPUT=/home/admin/builder/outputs
 + DIST_BUILD_MODE=nightly
 + DIST_BUILD_VARIANT=with-debug
 + DIST_BUILD_EXTRA=
 + make dist-rpms
 sh genrpmtree.sh
......
 /usr/bin/ld: /tmp/ccSzfbU1.ltrans15.ltrans.o: in function `test_dwarf_unwind__thread':
 /home/admin/builder/outputs/rpmbuild/BUILD/kernel-5.10.134-3.git.a35f4257a.an23/linux-5.10.134-3.git.a35f4257a.an23.aarch64/tools/perf/arch/arm64/tests/dwarf-unwind.c:57: undefined reference to `perf_regs_load'
 collect2: error: ld returned 1 exit status
 make[3]: *** [Makefile.perf:655: perf] Error 1
 make[3]: *** Waiting for unfinished jobs....
 make[2]: *** [Makefile.perf:229: sub-make] Error 2
 make[1]: *** [Makefile:70: all] Error 2
 make[1]: Leaving directory '/home/admin/builder/outputs/rpmbuild/BUILD/kernel-5.10.134-3.git.a35f4257a.an23/linux-5.10.134-3.git.a35f4257a.an23.aarch64/tools/perf'
 error: Bad exit status from /var/tmp/rpm-tmp.o6dgrK (%build)
 
 RPM build warnings:
     extra tokens at the end of %endif directive in line 1260:  %endif #turbostat/x86_energy_perf_policy
 
     extra tokens at the end of %endif directive in line 1265:  %endif #intel-speed-select
 
     extra tokens at the end of %endif directive in line 1435:  %endif #turbostat/x86_energy_perf_policy
 
     extra tokens at the end of %endif directive in line 1441:  %endif #intel-speed-select
 
 
 RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.o6dgrK (%build)
 + exit 1
 make: *** [Makefile:15: dist-rpms] Error 1
 + popd
 + ln -s /home/admin/builder/outputs/rpmbuild /home/admin/builder/rpmbuild