我正在尝试制作 Linux 内核 - 4.15.17。这是我继承的一个项目,它似乎使用了arm-linux-gnueabihf-gcc
编译器。以下是 make 过程的输出:
ndu@ndu-VirtualBox:~/Desktop/linux-4.15.17$ make
CHK include/config/kernel.release
CHK include/generated/uapi/linux/version.h
CHK include/generated/utsrelease.h
CHK include/generated/bounds.h
CHK include/generated/timeconst.h
CHK include/generated/asm-offsets.h
CALL scripts/checksyscalls.sh
CHK scripts/mod/devicetable-offsets.h
CHK include/generated/compile.h
VDSO arch/arm/vdso/vdso.so.raw
arm-linux-gnueabihf-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
arch/arm/vdso/Makefile:38: recipe for target 'arch/arm/vdso/vdso.so.raw' failed
make[1]: *** [arch/arm/vdso/vdso.so.raw] Error 1
Makefile:1033: recipe for target 'arch/arm/vdso' failed
make: *** [arch/arm/vdso] Error 2
我已经找到了该文件,但由于某种原因,在 make 过程中无法找到它:
usr/lib/gcc-cross/arm-linux-gnueabihf/7/liblto_plugin.so
任何帮助将不胜感激。
答案1
您可以尝试到 /lib 的符号链接
ln -s /usr/lib/gcc-cross/arm-linux-gnueabihf/7/liblto_plugin.so /lib/liblto_plugin.so
可能正在那里寻找它。