You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
got an error when buiding linux kernel. Could you help?
target is Openfi 6C
I also added qmodem packages and custom package for Opnenfi to control fan, If it does matter.
2025-09-05T17:10:33.1645613Z # CC drivers/net/ethernet/mediatek/mtk_eth_soc.o 2025-09-05T17:10:33.1654930Z aarch64-openwrt-linux-musl-gcc -Wp,-MMD,drivers/net/ethernet/mediatek/.mtk_eth_soc.o.d -nostdinc -I./arch/arm64/include -I./arch/arm64/include/generated -I./include -I./arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -DKASAN_SHADOW_SCALE_SHIFT= -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mgeneral-regs-only -DCONFIG_CC_HAS_K_CONSTRAINT=1 -Wno-psabi -mabi=lp64 -fno-asynchronous-unwind-tables -fno-unwind-tables -mbranch-protection=none -Wa,-march=armv8.5-a -DARM64_ASM_ARCH='"armv8.5-a"' -DKASAN_SHADOW_SCALE_SHIFT= -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -falign-functions=4 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fconserve-stack -fno-builtin-wcslen -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wframe-larger-than=2048 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow -Wno-format-truncation -Wno-stringop-overflow -Wno-stringop-truncation -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-maybe-uninitialized -Wno-sign-compare -g -fno-var-tracking -femit-struct-debug-baseonly -fmacro-prefix-map=/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/build_dir/target-aarch64_cortex-a53_musl=target-aarch64_cortex-a53_musl -fno-caller-saves -mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1072 -DKBUILD_MODFILE='"drivers/net/ethernet/mediatek/mtk_eth"' -DKBUILD_BASENAME='"mtk_eth_soc"' -DKBUILD_MODNAME='"mtk_eth"' -D__KBUILD_MODNAME=kmod_mtk_eth -c -o drivers/net/ethernet/mediatek/mtk_eth_soc.o drivers/net/ethernet/mediatek/mtk_eth_soc.c 2025-09-05T17:10:33.9891394Z drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_poll_rx': 2025-09-05T17:10:33.9897729Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:2488:88: error: 'HIT_BIND_FORCE_TO_CPU' undeclared (first use in this function) 2025-09-05T17:10:33.9898568Z 2488 | if ( (mac == 4) || ((FIELD_GET(MTK_RXD4_PPE_CPU_REASON, trxd.rxd4)) == HIT_BIND_FORCE_TO_CPU)) 2025-09-05T17:10:33.9899081Z | ^~~~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:33.9899794Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:2488:88: note: each undeclared identifier is reported only once for each function it appears in 2025-09-05T17:10:34.1468619Z drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_pending_work': 2025-09-05T17:10:34.1481780Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:5467:42: error: 'MTK_FE_START_RESET' undeclared (first use in this function) 2025-09-05T17:10:34.1482810Z 5467 | call_netdevice_notifiers(MTK_FE_START_RESET, eth->netdev[i]); 2025-09-05T17:10:34.1483216Z | ^~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.2124366Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:5513:42: error: 'MTK_FE_RESET_NAT_DONE' undeclared (first use in this function) 2025-09-05T17:10:34.2125142Z 5513 | call_netdevice_notifiers(MTK_FE_RESET_NAT_DONE, eth->netdev[i]); 2025-09-05T17:10:34.2125572Z | ^~~~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.2597337Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:5515:42: error: 'MTK_FE_RESET_DONE' undeclared (first use in this function) 2025-09-05T17:10:34.2598124Z 5515 | call_netdevice_notifiers(MTK_FE_RESET_DONE, eth->netdev[i]); 2025-09-05T17:10:34.2598535Z | ^~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.3545347Z drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_eth_netdevice_event': 2025-09-05T17:10:34.3571062Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:7163:14: error: 'MTK_WIFI_RESET_DONE' undeclared (first use in this function); did you mean 'MTK_WED_RESET_IDX'? 2025-09-05T17:10:34.3571800Z 7163 | case MTK_WIFI_RESET_DONE: 2025-09-05T17:10:34.3574007Z | ^~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.3574300Z | MTK_WED_RESET_IDX 2025-09-05T17:10:34.4193931Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:7170:14: error: 'MTK_WIFI_CHIP_ONLINE' undeclared (first use in this function) 2025-09-05T17:10:34.4195030Z 7170 | case MTK_WIFI_CHIP_ONLINE: 2025-09-05T17:10:34.4195338Z | ^~~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.4831685Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:7174:14: error: 'MTK_WIFI_CHIP_OFFLINE' undeclared (first use in this function) 2025-09-05T17:10:34.4832978Z 7174 | case MTK_WIFI_CHIP_OFFLINE: 2025-09-05T17:10:34.4833479Z | ^~~~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.5444242Z make[11]: *** [scripts/Makefile.build:243: drivers/net/ethernet/mediatek/mtk_eth_soc.o] Error 1 2025-09-05T17:10:34.5445926Z make[10]: *** [scripts/Makefile.build:480: drivers/net/ethernet/mediatek] Error 2 2025-09-05T17:10:34.5448501Z make[9]: *** [scripts/Makefile.build:480: drivers/net/ethernet] Error 2 2025-09-05T17:10:34.5450790Z make[8]: *** [scripts/Makefile.build:480: drivers/net] Error 2 2025-09-05T17:10:34.5453940Z make[7]: *** [scripts/Makefile.build:480: drivers] Error 2 2025-09-05T17:10:34.5457709Z make[6]: *** [/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.95/Makefile:1924: .] Error 2 2025-09-05T17:10:34.5460154Z make[5]: *** [Makefile:234: __sub-make] Error 2 2025-09-05T17:10:34.5460943Z make[5]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.95' 2025-09-05T17:10:34.5463444Z make[4]: *** [Makefile:18: /home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.95/.modules] Error 2 2025-09-05T17:10:34.5465456Z make[4]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/target/linux/mediatek' 2025-09-05T17:10:34.5466010Z make[3]: *** [Makefile:12: compile] Error 2 2025-09-05T17:10:34.5466478Z make[3]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/target/linux' 2025-09-05T17:10:34.5469251Z time: target/linux/compile#735.51#69.39#800.24 2025-09-05T17:10:34.5476967Z ERROR: target/linux failed to build. 2025-09-05T17:10:34.5481222Z make[2]: *** [target/Makefile:32: target/linux/compile] Error 1 2025-09-05T17:10:34.5490708Z make[2]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6' 2025-09-05T17:10:34.5495893Z make[1]: *** [target/Makefile:25: /home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/staging_dir/target-aarch64_cortex-a53_musl/stamp/.target_compile] Error 2 2025-09-05T17:10:34.5504591Z make[1]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6' 2025-09-05T17:10:34.5515193Z make: *** [/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/include/toplevel.mk:233: world] Error 2 2025-09-05T17:10:34.5533512Z ##[error]Process completed with exit code 2.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
got an error when buiding linux kernel. Could you help?
target is Openfi 6C
I also added qmodem packages and custom package for Opnenfi to control fan, If it does matter.
2025-09-05T17:10:33.1645613Z # CC drivers/net/ethernet/mediatek/mtk_eth_soc.o 2025-09-05T17:10:33.1654930Z aarch64-openwrt-linux-musl-gcc -Wp,-MMD,drivers/net/ethernet/mediatek/.mtk_eth_soc.o.d -nostdinc -I./arch/arm64/include -I./arch/arm64/include/generated -I./include -I./arch/arm64/include/uapi -I./arch/arm64/include/generated/uapi -I./include/uapi -I./include/generated/uapi -include ./include/linux/compiler-version.h -include ./include/linux/kconfig.h -include ./include/linux/compiler_types.h -D__KERNEL__ -mlittle-endian -DKASAN_SHADOW_SCALE_SHIFT= -fmacro-prefix-map=./= -std=gnu11 -fshort-wchar -funsigned-char -fno-common -fno-PIE -fno-strict-aliasing -mgeneral-regs-only -DCONFIG_CC_HAS_K_CONSTRAINT=1 -Wno-psabi -mabi=lp64 -fno-asynchronous-unwind-tables -fno-unwind-tables -mbranch-protection=none -Wa,-march=armv8.5-a -DARM64_ASM_ARCH='"armv8.5-a"' -DKASAN_SHADOW_SCALE_SHIFT= -fno-delete-null-pointer-checks -O2 -fno-allow-store-data-races -fstack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-stack-clash-protection -falign-functions=4 -fstrict-flex-arrays=3 -fno-strict-overflow -fno-stack-check -fconserve-stack -fno-builtin-wcslen -Wall -Wundef -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Werror=strict-prototypes -Wno-format-security -Wno-trigraphs -Wno-frame-address -Wno-address-of-packed-member -Wframe-larger-than=2048 -Wno-main -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-dangling-pointer -Wvla -Wno-pointer-sign -Wcast-function-type -Wno-array-bounds -Wno-alloc-size-larger-than -Wimplicit-fallthrough=5 -Werror=date-time -Werror=incompatible-pointer-types -Werror=designated-init -Wenum-conversion -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-restrict -Wno-packed-not-aligned -Wno-format-overflow -Wno-format-truncation -Wno-stringop-overflow -Wno-stringop-truncation -Wno-missing-field-initializers -Wno-type-limits -Wno-shift-negative-value -Wno-maybe-uninitialized -Wno-sign-compare -g -fno-var-tracking -femit-struct-debug-baseonly -fmacro-prefix-map=/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/build_dir/target-aarch64_cortex-a53_musl=target-aarch64_cortex-a53_musl -fno-caller-saves -mstack-protector-guard=sysreg -mstack-protector-guard-reg=sp_el0 -mstack-protector-guard-offset=1072 -DKBUILD_MODFILE='"drivers/net/ethernet/mediatek/mtk_eth"' -DKBUILD_BASENAME='"mtk_eth_soc"' -DKBUILD_MODNAME='"mtk_eth"' -D__KBUILD_MODNAME=kmod_mtk_eth -c -o drivers/net/ethernet/mediatek/mtk_eth_soc.o drivers/net/ethernet/mediatek/mtk_eth_soc.c 2025-09-05T17:10:33.9891394Z drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_poll_rx': 2025-09-05T17:10:33.9897729Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:2488:88: error: 'HIT_BIND_FORCE_TO_CPU' undeclared (first use in this function) 2025-09-05T17:10:33.9898568Z 2488 | if ( (mac == 4) || ((FIELD_GET(MTK_RXD4_PPE_CPU_REASON, trxd.rxd4)) == HIT_BIND_FORCE_TO_CPU)) 2025-09-05T17:10:33.9899081Z | ^~~~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:33.9899794Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:2488:88: note: each undeclared identifier is reported only once for each function it appears in 2025-09-05T17:10:34.1468619Z drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_pending_work': 2025-09-05T17:10:34.1481780Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:5467:42: error: 'MTK_FE_START_RESET' undeclared (first use in this function) 2025-09-05T17:10:34.1482810Z 5467 | call_netdevice_notifiers(MTK_FE_START_RESET, eth->netdev[i]); 2025-09-05T17:10:34.1483216Z | ^~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.2124366Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:5513:42: error: 'MTK_FE_RESET_NAT_DONE' undeclared (first use in this function) 2025-09-05T17:10:34.2125142Z 5513 | call_netdevice_notifiers(MTK_FE_RESET_NAT_DONE, eth->netdev[i]); 2025-09-05T17:10:34.2125572Z | ^~~~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.2597337Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:5515:42: error: 'MTK_FE_RESET_DONE' undeclared (first use in this function) 2025-09-05T17:10:34.2598124Z 5515 | call_netdevice_notifiers(MTK_FE_RESET_DONE, eth->netdev[i]); 2025-09-05T17:10:34.2598535Z | ^~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.3545347Z drivers/net/ethernet/mediatek/mtk_eth_soc.c: In function 'mtk_eth_netdevice_event': 2025-09-05T17:10:34.3571062Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:7163:14: error: 'MTK_WIFI_RESET_DONE' undeclared (first use in this function); did you mean 'MTK_WED_RESET_IDX'? 2025-09-05T17:10:34.3571800Z 7163 | case MTK_WIFI_RESET_DONE: 2025-09-05T17:10:34.3574007Z | ^~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.3574300Z | MTK_WED_RESET_IDX 2025-09-05T17:10:34.4193931Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:7170:14: error: 'MTK_WIFI_CHIP_ONLINE' undeclared (first use in this function) 2025-09-05T17:10:34.4195030Z 7170 | case MTK_WIFI_CHIP_ONLINE: 2025-09-05T17:10:34.4195338Z | ^~~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.4831685Z drivers/net/ethernet/mediatek/mtk_eth_soc.c:7174:14: error: 'MTK_WIFI_CHIP_OFFLINE' undeclared (first use in this function) 2025-09-05T17:10:34.4832978Z 7174 | case MTK_WIFI_CHIP_OFFLINE: 2025-09-05T17:10:34.4833479Z | ^~~~~~~~~~~~~~~~~~~~~ 2025-09-05T17:10:34.5444242Z make[11]: *** [scripts/Makefile.build:243: drivers/net/ethernet/mediatek/mtk_eth_soc.o] Error 1 2025-09-05T17:10:34.5445926Z make[10]: *** [scripts/Makefile.build:480: drivers/net/ethernet/mediatek] Error 2 2025-09-05T17:10:34.5448501Z make[9]: *** [scripts/Makefile.build:480: drivers/net/ethernet] Error 2 2025-09-05T17:10:34.5450790Z make[8]: *** [scripts/Makefile.build:480: drivers/net] Error 2 2025-09-05T17:10:34.5453940Z make[7]: *** [scripts/Makefile.build:480: drivers] Error 2 2025-09-05T17:10:34.5457709Z make[6]: *** [/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.95/Makefile:1924: .] Error 2 2025-09-05T17:10:34.5460154Z make[5]: *** [Makefile:234: __sub-make] Error 2 2025-09-05T17:10:34.5460943Z make[5]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.95' 2025-09-05T17:10:34.5463444Z make[4]: *** [Makefile:18: /home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/build_dir/target-aarch64_cortex-a53_musl/linux-mediatek_filogic/linux-6.6.95/.modules] Error 2 2025-09-05T17:10:34.5465456Z make[4]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/target/linux/mediatek' 2025-09-05T17:10:34.5466010Z make[3]: *** [Makefile:12: compile] Error 2 2025-09-05T17:10:34.5466478Z make[3]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/target/linux' 2025-09-05T17:10:34.5469251Z time: target/linux/compile#735.51#69.39#800.24 2025-09-05T17:10:34.5476967Z ERROR: target/linux failed to build. 2025-09-05T17:10:34.5481222Z make[2]: *** [target/Makefile:32: target/linux/compile] Error 1 2025-09-05T17:10:34.5490708Z make[2]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6' 2025-09-05T17:10:34.5495893Z make[1]: *** [target/Makefile:25: /home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/staging_dir/target-aarch64_cortex-a53_musl/stamp/.target_compile] Error 2 2025-09-05T17:10:34.5504591Z make[1]: Leaving directory '/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6' 2025-09-05T17:10:34.5515193Z make: *** [/home/runner/work/immortalwrt-mt798x-6.6/immortalwrt-mt798x-6.6/include/toplevel.mk:233: world] Error 2 2025-09-05T17:10:34.5533512Z ##[error]Process completed with exit code 2.Beta Was this translation helpful? Give feedback.
All reactions