Closed KongGuoguang closed 2 years ago
同HC5962 ,编 5.10内核的,也是fail
make[3] -C feeds/packages/lang/luasocket compile make[3] -C package/utils/busybox compile make[3] -C package/system/opkg host-compile make[3] -C package/kernel/linux compile ERROR: package/kernel/linux failed to build. make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on make: [/workdir/openwrt/include/toplevel.mk:230: world] Error 1 make[1] world make[2] target/compile make[3] -C target/linux compile make[2] buildinfo make[3] diffconfig buildversion feedsversion make[4] scripts/config/conf make[2] package/cleanup make[2] package/compile make[3] -C package/libs/libjson-c host-compile make[3] -C package/libs/libubox host-compile make[3] -C package/system/opkg host-compile make[3] -C package/libs/toolchain compile make[3] -C package/firmware/linux-firmware compile make[3] -C package/firmware/prism54-firmware compile make[3] -C package/kernel/linux compile ERROR: package/kernel/linux failed to build. make -r world: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on make: [/workdir/openwrt/include/toplevel.mk:230: world] Error 1 make[1]: Entering directory '/workdir/openwrt' make[2]: Entering directory '/workdir/openwrt' make[3]: Entering directory '/workdir/openwrt/target/linux' make[4]: Entering directory '/workdir/openwrt/target/linux/ramips' rm -f /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/localversion /workdir/openwrt/scripts/kconfig.pl + /workdir/openwrt/target/linux/generic/config-5.10 /workdir/openwrt/target/linux/ramips/mt7621/config-5.10 > /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.target awk '/^(#[[:space:]]+)?CONFIG_KERNEL/{sub("CONFIGKERNEL","CONFIG_");print}' /workdir/openwrt/.config >> /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.target echo "# CONFIG_KALLSYMS_EXTRA_PASS is not set" >> /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.target echo "# CONFIG_KALLSYMS_ALL is not set" >> /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.target echo "CONFIG_KALLSYMS_UNCOMPRESSED=y" >> /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.target /workdir/openwrt/scripts/package-metadata.pl kconfig /workdir/openwrt/tmp/.packageinfo /workdir/openwrt/.config 5.10 > /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.override /workdir/openwrt/scripts/kconfig.pl 'm+' '+' /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.target /dev/null /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.override > /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set mv /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.old grep -v INITRAMFS /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.old > /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set echo 'CONFIG_INITRAMFS_SOURCE=""' >> /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set echo '# CONFIG_INITRAMFS_FORCE is not set' >> /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set rm -rf /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/modules cmp -s /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.prev || { cp /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config; cp /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.prev; } export MAKEFLAGS= ; [ -d /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/user_headers ] || make -C /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110 KCFLAGS="-fmacro-prefix-map=/workdir/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl" HOSTCFLAGS="-O2 -I/workdir/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Tue Apr 12 04:59:09 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/workdir/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/workdir/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KERNELRELEASE=5.10.110 CC="mipsel-openwrt-linux-musl-gcc" INSTALL_HDR_PATH=/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/user_headers headers_install grep '=[ym]' /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.config.set | LC_ALL=C sort | /workdir/openwrt/staging_dir/host/bin/mkhash md5 > /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.vermagic touch /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/.configured rm -f /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/vmlinux /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110/System.map make -C /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110 KCFLAGS="-fmacro-prefix-map=/workdir/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl" HOSTCFLAGS="-O2 -I/workdir/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Tue Apr 12 04:59:09 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/workdir/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/workdir/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KERNELRELEASE=5.10.110 CC="mipsel-openwrt-linux-musl-gcc" olddefconfig make[5]: Entering directory '/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110' net/sched/Kconfig:45: warning: menuconfig statement without prompt net/Kconfig:486:warning: multi-line strings not supported #
# make[5]: Leaving directory '/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110' make -C /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110 KCFLAGS="-fmacro-prefix-map=/workdir/openwrt/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl" HOSTCFLAGS="-O2 -I/workdir/openwrt/staging_dir/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Tue Apr 12 04:59:09 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/workdir/openwrt/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/workdir/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KERNELRELEASE=5.10.110 CC="mipsel-openwrt-linux-musl-gcc" vmlinux vmlinuz modules make[5]: Entering directory '/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.10.110' CALL scripts/checksyscalls.sh CALL scripts/atomic/check-atomics.sh CHK include/generated/compile.h GEN .version CHK include/generated/compile.h LD vmlinux.o MODPOST vmlinux.symvers MODINFO modules.builtin.modinfo
2022-4-21 最新报错日志
-- Build files have been written to: /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/tools
touch /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/.configured_9e276c5a547b8fdc8d20e786cae50ea1
rm -f /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/.built
touch /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/.built_check
make -C "/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.35" KCFLAGS="-fmacro-prefix-map=/home/kong/lede/build_dir/target-mipsel_24kc_musl=target-mipsel_24kc_musl" HOSTCFLAGS="-O2 -I/home/kong/lede/staging_dir/host/include -I/home/kong/lede/staging_dir/hostpkg/include -I/home/kong/lede/staging_dir/target-mipsel_24kc_musl/host/include -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="mipsel-openwrt-linux-musl-" ARCH="mips" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Wed Apr 20 18:16:49 2022" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/kong/lede/staging_dir/host/lib" KBUILD_HOSTLDLIBS="-L/home/kong/lede/staging_dir/host/lib" CONFIG_SHELL="bash" V='' cmd_syscalls= KBUILD_EXTRA_SYMBOLS="/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/cryptodev-linux.symvers /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/gpio-button-hotplug.symvers /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/mac80211.symvers /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/symvers/batman-adv.symvers" KERNELRELEASE=5.15.35 CONFIG_MT76x02_LIB=m CONFIG_MT76x2_COMMON=m CONFIG_MT76x2E=m CONFIG_MT7603E=m M="/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060" NOSTDINC_FLAGS="-nostdinc -isystem /home/kong/lede/staging_dir/toolchain-mipsel_24kc_gcc-8.4.0_musl/lib/gcc/mipsel-openwrt-linux-musl/8.4.0/include -I/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060 -I/home/kong/lede/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211-backport/uapi -I/home/kong/lede/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211-backport -I/home/kong/lede/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211/uapi -I/home/kong/lede/staging_dir/target-mipsel_24kc_musl/usr/include/mac80211 -include backport/autoconf.h -include backport/backport.h -DCONFIG_MAC80211_MESH" modules
make[4]: Entering directory '/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.35'
CC [M] /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/eeprom.o
CC [M] /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/mac.o
CC [M] /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/init.o
CC [M] /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/phy.o
CC [M] /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/mcu.o
LD [M] /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/mt76x2-common.o
CC [M] /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.o
/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.c:181:1: warning: data definition has no type or storage class
module_pci_driver(mt76pci_driver);
^~~~~
/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.c:181:1: error: type defaults to 'int' in declaration of 'module_pci_driver' [-Werror=implicit-int]
/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.c:181:1: warning: parameter names (without types) in function declaration
/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.c:170:26: warning: 'mt76pci_driver' defined but not used [-Wunused-variable]
static struct pci_driver mt76pci_driver = {
^~~~~~
cc1: some warnings being treated as errors
make[6]: [scripts/Makefile.build:277: /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.o] Error 1
make[5]: [scripts/Makefile.build:540: /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2] Error 2
make[4]: [Makefile:1868: /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060] Error 2
make[4]: Leaving directory '/home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.35'
make[3]: [Makefile:469: /home/kong/lede/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/.built] Error 2
make[3]: Leaving directory '/home/kong/lede/package/kernel/mt76'
time: package/kernel/mt76/compile#7.45#1.14#8.29
ERROR: package/kernel/mt76 failed to build.
make[2]: [package/Makefile:116: package/kernel/mt76/compile] Error 1
make[2]: Leaving directory '/home/kong/lede'
make[1]: [package/Makefile:110: /home/kong/lede/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/kong/lede'
make: *** [/home/kong/lede/include/toplevel.mk:230:world] 错误 2
please fix package/lean/mt/luci-app-mtwifi/Makefile - see logs/package/lean/mt/luci-app-mtwifi/dump.txt for details
今天编过了 5.10的
今天编过了
看了下你的配置,替换了版本,编译5.10过了。但是好像如果打开test kernel,编译5.15还是不行欸
今天编过了
我这儿还是不行
openmesh有点鸡肋,必须配置免dhcp和静态不冲突的IP,LDDEwifi自带AP功能,寻找后填写WIFI密码即可,也可以静态配置,也可以dhcp配置,我之前编译openmesh没问题,今天出编译问题,导致编译失败。
想在这个议题问下大佬,我编译这个机器的固件,wifi驱动速度不理想,有没有什么文献可以参考一下,提升一下无线速度
openmesh有点鸡肋,必须配置免dhcp和静态不冲突的IP,LDDEwifi自带AP功能,寻找后填写WIFI密码即可,也可以静态配置,也可以dhcp配置,我之前编译openmesh没问题,今天出编译问题,导致编译失败。
# 如果已经编译过
rm -fr build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/batman-adv-2022.0
rm -fr feeds/routing/batman-adv
svn co https://github.com/openwrt/routing/branches/openwrt-22.03/batman-adv/ feeds/routing/batman-adv
解决思路参见:https://githubhot.com/repo/immortalwrt/immortalwrt/issues/494
反馈bug/问题模板,提建议请删除
1.关于你要提交的问题
Q:是否搜索了issue (使用 "x" 选择)
2. 详细叙述
(1) 具体问题
A:使用5.15内核编译报错
(2) 路由器型号和固件版本
A:极路由4(HC5962),最新代码
(3) 详细日志
A: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.c:181:1: warning: data definition has no type or storage class module_pci_driver(mt76pci_driver); ^
~~~~ /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.c:181:1: error: type defaults to 'int' in declaration of 'module_pci_driver' [-Werror=implicit-int] /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.c:181:1: warning: parameter names (without types) in function declaration /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.c:170:26: warning: 'mt76pci_driver' defined but not used [-Wunused-variable] static struct pci_driver mt76pci_driver = { ^~~~~~ cc1: some warnings being treated as errors make[6]: [scripts/Makefile.build:277: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2/pci.o] Error 1 make[5]: [scripts/Makefile.build:540: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/mt76x2] Error 2 make[4]: [Makefile:1868: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060] Error 2 make[4]: Leaving directory '/workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/linux-5.15.32' make[3]: [Makefile:469: /workdir/openwrt/build_dir/target-mipsel_24kc_musl/linux-ramips_mt7621/mt76-2022-04-07-506bb060/.built] Error 2 make[3]: Leaving directory '/workdir/openwrt/package/kernel/mt76' time: package/kernel/mt76/compile#3.85#0.65#4.35 ERROR: package/kernel/mt76 failed to build. make[2]: [package/Makefile:116: package/kernel/mt76/compile] Error 1 make[2]: Leaving directory '/workdir/openwrt' make[1]: [package/Makefile:110: /workdir/openwrt/staging_dir/target-mipsel_24kc_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/workdir/openwrt' make: *** [/workdir/openwrt/include/toplevel.mk:230: world] Error 2