From: <ckim@etri.re.kr>
To: <kernelnewbies@kernelnewbies.org>
Subject: kernel build error during ubuntu linux kernel build
Date: Tue, 29 Jun 2021 10:04:19 +0900 [thread overview]
Message-ID: <002901d76c82$b0fb3380$12f19a80$@etri.re.kr> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 4420 bytes --]
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-by: Khalid Elmously <khalid.elmously@canonical.com>
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
[-- Attachment #1.2: Type: text/html, Size: 14327 bytes --]
[-- Attachment #2: Type: text/plain, Size: 170 bytes --]
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
next reply other threads:[~2021-06-29 1:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-29 1:04 ckim [this message]
2021-06-29 4:07 ` kernel build error during ubuntu linux kernel build ckim
2021-06-29 6:32 ` Alexander Kapshuk
2021-07-01 1:03 ` ckim
2021-07-01 8:02 ` Alexander Kapshuk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='002901d76c82$b0fb3380$12f19a80$@etri.re.kr' \
--to=ckim@etri.re.kr \
--cc=kernelnewbies@kernelnewbies.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox