Orin driver os kernel compile error: FAILED unresolved symbol udp6_sock

Hi,
I have successfully compiled the kernel without the config: CONFIG_DEBUG_FS=y. But when I enable it, the compiling became failed. The error information shows below:

MODPOST vmlinux.symvers
MODINFO modules.builtin.modinfo
GEN modules.builtin
LD .tmp_vmlinux.btf
BTF .btf.vmlinux.bin.o
LD .tmp_vmlinux.kallsyms1
KSYMS .tmp_vmlinux.kallsyms1.S
AS .tmp_vmlinux.kallsyms1.S
LD .tmp_vmlinux.kallsyms2
KSYMS .tmp_vmlinux.kallsyms2.S
AS .tmp_vmlinux.kallsyms2.S
LD vmlinux
BTFIDS vmlinux
FAILED unresolved symbol udp6_sock
make[2]: *** [/home/lotus/sda/ad4/lambda/lambda_image_src/6040_sdk/ipu04_soc_linux/drive-linux_src/kernel/drive-linux/kernel/source/oss_src/kernel/Makefile:1211: vmlinux] Error 255
make[2]: Leaving directory ‘/home/lotus/sda/ad4/lambda/lambda_image_src/6040_sdk/ipu04_soc_linux/drive-linux_src/kernel/drive-linux/kernel/source/oss_src/output’
make[1]: *** [Makefile:213: __sub-make] Error 2
make[1]: Leaving directory ‘/home/lotus/sda/ad4/lambda/lambda_image_src/6040_sdk/ipu04_soc_linux/drive-linux_src/kernel/drive-linux/kernel/source/oss_src/kernel’
make: *** [Makefile:212: kernel] Error 2
Build kernel FAILED!

The whole log and the config file is attached.

I have learned the post [Orin dev kit] kernel compile error:FAILED unresolved symbol udp6_sock, and browsed on google for a long time, but did not get any help.
If need anything more, please let me know.

Any help will be grateful.

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.6
DRIVE OS 6.0.5
[√] DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
[√] Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
[√] DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
[√] 1.9.2.10884
other

Host Machine Version
[√] native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Compiler Version
nvidia_6.0.3.0/toolchains/aarch64–glibc–stable-2020.08-1/bin/aarch64-linux-gcc
gcc version 9.3.0 (Buildroot 2020.08)

compile_error.log (9.6 MB)

.updated.defconfig (32.4 KB)

Dear @haomiao.wang,
May I know if you are using DRIVE AGX Orin Devkit or platform based on DRIVE Orin?

I use platform. But the error is occur at cross compiling.

Dear @haomiao.wang,
Are you using the DRIVE OS 6.0.4 installed using sdkmanager with Devzone credentials? The logs looks like a sepearte release. Please confirm it.
FYI, This forum is intended to support issues related DRIVE AGX Orin Devkit with devzone releases.

Yeah, We have a Devzone credentials. This develop kit is be used on our cars.

@SivaRamaKrishnaNV

@SivaRamaKrishnaNV Hello, I find an interesting thing. The config CONFIG_DEBUG_INFO_BTF and CONFIG_DEBUG_FS can only enable either one. But it will be compiled failed when you enable that two meanwhile.

Dear @haomiao.wang,
I see below command in compile_error.log
lotus@ubuntu:~/sda/ad4/lambda/lambda_image_src/6040_sdk/ipu04_soc_linux$ ./zfuse_build.sh host -j40 LOTUS_SOC_V6040_ADMC_V5.4.1A_PP-J1-EU-CS_20230519 LOTUS_sign

This script is not part of DRIVE OS 6.0.4 Devzone release.

The kernel compilation instructions are at Compiling the Kernel (NVIDIA DRIVE OS Linux) | NVIDIA Docs . Please see if it helps.

@SivaRamaKrishnaNV Yeah, this script is used for generating our filesystem image. But it doesn’t matter, it will execute make kernel image. The important things is the .updated.defconfig. In the compile_error.log, you just only concern the line which I post on:

FAILED unresolved symbol udp6_sock

Just as I mentioned, The compile can be succeed when only enable either CONFIG_DEBUG_INFO_BTF or CONFIG_DEBUG_FS.
Can you take a try please?

Dear @haomiao.wang,
I am just trying to understand if you are trying to perform the same steps provided in Compiling the Kernel (NVIDIA DRIVE OS Linux) | NVIDIA Docs or you are trying some thing else.

Also, May I know If it is P3710 or something else (like IPU04 ECU)?

Dear @SivaRamaKrishnaNV,
Yeah, I have tried the Docs you mentioned step by step, but it also shows a similar result:

FAILED unresolved symbol netlink_sock

The whole log is attached.
6040_compile_error.log (467.1 KB)

By the way, It seems the bug of DRIVE OS 6.0.4. It is ok with DRIVE OS 6.0.6. You can have a try with the config CONFIG_DEBUG_INFO_BTF=y and CONFIG_DEBUG_FS=y meanwhile using DRIVE OS 6.0.4.

Yes, our ECU is IPU04.

Dear @haomiao.wang,
So, the issue is resolved after upgrading to DRIVE OS 6.0.6.

@SivaRamaKrishnaNV , Yeah, thanks for your time.