Which Khadas SBC do you use?
Vim3
Which system do you use? Android, Ubuntu, OOWOW or others?
Fenix running on docker hosted on an intel Mac
Which version of system do you use? Khadas official images, self built images, or others?
Fenix 1.4.2
Please describe your issue below:
I’ve encountered a problem when trying to build the image myself.
I’m using the following build config for Fenix
***********************PARAMETERS************************
Fenix Version: 1.4.2
Khadas Board: VIM3
Uboot Version: mainline
Uboot Configuration: khadas-vim3_defconfig
Uboot Branch: master
Linux Version: mainline
Linux Configuration: kvims_defconfig
Linux DTB: arch/arm64/boot/dts/amlogic/meson-g12b-a311d-khadas-vim3.dtb
Linux Branch: khadas-linux-6.1.y
Distribution: Ubuntu
Distribution Release: jammy
Distribution Type: gnome
Distribution Arch: arm64
Install Type: SD-USB
Final Image: vim3-ubuntu-22.04-gnome-linux-6.1-fenix-1.4.2-230220-develop.img
*********************************************************
The first weird thing is at some point down the build process, it detected some changes in the khadas/linux repo and required me to confirm
Info: Linux: Already on branch 'khadas-linux-6.1.y'
Warning:: Repo[/home/khadas/fenix/build/linux] You made some modifications to file(s):
[
include/uapi/linux/netfilter/xt_connmark.h
include/uapi/linux/netfilter/xt_dscp.h
include/uapi/linux/netfilter/xt_mark.h
include/uapi/linux/netfilter/xt_rateest.h
include/uapi/linux/netfilter/xt_tcpmss.h
include/uapi/linux/netfilter_ipv4/ipt_ecn.h
include/uapi/linux/netfilter_ipv4/ipt_ttl.h
include/uapi/linux/netfilter_ipv6/ip6t_hl.h
net/netfilter/xt_dscp.c
net/netfilter/xt_hl.c
net/netfilter/xt_rateest.c
net/netfilter/xt_tcpmss.c
tools/memory-model/litmus-tests/Z6.0+pooncelock+pooncelock+pombonce.litmus
]
Info: Try to update linux:khadas-linux-6.1.y
From https://github.com/khadas/linux
* branch khadas-linux-6.1.y -> FETCH_HEAD
Already up to date.
Press <Ctrl-C> to abort compilation, <Enter> to ignore and continue
I didn’t change anything to any repo, I was just following the Fenix readme with a docker build environment.
Then the build failed
net/netfilter/xt_mark.c: In function ‘mark_tg’:
net/netfilter/xt_mark.c:30:39: error: invalid use of undefined type ‘const struct xt_mark_tginfo2’
30 | skb->mark = (skb->mark & ~info->mask) ^ info->mark;
| ^~
net/netfilter/xt_mark.c:30:53: error: invalid use of undefined type ‘const struct xt_mark_tginfo2’
30 | skb->mark = (skb->mark & ~info->mask) ^ info->mark;
| ^~
net/netfilter/xt_mark.c: In function ‘mark_mt’:
net/netfilter/xt_mark.c:39:34: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
39 | return ((skb->mark & info->mask) == info->mark) ^ info->invert;
| ^~
net/netfilter/xt_mark.c:39:49: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
39 | return ((skb->mark & info->mask) == info->mark) ^ info->invert;
| ^~
net/netfilter/xt_mark.c:39:63: error: invalid use of undefined type ‘const struct xt_mark_mtinfo1’
39 | return ((skb->mark & info->mask) == info->mark) ^ info->invert;
| ^~
net/netfilter/xt_mark.c: At top level:
net/netfilter/xt_mark.c:47:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_mark_tginfo2’
47 | .targetsize = sizeof(struct xt_mark_tginfo2),
| ^~~~~~
net/netfilter/xt_mark.c:56:34: error: invalid application of ‘sizeof’ to incomplete type ‘struct xt_mark_mtinfo1’
56 | .matchsize = sizeof(struct xt_mark_mtinfo1),
| ^~~~~~
make[4]: *** [scripts/Makefile.build:250: net/netfilter/xt_mark.o] Error 1
make[3]: *** [scripts/Makefile.build:500: net/netfilter] Error 2
make[2]: *** [scripts/Makefile.build:500: net] Error 2
make[2]: *** Waiting for unfinished jobs....
I did try git reset those files but the build still fails
make[4]: *** No rule to make target 'net/netfilter/xt_dscp.o', needed by 'net/netfilter/'. Stop.
make[4]: *** Waiting for unfinished jobs....
Any thoughts?