On Tue, Sep 12, 2023 at 4:09 PM chenxiang (M) <chenxiang66@xxxxxxxxxxxxx> wrote: > > Hi, > > I build the latest kernel (6.6-rc1) for arm64 platform on x86 server > (with cross complile), and the complile command is as following: > > export > PATH=$PATH:/opt/gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu/bin/ > export ARCH=arm64 > export CROSS_COMPILE=aarch64-linux-gnu- > > make -j64 Image (ok) > > make binrpm-pkg -j64 (failed) > > But when complile binrpm-pkg, it is failed and the error info is as > following: > > rpmbuild -bb kernel.spec --define='_topdir > /home/chenxiang/kernel/mainline/linux-next/rpmbuild' --target > aarch64-linux --build-in-place --noprep --define='_smp_mflags %{nil}' > $(rpm -q rpm >/dev/null 2>&1 || echo --nodeps) --without devel > rpmbuild: --build-in-place: unknown option I cannot reproduce it on my build environment, but the error message: rpmbuild: --build-in-place: unknown option describes the issue. Which version of rpmbuild did you use? Using a newer version fixes the issue? -- Best Regards Masahiro Yamada