From: Peter Korsgaard Date: Sat, 21 Mar 2020 21:00:52 +0100 Subject: [Buildroot] [PATCH] package/gcc: disable gcc 9.x for csky In-Reply-To: <20200312234127.449204-2-romain.naour@smile.fr> (Romain Naour's message of "Fri, 13 Mar 2020 00:41:27 +0100") References: <20200312234127.449204-1-romain.naour@smile.fr> <20200312234127.449204-2-romain.naour@smile.fr> Message-ID: <87tv2h4gwb.fsf@dell.be.48ers.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net >>>>> "Romain" == Romain Naour writes: > When building a toolchain with upstream gcc 9.x the build > fail due to several issues. > Note: The upstream Binutils support csky target since > release 2.32 but the support was never enabled in the > Buildroot packaging. So the latest version (2.33.1) was > tested here. > [upstream gcc 9.x w/ glibc csky fork with binutils csky for or binutils 2.33.1] > In file included from : > ./../include/libc-symbols.h:534:26: error: '__EI___errno_location' specifies less restrictive attributes than its target '__errno_location': 'const', 'nothrow' [-Werror=missing-attributes] > 534 | extern __typeof (name) __EI_##name \ > [upstream gcc 9.x w/ glibc 2.30 w/ binutils csky fork] > /tmp/ccThLRhb.s: Assembler messages: > /tmp/ccThLRhb.s:10: Error: invalid or unsupported encoding in .cfi_personality > /tmp/ccThLRhb.s:11: Error: invalid or unsupported encoding in .cfi_lsda > [upstream gcc 9.x w/ glibc 2.30 w/ binutils 2.33.1] > build/elf/librtld.os: in function `__sync_fetch_and_add_2': > libgcc/config/csky/linux-atomic.c:116: undefined reference to `__kernel_cmpxchg' > Currenlty, only the toolchain using binutils, gcc, glibc > fork produce a working toolchain. So disable gcc 9.x for > csky. > Signed-off-by: Romain Naour > Cc: Yann E. MORIN > Cc: Guo Ren > Cc: Arnout Vandecappelle > Cc: Peter Korsgaard Committed to 2019.11.x and 2020.02.x, thanks. -- Bye, Peter Korsgaard