FATAL: parse error in symbol dump file

如题。

最近在做Kernel4.9到Kernel5.4的移植,Kernel本身移植没有遇到太大的困难,

但由于添加了外部模块MVE,所以遇到了如题的编译问题。

具体错误如下:

  CC [M]  /home/tinghua/work/mve/driver/dev/mvx_scheduler.o
  CC [M]  /home/tinghua/work/mve/driver/mvx_pm_runtime.o
  LD [M]  /home/tinghua/work/mve/driver/amvx.o
  Building modules, stage 2.
  MODPOST 1 modules
FATAL: parse error in symbol dump file
/home/tinghua/work/Kernel-4.9.110/scripts/Makefile.modpost:93: recipe for target '__modpost' failed
make[3]: *** [__modpost] Error 1
/home/tinghua/work/Kernel-4.9.110/Makefile:1647: recipe for target 'modules' failed
make[2]: *** [modules] Error 2
/home/tinghua/work/Kernel-4.9.110/Makefile:179: recipe for target 'sub-make' failed
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory '/home/tinghua/work/Build/Kernel'
Makefile:4: recipe for target 'mono_v4l2' failed
make: *** [mono_v4l2] Error 2
make: Leaving directory '/home/tinghua/work/mve/driver'
scons: *** [driver/amvx.ko] Error 2
scons: building terminated because of errors.

查阅不少资料,主要有用资料如下:

kernel/git/torvalds/linux.git - Linux kernel source treeFATAL: parse error in symbol dump filehttps://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=040fcc819a2e7783a570f4bdcdd1f2a7f5f06837

        后确定问题原因在于/mve/driver/Module.symvers文件,这个文件不随编译随时更新,先前的代码目录是用来编译Kernel4.9的,所以这个文件有问题,把这个文件删除后,重新编译,就可以正常编译通过了。

上一篇:Leetcode 2013. 检测正方形(Map)


下一篇:【基本知识】UART接口