From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/gcc: disable gcc 9.x for csky
Date: Sat, 14 Mar 2020 15:16:52 +0100 [thread overview]
Message-ID: <20200314151652.3f3c6afa@windsurf> (raw)
In-Reply-To: <20200312234127.449204-2-romain.naour@smile.fr>
Hello,
On Fri, 13 Mar 2020 00:41:27 +0100
Romain Naour <romain.naour@smile.fr> wrote:
> 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 <command-line>:
> ./../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 <romain.naour@smile.fr>
> Cc: Yann E. MORIN <yann.morin.1998@free.fr>
> Cc: Guo Ren <guoren@kernel.org>
> Cc: Arnout Vandecappelle <arnout@mind.be>
> Cc: Peter Korsgaard <peter@korsgaard.com>
> ---
> package/gcc/Config.in.host | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2020-03-14 14:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-12 23:41 [Buildroot] [PATCH] package/gcc/9.x: fix download url when using upstream gcc for csky Romain Naour
2020-03-12 23:41 ` [Buildroot] [PATCH] package/gcc: disable gcc 9.x " Romain Naour
2020-03-14 14:16 ` Thomas Petazzoni [this message]
2020-03-21 20:00 ` Peter Korsgaard
2020-03-21 20:00 ` Peter Korsgaard
2020-03-14 14:16 ` [Buildroot] [PATCH] package/gcc/9.x: fix download url when using upstream gcc " Thomas Petazzoni
2020-03-21 19:59 ` Peter Korsgaard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200314151652.3f3c6afa@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox