kernel
kernel copied to clipboard
Compilation failed `arch/arm64/kernel/vdso.o` with `rockchip_linux_defconfig` on `release-4.4`
I am using rockchip_linux_defconfig and the latest release-4.4
e.g: " This repository doesn't build. "
release-4.4
CC arch/arm64/kernel/vdso.o
arch/arm64/kernel/vdso.c: In function 'vdso_init':
arch/arm64/kernel/vdso.c:119:6: warning: 'memcmp' reading 4 bytes from a region of size 1 [-Wstringop-overflow=]
error, forbidden warning:vdso.c:119
119 | if (memcmp(&vdso_start, "\177ELF", 4)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[1]: *** [scripts/Makefile.build:278: arch/arm64/kernel/vdso.o] Error 1
make[1]: *** Deleting file 'arch/arm64/kernel/vdso.o'
make: *** [Makefile:1036: arch/arm64/kernel] Error 2
Commands used to compile (failed):
$ git checkout release-4.4
$ git pull . release-4.4
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- rockchip_linux_defconfig
$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- -j9
System compiled on:
$ gcc --version
gcc (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ g++ --version
g++ (GCC) 9.2.1 20190827 (Red Hat 9.2.1-1)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ cat /etc/redhat-release
Fedora release 31 (Thirty One)
$ uname -a
Linux doom2 5.3.12-300.fc31.x86_64 #1 SMP Thu Nov 21 22:52:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
cross-compiler is aarch64-linux-gnu-gcc
$ aarch64-linux-gnu-gcc --version
aarch64-linux-gnu-gcc (GCC) 9.2.1 20190827 (Red Hat Cross 9.2.1-1)
Copyright (C) 2019 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Provided by:
$ dnf info gcc-aarch64-linux-gnu
Installed Packages
Name : gcc-aarch64-linux-gnu
Version : 9.2.1
Release : 1.fc31
Architecture : x86_64
Size : 55 M
Source : cross-gcc-9.2.1-1.fc31.src.rpm
Exact same issue here, ended up using the develop-4.4 branch (at 82c9666) which seems to build fine - so much for having a "release" branch!.