Dear contributor, our automatic CI has detected problems related to your patch(es). Please find some details below. If you have any questions, please follow up on linaro-toolchain@lists.linaro.org mailing list, Libera's #linaro-tcwg channel, or ping your favourite Linaro toolchain developer on the usual project channel.
We appreciate that it might be difficult to find the necessary logs or reproduce the issue locally. If you can't get what you need from our CI within minutes, let us know and we will be happy to help.
We track this report status in https://linaro.atlassian.net/browse/GNU-1324 , please let us know if you are looking at the problem and/or when you have a fix.
In CI config tcwg_kernel/gnu-master-aarch64-lts-defconfig after:
| commit gcc-15-3256-g1c4b9826bd0 | Author: Filip Kastl fkastl@suse.cz | Date: Wed Aug 28 15:47:44 2024 +0200 | | gimple ssa: switchconv: Use __builtin_popcount and support more types in exp transform [PR116355] | | The gen_pow2p function generates (a & -a) == a as a fallback for | POPCOUNT (a) == 1. Not only is the bitmagic not equivalent to | POPCOUNT (a) == 1 but it also introduces UB (consider signed | a = INT_MIN). | | ... 43 lines of the commit log omitted.
Results changed to # reset_artifacts: -10 # build_abe binutils: -9 # build_abe stage1: -5 # build_abe qemu: -2 # linux_n_obj: 9328
From # reset_artifacts: -10 # build_abe binutils: -9 # build_abe stage1: -5 # build_abe qemu: -2 # linux_n_obj: 9330 # linux build successful: all # linux boot successful: boot
The configuration of this build is: CI config tcwg_kernel/gnu-master-aarch64-lts-defconfig
-----------------8<--------------------------8<--------------------------8<-------------------------- The information below can be used to reproduce a debug environment:
Current build : https://ci.linaro.org/job/tcwg_kernel--gnu-master-aarch64-lts-defconfig-buil... Reference build : https://ci.linaro.org/job/tcwg_kernel--gnu-master-aarch64-lts-defconfig-buil...
Reproduce last good and first bad builds: https://git-us.linaro.org/toolchain/ci/interesting-commits.git/plain/gcc/sha...
Full commit : https://github.com/gcc-mirror/gcc/commit/1c4b9826bd0d5ac471543c68f097d80b196...
List of configurations that regressed due to this commit : * tcwg_kernel ** gnu-master-aarch64-lts-defconfig *** Failure *** https://git-us.linaro.org/toolchain/ci/interesting-commits.git/plain/gcc/sha... *** https://ci.linaro.org/job/tcwg_kernel--gnu-master-aarch64-lts-defconfig-buil...
Hi Filip,
FYI, your patch below causes linux kernel build failure on arm64. Could you take a look, please?
=== 00:02:13 + make CC=/home/tcwg-buildslave/workspace/tcwg_kernel_0/bin/aarch64-cc SUBLEVEL=0 EXTRAVERSION=-bisect ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- HOSTCC=gcc -j32 -s -k 00:17:09 aarch64-linux-gnu-ld: Unexpected GOT/PLT entries detected! 00:17:09 aarch64-linux-gnu-ld: Unexpected run-time procedure linkages detected! 00:17:10 aarch64-linux-gnu-ld: drivers/regulator/core.o: in function `_regulator_get_mode_unlocked': 00:17:10 /home/tcwg-buildslave/workspace/tcwg_kernel_0/linux/drivers/regulator/core.c:4637:(.text+0x5cd0): undefined reference to `__popcountdi2' 00:17:11 make[2]: *** [scripts/Makefile.vmlinux:37: vmlinux] Error 1 ===
Full build log is at https://ci.linaro.org/job/tcwg_kernel--gnu-master-aarch64-lts-defconfig-buil... .
Thanks!
-- Maxim Kuvyrkov https://www.linaro.org
On Sep 2, 2024, at 19:11, ci_notify@linaro.org wrote:
Dear contributor, our automatic CI has detected problems related to your patch(es). Please find some details below. If you have any questions, please follow up on linaro-toolchain@lists.linaro.org mailing list, Libera's #linaro-tcwg channel, or ping your favourite Linaro toolchain developer on the usual project channel.
We appreciate that it might be difficult to find the necessary logs or reproduce the issue locally. If you can't get what you need from our CI within minutes, let us know and we will be happy to help.
We track this report status in https://linaro.atlassian.net/browse/GNU-1324 , please let us know if you are looking at the problem and/or when you have a fix.
In CI config tcwg_kernel/gnu-master-aarch64-lts-defconfig after:
| commit gcc-15-3256-g1c4b9826bd0 | Author: Filip Kastl fkastl@suse.cz | Date: Wed Aug 28 15:47:44 2024 +0200 | | gimple ssa: switchconv: Use __builtin_popcount and support more types in exp transform [PR116355] | | The gen_pow2p function generates (a & -a) == a as a fallback for | POPCOUNT (a) == 1. Not only is the bitmagic not equivalent to | POPCOUNT (a) == 1 but it also introduces UB (consider signed | a = INT_MIN). | | ... 43 lines of the commit log omitted.
Results changed to # reset_artifacts: -10 # build_abe binutils: -9 # build_abe stage1: -5 # build_abe qemu: -2 # linux_n_obj: 9328
From # reset_artifacts: -10 # build_abe binutils: -9 # build_abe stage1: -5 # build_abe qemu: -2 # linux_n_obj: 9330 # linux build successful: all # linux boot successful: boot
The configuration of this build is: CI config tcwg_kernel/gnu-master-aarch64-lts-defconfig
-----------------8<--------------------------8<--------------------------8<-------------------------- The information below can be used to reproduce a debug environment:
Current build : https://ci.linaro.org/job/tcwg_kernel--gnu-master-aarch64-lts-defconfig-buil... Reference build : https://ci.linaro.org/job/tcwg_kernel--gnu-master-aarch64-lts-defconfig-buil...
Reproduce last good and first bad builds: https://git-us.linaro.org/toolchain/ci/interesting-commits.git/plain/gcc/sha...
Full commit : https://github.com/gcc-mirror/gcc/commit/1c4b9826bd0d5ac471543c68f097d80b196...
List of configurations that regressed due to this commit :
- tcwg_kernel
** gnu-master-aarch64-lts-defconfig *** Failure *** https://git-us.linaro.org/toolchain/ci/interesting-commits.git/plain/gcc/sha... *** https://ci.linaro.org/job/tcwg_kernel--gnu-master-aarch64-lts-defconfig-buil...
On Thu 2024-09-05 13:59:00, Maxim Kuvyrkov wrote:
Hi Filip,
FYI, your patch below causes linux kernel build failure on arm64. Could you take a look, please?
Hi Maxim,
I'm taking a look now. It seems that the __builtin_popcount I insert in the switch conversion pass doesn't expand to either bitmagic or an internal function call and ends up as a call to libgcc in the binary. Currently I'm trying to reproduce this and figure out why does it happen.
Thanks, Filip
linaro-toolchain@lists.linaro.org