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=-10.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,INCLUDES_CR_TRAILER, MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 68208C11F64 for ; Tue, 29 Jun 2021 01:05:15 +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 738D66128A for ; Tue, 29 Jun 2021 01:05:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 738D66128A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr 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 1ly2B4-0004kz-Kr; Mon, 28 Jun 2021 21:04:38 -0400 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1ly2Au-0004kh-4d for kernelnewbies@kernelnewbies.org; Mon, 28 Jun 2021 21:04:29 -0400 Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 29 Jun 2021 10:04:20 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.106] (HELO smtp001-imp.gov-dooray.com) ([10.162.225.106]) by send001-relay.gov-dooray.com with SMTP id 3baadfc360da7194; Tue, 29 Jun 2021 10:04:20 +0900 DKIM-Signature: a=rsa-sha256; b=sXyUYx0s1xhmvhBsYR95DMlkib8szwlnCAdVb0gzjXufeNROPG4F5e7B5u9LiKA8w+b5NMnGvJ CN1prNp4nI54D0gE4eFmJk6/Ot3dgHf6OnRRkqrcFu0dMQ2qqwq4kvd7h90dNgwbmczFEeb8pgfw JmR0hob8bKfhY9r4tYHi74KzDXxIR+lBl9s94YUmgnrwU4+quTIbhQaKHnG8PAkHKEme1szEZgU+ OJoRQCSP1L69jhiMsmqKn2BKIDabNpVihUzGD5PoMsVsWoZSs0qtx8enMckDHlmPp0uHf5b8r2HW NLeM2FSEYbR8U8hkFPOzp3Ieib1NtQN48TgJ8SiA==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=i1dm8f1zqf6cNoa1EJWtfOd9Yq0AGWCnEBE+8CEtb2U=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp001-imp.gov-dooray.com with SMTP id e6f286ab60da7193; Tue, 29 Jun 2021 10:04:20 +0900 From: To: Subject: kernel build error during ubuntu linux kernel build Date: Tue, 29 Jun 2021 10:04:19 +0900 Message-ID: <002901d76c82$b0fb3380$12f19a80$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AddsgmJ7aK41Q6bmR9iiLkp7cSvv5A== Content-Language: ko 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="===============7020343218206574843==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multipart message in MIME format. --===============7020343218206574843== Content-Type: multipart/alternative; boundary="----=_NextPart_000_002A_01D76CCE.20E4FE60" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_002A_01D76CCE.20E4FE60 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello, all 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 machine) I downloaded ubuntu source by "git clone git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git". and because I wanted to use a specific version, I did "git checkout Ubuntu-5.4.0-42.46" (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=arm64 CROSS_COMPILE=aarch64-none-elf- make defconfig` and `ARCH=arm64 CROSS_COMPILE=aarch64-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 no 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 = 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 = (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 = (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 integer of different size [-Wint-to-pointer-cast] 993 | void *__mptr = (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 ------=_NextPart_000_002A_01D76CCE.20E4FE60 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello, all

 

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 = machine)

I = downloaded ubuntu source by “git clone = git://kernel.ubuntu.com/ubuntu/ubuntu-focal.git”. and because I = wanted to use a specific version, I did “git checkout = Ubuntu-5.4.0-42.46” (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 <khalid.elmously@canonical.com>

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

    =

        UBUNTU: = Ubuntu-5.4.0-42.46

        =

        Signed-off-b= y: Khalid Elmously = <khalid.elmously@canonical.com>

 

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   &nbs= p;  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 no member named = 'socket_getpeersec_stream'

      477 = |     = &security_hook_heads.socket_getpeersec_stream)

<= p class=3DMsoNormal>          = |            =              = ^

      = 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;

          = |            =             &= nbsp;  ^

    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,

<= p class=3DMsoNormal>          = |            =              = ^

    ./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,

<= p class=3DMsoNormal>          = |            =              = ^

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

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

          = |            =             &= nbsp;   ^~~

    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 integer 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)

          = |            =             &= nbsp;           &n= bsp;   ^~~~~~~~~~~~

      . =

      . =

 

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

 

 

------=_NextPart_000_002A_01D76CCE.20E4FE60-- --===============7020343218206574843== 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 --===============7020343218206574843==--