From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 09/27] package/boost: work around gcc bug 85180 for boost-fiber option
Date: Wed, 19 Jun 2019 17:58:21 +0200 [thread overview]
Message-ID: <20190619175821.422e1e0b@windsurf> (raw)
In-Reply-To: <20190614210346.121013-10-giulio.benetti@micronovasrl.com>
On Fri, 14 Jun 2019 23:03:28 +0200
Giulio Benetti <giulio.benetti@micronovasrl.com> wrote:
> With Microblaze Gcc version < 8.x the build hangs due to gcc bug
> 85180: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85180. The bug
> shows up when building boost with boost-fiber enabled and optimization
> but not when building with -O0. To work around this, if
> BR2_TOOLCHAIN_HAS_GCC_BUG_85180=y and boost-fiber is selected we force
> using -O0.
>
> Signed-off-by: Giulio Benetti <giulio.benetti@micronovasrl.com>
> ---
> package/boost/Config.in | 5 ++---
> package/boost/boost.mk | 4 ++++
> 2 files changed, 6 insertions(+), 3 deletions(-)
>
> diff --git a/package/boost/Config.in b/package/boost/Config.in
> index 783e86dc09..88b964847f 100644
> --- a/package/boost/Config.in
> +++ b/package/boost/Config.in
> @@ -137,7 +137,6 @@ config BR2_PACKAGE_BOOST_FIBER
> # since mips32r2/mips64r2.
> depends on !BR2_MIPS_CPU_MIPS32 && !BR2_MIPS_CPU_MIPS64
> depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # boost-context
> - depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_85180
Since we are probably not going to allow building boost-context on
Microblaze, I think this patch should simply be to remove the
BR2_TOOLCHAIN_HAS_GCC_BUG_85180 dependency. Indeed, this option already
has the BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTS dependency that
prevents from being selected on Microblaze.
If we ever add Microblaze to BR2_PACKAGE_BOOST_CONTEXT_ARCH_SUPPORTS,
and the gcc bug is still there, then we will see build failures and we
can fix them at this point.
> +ifeq ($(BR2_TOOLCHAIN_HAS_GCC_BUG_85180),y)
> +BOOST_TARGET_CXXFLAGS += -O0
> +endif
Also, this choice had the drawback that Boost was always built with -O0
on Microblaze, even if the Fiber module was not selected.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2019-06-19 15:58 UTC|newest]
Thread overview: 57+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-14 21:03 [Buildroot] [PATCH 00/27] Microblaze clean up Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 01/27] package/keyutils: re-enable package on microblaze Giulio Benetti
2019-06-19 5:24 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 02/27] package/ecryptfs-utils: " Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 03/27] package/libnss: use correct CFLAGS and LDFLAGS Giulio Benetti
2019-06-19 12:33 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 04/27] package/libnss: re-enable package on microblaze Giulio Benetti
2019-06-19 12:34 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 05/27] package/ecryptfs-utils: remove libnss gcc bug dependency Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 06/27] package/stress-ng: re-enable package on microblaze Giulio Benetti
2019-06-19 12:36 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 07/27] package/bullet: re-enable package when gcc bug 85180 is present Giulio Benetti
2019-06-19 12:46 ` Thomas Petazzoni
2019-06-19 13:17 ` Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 08/27] package/boost: allow building on microblaze Giulio Benetti
2019-06-19 15:56 ` Thomas Petazzoni
2019-06-20 9:37 ` Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 09/27] package/boost: work around gcc bug 85180 for boost-fiber option Giulio Benetti
2019-06-19 15:58 ` Thomas Petazzoni [this message]
2019-06-20 9:39 ` Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 10/27] package/snort: work around gcc bug 85180 Giulio Benetti
2019-06-19 16:00 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 11/27] package/prboom: avoid using hardcoded optimization flags Giulio Benetti
2019-06-19 19:37 ` Thomas Petazzoni
2019-06-20 13:40 ` Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 12/27] package/prboom: work around gcc bug 85180 Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 13/27] package/kmsxx: " Giulio Benetti
2019-06-19 19:42 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 14/27] package/gpsd: use common BR2_TOOLCHAIN_HAS_GCC_BUG_68485 Giulio Benetti
2019-06-19 19:49 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 15/27] package/flann: re-enable package on microblaze Giulio Benetti
2019-06-19 19:53 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 16/27] package/libspatialindex: use common BR2_TOOLCHAIN_HAS_BUG_68485 Giulio Benetti
2019-06-19 19:54 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 17/27] package/lua-cqueues: fix build failure due to Gcc Bug 68485 Giulio Benetti
2019-06-19 19:58 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 18/27] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_63261 Giulio Benetti
2019-06-22 17:53 ` Thomas Petazzoni
2019-06-24 9:30 ` Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 19/27] package/fxload: re-enable package on microblaze Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 20/27] package/dmalloc: " Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 21/27] toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_90620 Giulio Benetti
2019-06-20 16:14 ` Thomas Petazzoni
2019-06-21 9:22 ` Giulio Benetti
2019-06-21 16:51 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 22/27] package/haproxy: re-enable package on microblaze Giulio Benetti
2019-06-20 16:13 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 23/27] package/tvheadend: fix PIE build failures Giulio Benetti
2019-06-14 21:28 ` Giulio Benetti
2019-06-20 14:36 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 24/27] package/tvheadend: re-enable package on microblaze Giulio Benetti
2019-06-20 14:36 ` Thomas Petazzoni
2019-06-14 21:03 ` [Buildroot] [PATCH 25/27] package/qt5/qt5webengine: re-enable building if BUG_85682=y on Qt5 Latest Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 26/27] package/sqlite: work around build timeout Giulio Benetti
2019-06-20 14:42 ` Thomas Petazzoni
2019-06-20 14:46 ` Giulio Benetti
2019-06-14 21:03 ` [Buildroot] [PATCH 27/27] package/flashbench: remove old toolchain microblaze & sh2a workaround Giulio Benetti
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=20190619175821.422e1e0b@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.