【问题标题】:Build error in OpenWRTOpenWRT 中的构建错误
【发布时间】:2021-08-11 18:04:02
【问题描述】:

我按照 OpenWrt 网站上给出的以下步骤来设置 OpenWrt 构建系统。

sudo apt-get update

sudo apt-get install git-core build-essential libssl-dev libncurses5-dev unzip gawk zlib1g-dev

git clone https://github.com/openwrt/openwrt.git

git clone -b chaos_calmer git://github.com/openwrt/openwrt.git

cd openwrt ./scripts/feeds update -a ./scripts/feeds install -a

我在配置文件中进行了必要的更改并运行了make 命令。它给出了以下错误:make: *** [world] Error 1

有什么解决办法吗?

【问题讨论】:

标签: networking openwrt


【解决方案1】:

使用以下命令选项来了解您遇到的确切错误

make -j1 V=s

有时由于网速慢(在为 openwrt 获取包源代码时)或由于 RAM 可用性较低或配置错误导致此错误。发布您收到的错误消息块,以了解有关问题的更多信息。

【讨论】:

  • make -d --debug=j 也有助于调试。
【解决方案2】:

请遵循以下先决条件: https://wiki.openwrt.org/doc/howto/buildroot.exigence

请特别查看“已知先决条件及其对应软件包表”表。

【讨论】:

    【解决方案3】:

    你必须安装版本 7 的 gcc 和 g++ 所以试试这个:

    sudo apt install gcc-7 g++-7 build-essential
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-7 7
    sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-7 7
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-08-31
      • 1970-01-01
      • 1970-01-01
      • 2018-05-08
      • 2017-01-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多