Hello everyone
When I try to build an Jetson Nano Kernel in a Docker Ubuntu 22.04 Container. I get following compiler error while compiling the kernel modules:
and I check the kernel code which i use the script “./source_sync.sh -k -t jetson_36.3” get it . I find that something went wrong with the git checkout from source_sync.sh because of filename case sensitivity.
I have run that script 4 times and each time it makes a dated branch. That’s probably okay, but after I sync and make the kernel, dtbs, and modules, I see this:
R36.3/Linux_for_Tegra/source/kernel/kernel-jammy-src$ git status
Refresh index: 100% (74335/74335), done.
On branch wty_develop_v0.0
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: include/uapi/linux/netfilter/xt_CONNMARK.h
modified: include/uapi/linux/netfilter/xt_dscp.h
modified: include/uapi/linux/netfilter/xt_mark.h
modified: include/uapi/linux/netfilter/xt_rateest.h
modified: include/uapi/linux/netfilter/xt_tcpmss.h
modified: include/uapi/linux/netfilter_ipv4/ipt_ecn.h
modified: include/uapi/linux/netfilter_ipv4/ipt_ttl.h
modified: include/uapi/linux/netfilter_ipv6/ip6t_hl.h
modified: net/netfilter/xt_dscp.c
modified: net/netfilter/xt_hl.c
modified: net/netfilter/xt_rateest.c
modified: net/netfilter/xt_tcpmss.c
modified: tools/memory-model/litmus-tests/Z6.0+pooncelock+poonceLock+pombonce.litmus
It took 21.01 seconds to enumerate untracked files. 'status -uno'
may speed it up, but you have to be careful not to forget to add
new files yourself (see 'git help status').
no changes added to commit (use "git add" and/or "git commit -a")
and I cant checkout them ,then I use the ‘./nvbuild.sh -o out’ to build kernel ,something wrong show below
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[3]: *** [scripts/Makefile.build:295: net/netfilter/xt_mark.o] Error 1
same problems as below show.
Error while compiling kernel with Docker Ubuntu 18.04 Image
Anyone can solve the problem? Thanks.