From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: In-Reply-To: From: Jiayu Cao Date: Tue, 21 Dec 2021 17:18:17 +0800 Message-ID: Subject: Re: 'make bzImage' compile error at x86_64 platform: FAILED unresolved symbol udp_sock Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: xenomai@xenomai.org Alright, I compiled the kernel at Ubuntu 18.04 with GCC version 7.5.0 successfully. The solution is kind of silly but it does work. Just wondering that mistake is related to Ubuntu or GCC version... Jiayu Cao =E4=BA=8E2021=E5=B9=B412=E6=9C=8821= =E6=97=A5=E5=91=A8=E4=BA=8C 16:36=E5=86=99=E9=81=93=EF=BC=9A > I downloaded linux-dovetail source code from > https://source.denx.de/Xenomai/linux-dovetail, then I got the same > problem too. I compiled the kernel image on the ubuntu20 virtual machine. > So I guess it might be the issue of OS version or VM? > > Jiayu Cao =E4=BA=8E2021=E5=B9=B412=E6=9C=88= 21=E6=97=A5=E5=91=A8=E4=BA=8C 12:02=E5=86=99=E9=81=93=EF=BC=9A > >> Hi Xenomai development group: >> >> I am working on Xenomai 3.2.1 and Ubuntu 20.04 OS. >> I am trying to build a kernel image based on the linux-oem-5.10.0-1044.4= 6 >> kernel, which is a Ubuntu kernel and the mainline base version is *Linux >> 5.10.46*. The kernel's source code folder path >> is ~/linux-oem-5.10-5.10.0/. >> Then I extracted the Dovetail patch to linux-oem-5.10-5.10.0/ folder , >> which version is *patch-5.10.46-dovetail1.patch.bz2*. Then I typed the >> following commands: >> ``` >> cd linux-oem-5.10-5.10.0/ >> >> ~/Downloads/xenomai-v3.2.1/scripts/prepare-kernel.sh --arch=3Dx86_64 >> --dovetail=3Dpatch-5.10.46-dovetail1.patch >> >> make menuconfig >> # I did no extra configuration in the kernel configuration and just save >> a .config file. >> # Actually I've tried to compile the image multiple times with different >> configurations, but I got the same error each time. >> >> make bzImage >> # Got error here >> ``` >> >> And the error log is: >> ``` >> 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 udp_sock >> make: *** [Makefile:1205: vmlinux] Error 255 >> ``` >> The purely Linux kernel without Dovetail patch could be compiled >> successfully, thus I tried to compare the* .config* file under these two >> situations (success and failed) with 'meld' tool. >> However, I only watched some modifications about the XEN virtual machine= . >> I also googled it but cannot figure out any related solutions. >> >> Could you provide some solutions for me? Thanks for your help! >> >> Sincerely, >> Jiayu. >> >