Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/2] toolchain: simplify the conditions for BR2_TOOLCHAIN_ARM_HAS_SYNC_8
Date: Fri, 25 Nov 2016 09:56:14 +0100	[thread overview]
Message-ID: <20161125095614.5ef13945@free-electrons.com> (raw)
In-Reply-To: <47d66856-80eb-9c55-026d-3b74b44886b1@mind.be>

Hello,

On Fri, 25 Nov 2016 00:13:16 +0100, Arnout Vandecappelle wrote:

>  Now I think about it again, I think the condition should simply be
> 	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_7
> 
>  Let me explain again my reasoning.
> 
>  For me, the toolchain conditions that we add to hide packages are only there to
> cover missing features in certain compiler versions, not to cover bugs. The
> incorrect sync_8 implementation in gcc < 5.2 is something I consider a bug: it's
> something that has been implemented, works correctly, but fails to link with a
> specific library. Therefore, I would say that sync_8 on ARM has been available
> since gcc 4.7. An external non-glibc toolchain with gcc < 5.2 will not actually
> work, but that's due to a compiler bug. People who need one of the 3 packages
> that fail because of this compiler bug should update their compiler - and the
> best way to tell them that is to make the build fail, not to hide the option.
> 
>  But that's my opinion. It's clearly not the rule that is currently followed in
> Buildroot. Just look at the number of packages with some kind of external
> toolchain specific dependency. Honestly, I think those things are giving us more
> work for no added benefit to the user.

That's fine with me, with just one question: how do we handle this from
an autobuilder perspective? Add more and more exceptions? Doesn't it
make more sense to have those exceptions in Buildroot itself (in the
form of Config.in dependencies) so that instead of benefiting the
autobuilders only, they also benefit to the user?

Or do we want our users to run into build failures, to have them
discover the hard way that toolchain X or Y is affected by gcc bug
XYZ ? Why not instead annotate packages like we do today, to make the
life our users easier ?

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2016-11-25  8:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-21 23:43 [Buildroot] [PATCH 1/2] gcc: backport upstream patch for sync_8 in !glibc Arnout Vandecappelle
2016-11-21 23:43 ` [Buildroot] [PATCH 2/2] toolchain: simplify the conditions for BR2_TOOLCHAIN_ARM_HAS_SYNC_8 Arnout Vandecappelle
2016-11-22  8:35   ` Thomas Petazzoni
2016-11-24 23:13     ` Arnout Vandecappelle
2016-11-25  8:56       ` Thomas Petazzoni [this message]
2016-12-08 21:44       ` Thomas Petazzoni
2016-11-26 14:27 ` [Buildroot] [PATCH 1/2] gcc: backport upstream patch for sync_8 in !glibc Thomas Petazzoni

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=20161125095614.5ef13945@free-electrons.com \
    --to=thomas.petazzoni@free-electrons.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