乡下人产国偷v产偷v自拍,国产午夜片在线观看,婷婷成人亚洲综合国产麻豆,久久综合给合久久狠狠狠9

  • <output id="e9wm2"></output>
    <s id="e9wm2"><nobr id="e9wm2"><ins id="e9wm2"></ins></nobr></s>

    • 分享

      編譯busybox錯(cuò)誤匯總

       路人甲Java 2022-05-17 發(fā)布于北京

      ?提示錯(cuò)誤:
      arm-linux-gcc:Command not found
      PATH里有/usr/oca/arm/bin,但是make的時(shí)候,就是找不到 arm-linux-gcc
      ? 原因:
      export PATH=$PATH:/usr/local/arm/bin是設(shè)置當(dāng)前用戶(hù)的PATH,而sudo執(zhí)行make的時(shí)候,使用的是超級(jí)用戶(hù)權(quán)限,那也就使用了超級(jí)用戶(hù)的PATH(但是這個(gè)PATH里,并沒(méi)有/usr/ local/arm/bin)

      ?解決辦法
      先打開(kāi)一個(gè)超級(jí)用戶(hù)權(quán)限的
      sudo -s
      在當(dāng)前模式下,設(shè)置環(huán)境變量export PATH=$PATH /usr/local/arm/bin,再進(jìn)入到busybox目錄, make CONFIG_PREFIX=/work/nfs_root/first_fs install,就成功安裝busybox了。

      ?提示錯(cuò)誤:
      /home/book/work/busybox-1.7.0/scripts/gcc-version.sh: line 11: arm-linux-gcc: command not found
      /home/book/work/busybox-1.7.0/scripts/gcc-version.sh: line 11: arm-linux-gcc: command not found
      CC applets/applets.o
      /bin/sh: 1: arm-linux-gcc: not found
      scripts/Makefile.build:192: recipe for target 'applets/applets.o' failed
      make[1]: *** [applets/applets.o] Error 127
      Makefile:701: recipe for target 'applets' failed
      make: *** [applets] Error 2

      ? 原因:
      交叉編譯器的絕對(duì)路徑與相對(duì)路徑問(wèn)題

      ?解決辦法
      在busybox的頂層Makefile 176行 CROSS COMPILE ?= 中添加/work/tools/gcc-3.4.5-glibc-2.3.6/bin/arm-linux-的絕對(duì)路徑就成功了。(為什么以前用arm-linux-就可以自己找到?)

      ?提示錯(cuò)誤:
      CC applets/applets.o
      In file included from include/busybox.h:10,
      from applets/applets.c:16:
      include/libbb.h:15: error: syntax error before '<' token
      In file included from /work/tools/gcc-3.4.5-glibc-2.3.6/lib/gcc/arm-linux/3.4.5/../../../../arm-linux/sys-include/dirent.h:62,
      from include/libbb.h:16,
      from include/busybox.h:10,
      from applets/applets.c:16:
      /work/tools/gcc-3.4.5-glibc-2.3.6/lib/gcc/arm-linux/3.4.5/../../../../arm-linux/sys-include/bits/dirent.h:35: error: syntax error before '}' token
      applets/applets.c: In function get_trimmed_slice': applets/applets.c:102: warning: implicit declaration of function isspace'
      scripts/Makefile.build:192: recipe for target 'applets/applets.o' failed
      make[1]: *** [applets/applets.o] Error 1
      Makefile:701: recipe for target 'applets' failed
      make: *** [applets] Error 2
      ? 原因:
      缺少必要頭文件
      ?解決辦法
      修改busybox中的源碼:include/libbb.h 中,增加一行#include <sys/resource.h>。

      有任何問(wèn)題,均可通過(guò)公告中的二維碼聯(lián)系我

        本站是提供個(gè)人知識(shí)管理的網(wǎng)絡(luò)存儲(chǔ)空間,所有內(nèi)容均由用戶(hù)發(fā)布,不代表本站觀點(diǎn)。請(qǐng)注意甄別內(nèi)容中的聯(lián)系方式、誘導(dǎo)購(gòu)買(mǎi)等信息,謹(jǐn)防詐騙。如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊一鍵舉報(bào)。
        轉(zhuǎn)藏 分享 獻(xiàn)花(0

        0條評(píng)論

        發(fā)表

        請(qǐng)遵守用戶(hù) 評(píng)論公約

        類(lèi)似文章 更多