From 30bb5ab057c1e96bff33c9aa9d943b56aa36b25e Mon Sep 17 00:00:00 2001 From: chn <897331845@qq.com> Date: Sun, 5 Jan 2020 17:19:04 +0800 Subject: [PATCH] fix objtool issue --- compile.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/compile.md b/compile.md index b214b66..25b8301 100644 --- a/compile.md +++ b/compile.md @@ -104,4 +104,19 @@ cd build_dir ln -s target-mipsel_1004kc+dsp_uClibc-1.0.x target-mips_1004kc+dsp_uClibc-1.0.x cd .. make package/xmurp-ua/compile V=sc ARCH=mips CROSS_COMPILE=/home/chn/Desktop/PandoraBox-SDK-ralink-mt7621_gcc-5.5.0_uClibc-1.0.x.Linux-x86_64-2019-02-01-git-0231ad4b5/staging_dir/toolchain-mipsel_1004kc+dsp_gcc-5.5.0_uClibc-1.0.x/bin/mipsel-openwrt-linux- +``` + +#### objtool 缺失 + +今天在 deepin 上编译时,遇到了下面的问题: + +``` +make[4]: *** No rule to make target 'tools/objtool/objtool', needed by '/home/chn/repo/xmurp-ua/debug/openwrt-sdk-18.06.5-x86-64_gcc-7.3.0_musl.Linux-x86_64/build_dir/target-x86_64_musl/linux-x86_64/xmurp-ua/xmurp-ua.o'. Stop. +``` + +解决办法是,把系统的 objtool 复制过来,然后再编译。 + +```bash +mkdir ./build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.151/tools/objtool +cp /usr/src/linux-headers-4.15.0-30deepin-generic/tools/objtool/objtool ./build_dir/target-x86_64_musl/linux-x86_64/linux-4.14.151/tools/objtool/ ``` \ No newline at end of file