configs/beagleboneai_defconfig: bump Linux to 5.10.217 to fix gcc 13.x build
PATCH 1/2 configs/beagleboneai_defconfig: bump Linux to 5.10.217 to fix gcc 13.x build
The 5.10.79 kernel fails to build with GCC 13.x:
In file included from <command-line>:drivers/ata/libahci.c: In function ‘ahci_led_store’:././include/linux/compiler_types.h:315:45: error: call to ‘__compiletime_assert_321’ declared with attribute error: BUILD_BUG_ON failed: sizeof(_s) > sizeof(long)
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^././include/linux/compiler_types.h:296:25: note: in definition of macro ‘__compiletime_assert’
296 | prefix ## suffix(); \
| ^~~~~~
././include/linux/compiler_types.h:315:9: note: in expansion of macro ‘_compiletime_assert’
315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^~~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’
39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~~~~~~~~~~~~~~~
./include/linux/build_bug.h:50:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
| ^~~~~~~~~~~~~~~~
./include/linux/nospec.h:58:9: note: in expansion of macro ‘BUILD_BUG_ON’
58 | BUILD_BUG_ON(sizeof(_s) > sizeof(long)); \
| ^~~~~~~~~~~~
drivers/ata/libahci.c:1137:23: note: in expansion of macro ‘array_index_nospec’
1137 | pmp = array_index_nospec(pmp, EM_MAX_SLOTS);
| ^~~~~~~~~~~~~~~~~~This is fixed upstream by commit f07788079f515ca (ata: ahci: fix enum constants for gcc-13), which has been backported to 5.10.x as of 5.10.184, so bump to v5.10.217 to fix the build.
--- configs/beagleboneai_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
configs/beagleboneai_defconfig +1 -1
@@ -8,7 +8,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beagleboneai/genimage.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.79" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.217" BR2_LINUX_KERNEL_DEFCONFIG="omap2plus" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="am5729-beagleboneai"
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 configs/beagleboneai_defconfig: add hashes for Linux/headers/u-boot
And enable BR2_DOWNLOAD_FORCE_CHECK_HASHES. With this, we can now drop the defconfig from .checkpackageignore.
--- .checkpackageignore | 1 - board/beagleboneai/patches/linux-headers/linux-headers.hash | 1 + board/beagleboneai/patches/linux/linux.hash | 2 ++ board/beagleboneai/patches/uboot/uboot.hash | 2 ++ configs/beagleboneai_defconfig | 1 + 5 files changed, 6 insertions(+), 1 deletion(-) create mode 120000 board/beagleboneai/patches/linux-headers/linux-headers.hash create mode 100644 board/beagleboneai/patches/linux/linux.hash create mode 100644 board/beagleboneai/patches/uboot/uboot.hash
.checkpackageignore +0 -1
@@ -160,7 +160,6 @@ configs/bananapro_defconfig lib_defconfig.ForceCheckHash configs/beagleboardx15_defconfig lib_defconfig.ForceCheckHash configs/beaglebone_defconfig lib_defconfig.ForceCheckHash configs/beaglebone_qt5_defconfig lib_defconfig.ForceCheckHash -configs/beagleboneai_defconfig lib_defconfig.ForceCheckHash configs/beaglev_defconfig lib_defconfig.ForceCheckHash configs/beelink_gs1_defconfig lib_defconfig.ForceCheckHash configs/broadcom_northstar_defconfig lib_defconfig.ForceCheckHash
board/beagleboneai/patches/linux-headers/linux-headers.hash new file +1 -0
@@ -0,0 +1 @@ +../linux/linux.hash
board/beagleboneai/patches/linux/linux.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 c52bc1ffc396c11bce335c9ee5cd55fe4213cbc1fb4026ff62bb90c864c61f62 linux-5.10.217.tar.xz
board/beagleboneai/patches/uboot/uboot.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 0d438b1bb5cceb57a18ea2de4a0d51f7be5b05b98717df05938636e0aadfe11a u-boot-2021.04.tar.bz2
configs/beagleboneai_defconfig +1 -0
@@ -1,6 +1,7 @@ BR2_arm=y BR2_cortex_a15=y BR2_GLOBAL_PATCH_DIR="board/beagleboneai/patches" +BR2_DOWNLOAD_FORCE_CHECK_HASHES=y BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y BR2_SYSTEM_DHCP="eth0" BR2_ROOTFS_POST_BUILD_SCRIPT="board/beagleboneai/post-build.sh"
Signature · 6 lines
2.39.2 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
The 5.10.79 kernel fails to build with GCC 13.x:
Ups, forgot a:
Quoted 51 lines
In file included from <command-line>:
drivers/ata/libahci.c: In function ‘ahci_led_store’:././include/linux/compiler_types.h:315:45: error: call to ‘__compiletime_assert_321’ declared with attribute error:BUILD_BUG_ON
failed:sizeof(_s)> sizeof(long)
315 |_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^././include/linux/compiler_types.h:296:25: note: in definition of macro ‘__compiletime_assert’296 | prefix ## suffix(); \ | ^~~~~~ ././include/linux/compiler_types.h:315:9: note: in expansion of macro ‘_compiletime_assert’ 315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’ 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:50:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’ 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ ./include/linux/nospec.h:58:9: note: in expansion of macro ‘BUILD_BUG_ON’ 58 | BUILD_BUG_ON(sizeof(_s) > sizeof(long)); \ | ^~~~~~~~~~~~ drivers/ata/libahci.c:1137:23: note: in expansion of macro ‘array_index_nospec’ 1137 | pmp = array_index_nospec(pmp, EM_MAX_SLOTS); | ^~~~~~~~~~~~~~~~~~This is fixed upstream by commit
f07788079f515ca(ata: ahci: fix enum constants for gcc-13), which has been backported to 5.10.x as of 5.10.184, so bump to v5.10.217 to fix the build.Signed-off-by Peter Korsgaard <[email protected]>--- configs/beagleboneai_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)configs/beagleboneai_defconfig +1
-1@@ -8,7 +8,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beagleboneai/genimage.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.79" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.217" BR2_LINUX_KERNEL_DEFCONFIG="omap2plus" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="am5729-beagleboneai"Signature · 1 line
2.39.2
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Peter,
Le 21/05/2024 à 08:40, Peter Korsgaard a écrit :
Quoted 26 lines
The 5.10.79 kernel fails to build with GCC 13.x:
In file included from <command-line>:
drivers/ata/libahci.c: In function ‘ahci_led_store’:././include/linux/compiler_types.h:315:45: error: call to ‘__compiletime_assert_321’ declared with attribute error:BUILD_BUG_ONfailed:sizeof(_s)> sizeof(long)
315 |_compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__)
| ^././include/linux/compiler_types.h:296:25: note: in definition of macro ‘__compiletime_assert’296 | prefix ## suffix(); \ | ^~~~~~ ././include/linux/compiler_types.h:315:9: note: in expansion of macro ‘_compiletime_assert’ 315 | _compiletime_assert(condition, msg, __compiletime_assert_, __COUNTER__) | ^~~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:39:37: note: in expansion of macro ‘compiletime_assert’ 39 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg) | ^~~~~~~~~~~~~~~~~~ ./include/linux/build_bug.h:50:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’ 50 | BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition) | ^~~~~~~~~~~~~~~~ ./include/linux/nospec.h:58:9: note: in expansion of macro ‘BUILD_BUG_ON’ 58 | BUILD_BUG_ON(sizeof(_s) > sizeof(long)); \ | ^~~~~~~~~~~~ drivers/ata/libahci.c:1137:23: note: in expansion of macro ‘array_index_nospec’ 1137 | pmp = array_index_nospec(pmp, EM_MAX_SLOTS); | ^~~~~~~~~~~~~~~~~~
Quoted 3 lines
This is fixed upstream by commit
f07788079f515ca(ata: ahci: fix enum constants for gcc-13), which has been backported to 5.10.x as of 5.10.184, so bump to v5.10.217 to fix the build.
Both patch applied to master, thanks.
Best regards,
Romain
Quoted 11 lines
Signed-off-by Peter Korsgaard <[email protected]>--- configs/beagleboneai_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)configs/beagleboneai_defconfig +0
-0
configs/beagleboneai_defconfig BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" · line 14
Quoted 8 lines
configs/beagleboneai_defconfig +1
-1@@ -8,7 +8,7 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beagleboneai/genimage.cfg" BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.79" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.10.217" BR2_LINUX_KERNEL_DEFCONFIG="omap2plus" BR2_LINUX_KERNEL_DTS_SUPPORT=y BR2_LINUX_KERNEL_INTREE_DTS_NAME="am5729-beagleboneai"
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot