我目前在构建OpenWRT时遇到问题。
在以下步骤中,它总是失败:
make[3] -C package/kernel/mac80211 compile
这是我得到的错误:
/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless/ralink/rt2x00/rt2x00pci.c:152:2: error: implicit declaration of function 'pci_clear_mwi'; did you mean 'pci_clear_flags'? [-Werror=implicit-function-declaration]
pci_clear_mwi(pci_dev);
^~~~~~~~~~~~~
pci_clear_flags
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless/ralink/rt2x00/rt2x00pci.o' failed
make[11]: *** [/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless/ralink/rt2x00/rt2x00pci.o] Error 1
scripts/Makefile.build:585: recipe for target '/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless/ralink/rt2x00' failed
make[10]: *** [/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless/ralink/rt2x00] Error 2
scripts/Makefile.build:585: recipe for target '/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless/ralink' failed
make[9]: *** [/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless/ralink] Error 2
scripts/Makefile.build:585: recipe for target '/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless' failed
make[8]: *** [/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/drivers/net/wireless] Error 2
Makefile:1532: recipe for target '_module_/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01' failed
make[7]: *** [_module_/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01] Error 2
Makefile.build:6: recipe for target 'modules' failed
make[6]: *** [modules] Error 2
Makefile.real:93: recipe for target 'modules' failed
make[5]: *** [modules] Error 2
Makefile:119: recipe for target 'modules' failed
make[4]: *** [modules] Error 2
make[4]: Leaving directory '/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01'
Makefile:1897: recipe for target '/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/.built' failed
make[3]: *** [/home/mike/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7620/backports-2017-11-01/.built] Error 2
make[3]: Leaving directory '/home/mike/openwrt/package/kernel/mac80211'
time: package/kernel/mac80211/compile#0.94#0.29#2.40
package/Makefile:107: recipe for target 'package/kernel/mac80211/compile' failed
make[2]: *** [package/kernel/mac80211/compile] Error 2
make[2]: Leaving directory '/home/mike/openwrt'
package/Makefile:103: recipe for target '/home/mike/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile' failed
make[1]: *** [/home/mike/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/mike/openwrt'
/home/mike/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
我该怎么办才能解决此错误?