From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.4 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,MIME_HTML_MOSTLY,SPF_HELO_NONE, SPF_PASS,WEIRD_PORT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D4E28C11F66 for ; Tue, 29 Jun 2021 06:33:58 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 10D8761D03 for ; Tue, 29 Jun 2021 06:33:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 10D8761D03 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1ly7JR-0005S9-72; Tue, 29 Jun 2021 02:33:37 -0400 Received: from mail-yb1-xb29.google.com ([2607:f8b0:4864:20::b29]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1ly7JM-0005S3-Cy for kernelnewbies@kernelnewbies.org; Tue, 29 Jun 2021 02:33:32 -0400 Received: by mail-yb1-xb29.google.com with SMTP id r135so409013ybc.0 for ; Mon, 28 Jun 2021 23:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=0Vkgf3blaRPX42SZi/RS0shYogr+GhZNLxK3WaR52u8=; b=H+kLAfMzm/Hdtb21oUXkcRLsJkpMV77oa72igvKt57T77HoL0vToul9Bqv1y43bUya /lqx3eRSWIr3WJF7KmwlAX24VE/NyvFgGqsczmTnZi9kVvr+IG/Vqk9oguOBMerYI0qA d0Ar/usQ2ILcfbbjoJFRexulOAG+BKlMkxdqSigBLH28Eq/Au8nV0PheHj/OE7sDyNBE H2quHnGMro6Ea4QdTPi3Qo/oaeF5ybsQfaA854w+dwfv8/iUrhKVmvsJ2shZx0mO8jJW xKxdrwSZeFVKHqxz6V8HwhGmh6GSzhkou64BQP6YGbl09S/jPF0KGn8EI8XoaWgenmq+ rudg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0Vkgf3blaRPX42SZi/RS0shYogr+GhZNLxK3WaR52u8=; b=P7LOdIm/FSKvJPhGZz0UVClpTcIY0PYw2+By/Ahao4RS898dmO86edMhQlQrbHG+sF PP0QylljwwC0EmqgOJoJMhLaIfr4USUQ8+Ir32sR8r3NFDaDDW/zahQPzTvZzv0Wmmx9 Nr/c/3Pl+lVYivA2TOsm1lpiLGZbat43o0yxEY2aojfDGPUKcCpP0wUBPKwp6vLWDPEZ GsXSjvryZKuYXPukeFFOxJ9ELdBBgv+u6lQtczlmte9Dz16Y724oH0S5Z5mOymwjwfSF rYwSopszInHS+xJ/dAl5MMfPOZ32vdylFbiKUuqsSHZpOvuglfdwJ79aNGlbJHbfP412 LIQA== X-Gm-Message-State: AOAM532xzEl1tDDKeympR2va0dPnYm/+b7/LVsG2n3gFCyVD11A1GobY wwe2uZazO2sNcmlXB2c7ikkiDwy12Onv4fKPUvY= X-Google-Smtp-Source: ABdhPJzb3Ptpky0j9tuGsJCMTb1BkAOfiRZVIeXaKMXbv56Mw6FS3OysWcTaUtGS7EouxUCRRQuzuHfbfsuPRtQhpo8= X-Received: by 2002:a25:ca89:: with SMTP id a131mr11317362ybg.58.1624948411241; Mon, 28 Jun 2021 23:33:31 -0700 (PDT) MIME-Version: 1.0 References: <002901d76c82$b0fb3380$12f19a80$@etri.re.kr> <005e01d76c9c$42091b30$c61b5190$@etri.re.kr> In-Reply-To: <005e01d76c9c$42091b30$c61b5190$@etri.re.kr> From: Alexander Kapshuk Date: Tue, 29 Jun 2021 09:32:55 +0300 Message-ID: Subject: Re: kernel build error during ubuntu linux kernel build To: ckim@etri.re.kr Cc: kernelnewbies X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1493713429390301812==" Errors-To: kernelnewbies-bounces@kernelnewbies.org --===============1493713429390301812== Content-Type: multipart/alternative; boundary="000000000000d49a1905c5e1c8a1" --000000000000d49a1905c5e1c8a1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Jun 29, 2021 at 7:07 AM wrote: > I found from https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel, the > correct method to build ubuntu is (for ARCH=3Darm64 case) > > > > - LANG=3DC fakeroot debian/rules ARCH=3Darm64 clean > - # quicker build: > - LANG=3DC fakeroot debian/rules ARCH=3Darm64 binary-headers > binary-generic binary-perarch > - # if you need linux-tools or lowlatency kernel, run instead: > - LANG=3DC fakeroot debian/rules ARCH=3Darm64 binary > > > > But when I tried it, it went far longer but eventually it failed with > error. > > > > =E2=80=A6. > > Creating symlink > /home/ckim/prj1/QEMU/qemu_test/test_ubuntu-20.04-build/focal/ubuntu-focal= /debian/build/builddkms/build/zfs/0.8.3/source > -> > > > /home/ckim/prj1/QEMU/qemu_test/test_ubuntu-20.04-build/focal/ubuntu-focal= /debian/build/builddkms/source/zfs-0.8.3 > > > > DKMS: add completed. > > > > Running the pre_build script: > > checking for gawk... gawk > > checking metadata... META file > > checking build system type... x86_64-pc-linux-gnu > > checking host system type... x86_64-pc-linux-gnu > > checking target system type... x86_64-pc-linux-gnu > > checking whether to enable maintainer-specific portions of Makefiles... n= o > > checking whether make supports nested variables... yes > > checking for a BSD-compatible install... /bin/install -c > > checking whether build environment is sane... yes > > checking for a thread-safe mkdir -p... /bin/mkdir -p > > =E2=80=A6.. > > checking kernel source version... 5.4.0-42-generic > > checking kernel file name for module symbols... Module.symvers > > checking whether modules can be built... no > > configure: error: > > *** Unable to build an empty module. > > > > > > Building module: > > cleaning build area...(bad exit status: 2) > > make -j28 KERNELRELEASE=3D5.4.0-42-generic...(bad exit status: 2) > > ERROR (dkms apport): binary package for zfs: 0.8.3 not found > Based on the error message above you may not have the zfs-dkms package installed. > Error! Bad return status for module build on kernel: 5.4.0-42-generic > (x86_64) > > Consult > /home/ckim/prj1/QEMU/qemu_test/test_ubuntu-20.04-build/focal/ubuntu-focal= /debian/build/builddkms/build/zfs/0.8.3/build/make.log > for more information. > > DKMS make.log for zfs-0.8.3 for kernel 5.4.0-42-generic (x86_64) > > Tue Jun 29 11:43:02 KST 2021 > > make[1]: Entering directory '<>/build/zfs/0.8.3/build' > > make[1]: *** No targets specified and no makefile found. Stop. > > make[1]: Leaving directory '<>/build/zfs/0.8.3/build' > > make: *** [debian/rules.d/2-binary-arch.mk:223: install-generic] Error 1 > > > > And according to the guide, I=E2=80=99m supposed to see in ../ directory = two > linux headers .deb files and a linux-image .deb file but I see only > linux-headers-5.4.0-42_5.4.0-42.46_all.deb > > Can anyone give me an advice? Any suggestion will be appreciated. > > Thank you! > > Chan Kim > > > > *From:* ckim@etri.re.kr > *Sent:* Tuesday, June 29, 2021 10:04 AM > *To:* kernelnewbies@kernelnewbies.org > *Subject:* kernel build error during ubuntu linux kernel build > > > > Hello, all > > > > I have a strange problem in building the linux kernel from ubuntu. (I wan= t > to replace the kernel in ubuntu to debug install failure on qemu virtual > machine) > > I downloaded ubuntu source by =E2=80=9Cgit clone git:// > kernel.ubuntu.com/ubuntu/ubuntu-focal.git=E2=80=9D. and because I wanted = to use a > specific version, I did =E2=80=9Cgit checkout Ubuntu-5.4.0-42.46=E2=80=9D= (this version > is the one used in a ubuntu installation .iso. > > And you can see related askubuntu question here : > https://askubuntu.com/questions/1347390/what-ubuntu-source-version-should= -i-use-to-add-some-debug-prints-for-ubuntu-bo > ) > > > > After git-checkout, the `git log` shows this result : > > > > commit 98c4545e2d65ed35c31056f72c4da20f6b5ea0d0 (HEAD, tag: > Ubuntu-5.4.0-42.46) > > Author: Khalid Elmously > > Date: Thu Jul 9 19:50:26 2020 -0400 > > > > UBUNTU: Ubuntu-5.4.0-42.46 > > > > Signed-off-by: Khalid Elmously > > > > To build the kernel, I did `ARCH=3Darm64 CROSS_COMPILE=3Daarch64-none-elf= - > make defconfig` and `ARCH=3Darm64 CROSS_COMPILE=3Daarch64-none-elf- make = -j24 > Image`. But this gives me a compile error below. What can be wrong? > > > > . > > . > > CC mm/interval_tree.o > > CC drivers/base/regmap/regcache.o > > CC kernel/time/posix-cpu-timers.o > > CC mm/list_lru.o > > CC block/blk-mq.o > > AS arch/arm64/lib/memchr.o > > CC fs/ext4/migrate.o > > security/security.c: In function 'security_add_hooks': > > security/security.c:477:25: error: 'struct security_hook_heads' has n= o > member named 'socket_getpeersec_stream' > > 477 | &security_hook_heads.socket_getpeersec_stream) > > | ^ > > CC kernel/time/posix-clock.o > > AS arch/arm64/lib/memcmp.o > > security/security.c: In function 'security_setprocattr': > > CC arch/arm64/kvm/../../../virt/kvm/arm/vgic/vgic-v2.o > > security/security.c:2058:27: error: 'union security_list_options' has > no member named 'socket_getpeersec_stream' > > 2058 | socket_getpeersec_stream.socket_getpeersec_stream =3D NULL; > > | ^ > > In file included from ./include/linux/timer.h:5, > > from ./include/linux/workqueue.h:9, > > from ./include/linux/bpf.h:9, > > from security/security.c:13: > > security/security.c:2060:25: error: 'struct security_hook_heads' has > no member named 'socket_getpeersec_stream' > > 2060 | &security_hook_heads.socket_getpeersec_stream, > > | ^ > > ./include/linux/list.h:857:12: note: in definition of macro > 'hlist_entry_safe' > > 857 | ({ typeof(ptr) ____ptr =3D (ptr); \ > > | ^~~ > > security/security.c:2059:3: note: in expansion of macro > 'hlist_for_each_entry' > > 2059 | hlist_for_each_entry(hp, > > | ^~~~~~~~~~~~~~~~~~~~ > > security/security.c:2060:25: error: 'struct security_hook_heads' has > no member named 'socket_getpeersec_stream' > > 2060 | &security_hook_heads.socket_getpeersec_stream, > > | ^ > > ./include/linux/list.h:857:28: note: in definition of macro > 'hlist_entry_safe' > > 857 | ({ typeof(ptr) ____ptr =3D (ptr); \ > > | ^~~ > > security/security.c:2059:3: note: in expansion of macro > 'hlist_for_each_entry' > > 2059 | hlist_for_each_entry(hp, > > | ^~~~~~~~~~~~~~~~~~~~ > > In file included from ./include/linux/list.h:9, > > from ./include/linux/timer.h:5, > > from ./include/linux/workqueue.h:9, > > from ./include/linux/bpf.h:9, > > from security/security.c:13: > > ./include/linux/kernel.h:993:17: warning: cast to pointer from intege= r > of different size [-Wint-to-pointer-cast] > > 993 | void *__mptr =3D (void *)(ptr); \ > > | ^ > > ./include/linux/list.h:847:40: note: in expansion of macro > 'container_of' > > 847 | #define hlist_entry(ptr, type, member) > container_of(ptr,type,member) > > | ^~~~~~~~~~~~ > > . > > . > > > > BTW, when I do the same with linux-5.4.21 vanila source, it compiles ok. > > Can anyone give me an advice? Could this Ubuntu-5.4.0-42.46 version have = a > bug and maybe I need a patch? > > Thank you! > > Chan Kim > > > > > _______________________________________________ > Kernelnewbies mailing list > Kernelnewbies@kernelnewbies.org > https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies > --000000000000d49a1905c5e1c8a1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Tue, Jun 29, 2021 at 7:07 AM <ckim@etri.re.kr> wrote:

I found from ht= tps://wiki.ubuntu.com/Kernel/BuildYourOwnKernel, the correct method to = build ubuntu is (for ARCH=3Darm64 case)

=C2=A0

  • LANG=3DC fa= keroot debian/rules ARCH=3Darm64 clean
  • # quicker build:
  • LANG=3DC fakeroot debian/rules ARCH=3Darm64 binary-header= s binary-generic binary-perarch
  • # if you need linux-tools or lowlatency kernel, run instead:=
  • LANG=3DC fakeroot debi= an/rules ARCH=3Darm64 binary

=C2=A0

But when I tried it, it went far longer but eve= ntually it failed with error.

=C2=A0

=E2=80=A6.<= /span>

Creating symlink /home/ckim/prj1/QEMU/qemu_test/test_ubuntu-20.04-bui= ld/focal/ubuntu-focal/debian/build/builddkms/build/zfs/0.8.3/source ->

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 /home/ckim/prj1/QEMU/qemu_test/t= est_ubuntu-20.04-build/focal/ubuntu-focal/debian/build/builddkms/source/zfs= -0.8.3

=C2=A0

DKMS: add completed.<= u>

<= span lang=3D"EN-US">=C2=A0

Running the pre_build script= :

checking for gawk... gawk

checkin= g metadata... META file

checking build system type... x= 86_64-pc-linux-gnu

checking host system type... x86_64-= pc-linux-gnu

checking target system type... x86_64-pc-l= inux-gnu

checking whether to enable maintainer-specific= portions of Makefiles... no

checking whether make supp= orts nested variables... yes

checking for a BSD-compati= ble install... /bin/install -c

checking whether build e= nvironment is sane... yes

checking for a thread-safe mk= dir -p... /bin/mkdir -p

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=E2=80=A6= ..

checking kernel source version... 5.4.0-42-generic

checking kernel file name for module symbols... Module.s= ymvers

checking whether modules can be built... no

configure: error:

=C2=A0=C2=A0 *** Una= ble to build an empty module.

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0

=C2=A0

Building module:

cleaning bui= ld area...(bad exit status: 2)

make -j28 KERNELRELEASE= =3D5.4.0-42-generic...(bad exit status: 2)

ERROR (dkms = apport): binary package for zfs: 0.8.3 not found

Based on the error message above you may not have the zfs-dkm= s package installed.

=C2=A0
=

=

Error! Bad return status for module build on kernel: 5.4.0-42= -generic (x86_64)

Consult /home/ckim/prj1/QEMU/qemu_tes= t/test_ubuntu-20.04-build/focal/ubuntu-focal/debian/build/builddkms/build/z= fs/0.8.3/build/make.log for more information.

DKMS make= .log for zfs-0.8.3 for kernel 5.4.0-42-generic (x86_64)

Tue Jun 29 11:43:02 KST 2021

make[1]: Entering directo= ry '<<DKMSDIR>>/build/zfs/0.8.3/build'

make[1]: *** No targets specified and no makefile found.=C2=A0 Stop.=

make[1]: Leaving directory '<<DKMSDIR>>/b= uild/zfs/0.8.3/build'

make: *** [debian/rules.d/2-binary-arch.mk:223= : install-generic] Error 1

=C2=A0

And according to the guide, I=E2=80=99m supposed to see in ../ directory two linux headers .deb fi= les and a linux-image .deb file but I see only linux-headers-5.4.0-42_5.4.0= -42.46_all.deb

Can anyone give me an advice? Any suggestion will be appreciated.

Thank yo= u!

Chan= Kim

=C2=A0

<= div>

From:<= /b> ckim@etri.re.kr<= /a> <ckim@etri.re.k= r>
Sent: Tuesday, June 29, 2021 10:04 AM
To: kernelne= wbies@kernelnewbies.org
Subject: kernel build error during ub= untu linux kernel build

<= /u>=C2=A0

Hell= o, all

= =C2=A0

= I have a strange problem in building the linux kernel from ubuntu. (I want = to replace the kernel in ubuntu to debug install failure on qemu virtual ma= chine)

= I downloaded ubuntu source by =E2=80=9Cgit clon= e git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git=E2=80=9D. and because I wanted to use a specific version, I did = =E2=80=9Cgit checkout Ubuntu-5.4.0-42.46= =E2=80=9D (this version is the one used in a ubuntu in= stallation .iso.=C2=A0

And you can see related askubuntu question here : https://= askubuntu.com/questions/1347390/what-ubuntu-source-version-should-i-use-to-= add-some-debug-prints-for-ubuntu-bo )

=C2=A0

After git-checkout, the `git log` shows= this result :=C2=A0

=C2=A0

=C2=A0=C2=A0=C2=A0 commit 98c4545e2= d65ed35c31056f72c4da20f6b5ea0d0 (HEAD, tag: Ubuntu-5.4.0-42.46)

=C2=A0=C2=A0=C2=A0 Author: Khalid Elmously <khalid.elmously@canonical.com= >

=C2=A0=C2=A0=C2=A0 Date:=C2=A0=C2=A0 Thu Jul 9 19:50:26 2020 -0400=

=C2=A0=C2=A0= =C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0UBUNTU: Ubuntu-5.4.0-42.46=

=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>

=C2= =A0

To build t= he kernel, I did `ARCH=3Darm64 CROSS_COMPILE=3Daarch64-none-elf- make defco= nfig` and `ARCH=3Darm64 CROSS_COMPILE=3Daarch64-none-elf- make -j24 Image`.= =C2=A0 But this gives me a compile error below.=C2=A0 What can be wrong?=C2= =A0

=C2=A0

= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 .

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0. =

=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 mm/interval_tree.o=

=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 drivers/base/regmap/= regcache.o

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 kernel/= time/posix-cpu-timers.o

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 mm/list_lru.o

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 block/blk-mq.o

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 AS=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= arch/arm64/lib/memchr.o

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 fs/ext4/migrate.o

=C2=A0=C2=A0=C2=A0 security/security.c: In function '= security_add_hooks':

=C2=A0=C2=A0=C2=A0 security/security.c:477:25: error: = 9;struct security_hook_heads' has no member named 'socket_getpeerse= c_stream'

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 477 |=C2=A0=C2=A0=C2=A0=C2=A0 &se= curity_hook_heads.socket_getpeersec_stream)

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ^

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = kernel/time/posix-clock.o

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 AS=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 arch/arm64/lib/memcmp.o

=C2=A0=C2=A0=C2=A0 security/security.c: In funct= ion 'security_setprocattr':

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 CC=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 arch/arm64/kvm/../../../virt/kvm/arm/vgic/vgic-v2.o

=C2=A0=C2= =A0=C2=A0 security/security.c:2058:27: error: 'union security_list_opti= ons' has no member named 'socket_getpeersec_stream'

=C2=A0=C2=A0=C2=A0= =C2=A0 2058 |=C2=A0=C2=A0 socket_getpeersec_stream.socket_getpeersec_stream= =3D NULL;

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^=

=C2=A0=C2=A0= =C2=A0 In file included from ./include/linux/timer.h:5,

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 from ./include/linux/workqueue.h:9,

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 from ./include/linux/bpf.h:9,

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 from security/security.c:13:

=C2=A0=C2=A0=C2=A0 security/security.= c:2060:25: error: 'struct security_hook_heads' has no member named = 'socket_getpeersec_stream'

=C2=A0=C2=A0=C2=A0=C2=A0 2060 |=C2=A0=C2=A0=C2= =A0=C2=A0 &security_hook_heads.socket_getpeersec_stream,<= /span>

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^

=C2=A0=C2=A0=C2=A0 ./include/linux/list.h:857:12:= note: in definition of macro 'hlist_entry_safe'

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0857 |=C2=A0 ({ typeof(ptr) ____ptr =3D (ptr); \<= /p>

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 ^~~

=C2=A0=C2=A0=C2=A0 security/security.c:2059:3: note: in = expansion of macro 'hlist_for_each_entry'

<= p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0=C2=A0 2059 |= =C2=A0=C2=A0 hlist_for_each_entry(hp,

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 |=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~~~~~

=C2=A0=C2=A0=C2=A0 security/securi= ty.c:2060:25: error: 'struct security_hook_heads' has no member nam= ed 'socket_getpeersec_stream'

=C2=A0=C2=A0=C2=A0=C2=A0 2060 |=C2=A0=C2=A0= =C2=A0=C2=A0 &security_hook_heads.socket_getpeersec_stream,

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^

=C2=A0=C2=A0=C2=A0 ./include/linux/list.h:857:= 28: note: in definition of macro 'hlist_entry_safe'

=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 857 |=C2=A0 ({ typeof(ptr) ____ptr =3D (ptr); \

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~

<= p class=3D"MsoNormal">=C2=A0=C2=A0=C2=A0 security/secu= rity.c:2059:3: note: in expansion of macro 'hlist_for_each_entry'

=C2=A0= =C2=A0=C2=A0=C2=A0 2059 |=C2=A0=C2=A0 hlist_for_each_entry(hp,

=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0 ^~~~~~~~~~~~~~~~~~~~<= /u>

=C2=A0=C2= =A0=C2=A0 In file included from ./include/linux/list.h:9,

=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 from ./include/linux/timer.h:5,<= /p>

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 from ./include/linux/workqueue.h:9,=

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 from ./include/linux/bpf.h:9,

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 from security/security.c:13:

=C2=A0=C2=A0=C2=A0 ./include/linux/kern= el.h:993:17: warning: cast to pointer from integer of different size [-Wint= -to-pointer-cast]

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 993 |=C2=A0 void *__mptr =3D (voi= d *)(ptr);=C2=A0=C2=A0=C2=A0=C2=A0 \

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^

=C2=A0=C2=A0=C2=A0 ./include/linux/list.h:847:= 40: note: in expansion of macro 'container_of'=

=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 847 | #define hlist_entry(ptr, type, member) container_of(ptr,type,memb= er)

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^~~~~~~~~~~= ~

=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 .

=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0.

=C2=A0

BTW, when I do the = same with linux-5.4.21 vanila source, it compiles ok. =

Can anyone give me an advic= e? Could this Ubuntu-5.4.0-42.46 version have a bug and maybe I need a patc= h?

Than= k you!

= Chan Kim

=C2=A0

=C2=A0

________________________= _______________________
Kernelnewbies mailing list
Kernel= newbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailma= n/listinfo/kernelnewbies
--000000000000d49a1905c5e1c8a1-- --===============1493713429390301812== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============1493713429390301812==--