https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98246
Bug ID: 98246 Summary: [11 Regression] Linux kernel build fails after 6fbec038f7a7 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: mkuvyrkov at gcc dot gnu.org Target Milestone: --- Linux kernel build fails at least for AArch64 and armhf after <cut> commit 6fbec038f7a7ddf29f074943611b53210d17c40c Author: H.J. Lu <hjl.to...@gmail.com> Date: Mon Feb 3 11:55:43 2020 -0800 Use SHF_GNU_RETAIN to preserve symbol definitions </cut> The error is: 00:04:49 In file included from ./include/linux/serial_sci.h:6, 00:04:49 from drivers/tty/serial/sh-sci.c:42: 00:04:49 ./include/linux/compiler-gcc.h:47:45: error: ‘__UNIQUE_ID___earlycon_hscif362’ causes a section type conflict with ‘banner’ 00:04:49 47 | #define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__) 00:04:49 | ^~~~~~~~~~~~ This likely also happens on other architectures. To reproduce a vanilla aarch64-linux-gnu stage1 cross compiler and any recent Linux version is sufficient. Compiler build log: https://ci.linaro.org/job/tcwg_kernel-gnu-bisect-gnu-master-aarch64-mainline-defconfig/24/artifact/artifacts/build-first_bad/04-build_abe-stage1/console.log/*view*/ Kernel build log: https://ci.linaro.org/job/tcwg_kernel-gnu-bisect-gnu-master-aarch64-mainline-defconfig/24/artifact/artifacts/build-first_bad/05-build_linux/console.log/*view*/