编译busybox的时候出现了一个问题:
sync.c:(.text.sync_main+0x78): undefined reference to `syncfs'
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
错误显示在sync.c文件下没有定义某个东西,
我们的解决办法就是,将sync.c文件不进行编译连接,避开它的错误
1:找到sync.c文件所在的目录

     find -name "sync.c"       //在coreutils/sync.c
2:打开该目录下的Makefile或者是Kbuild找到sync.o是被谁控制的
     lib-$(CONFIG_SYNC) += sync.o
3:在make menuconfig中找到SYNC对应的配置项,将其不选中即可

相关文章:

  • 2021-07-28
  • 2021-06-25
  • 2021-05-31
  • 2022-12-23
  • 2021-12-10
  • 2021-12-06
  • 2022-01-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2021-06-03
  • 2022-01-14
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案