From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2, 1/1] package/icu: needs gcc >= 4.9 and host gcc >= 4.9
Date: Sun, 14 Jun 2020 21:58:09 +0200 [thread overview]
Message-ID: <20200614195809.GJ2346@scaer> (raw)
In-Reply-To: <20200614191948.413010-1-fontaine.fabrice@gmail.com>
Fabrice, All,
On 2020-06-14 21:19 +0200, Fabrice Fontaine spake thusly:
> icu uses std::max_align_t since version 67-1 and
> https://github.com/unicode-org/icu/commit/a3078fb8c89b61c35ccebb04cf6b189bc81093b3
>
> This raises the following build failure with gcc 4.8:
>
> utext.cpp:572:5: error: 'max_align_t' in namespace 'std' does not name a type
> std::max_align_t extension;
> ^
>
> This build failure is due to GCC bug 56019:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56019
>
> Instead of adding BR2_TOOLCHAIN_HAS_GCC_BUG_56019, just bumps gcc
> dependency from 4.8 to 4.9
>
> As this issue also affects host-icu, add Config.in.host with a
> host gcc >= 4.9 dependency
You don;t need to add this hos symbol. Only icu depends on host-icu, so
just have icu bear the two depends.
Besides, you forgot soemthing, see below...
[--SNIP--]
> diff --git a/package/icu/Config.in b/package/icu/Config.in
> index 32f35b9d96..1b792de5ba 100644
> --- a/package/icu/Config.in
> +++ b/package/icu/Config.in
> @@ -1,13 +1,15 @@
> config BR2_PACKAGE_ICU
> bool "icu"
> + depends on BR2_HOST_GCC_AT_LEAST_4_9 # host-icu
> depends on BR2_INSTALL_LIBSTDCPP
> depends on BR2_USE_WCHAR
> - depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
> + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11 PR56019
> depends on BR2_TOOLCHAIN_HAS_THREADS
> # icu does some funky things by generating by itself an ELF
> # file, and it cannot easily be changed to generate FLAT
> # format.
> depends on !BR2_BINFMT_FLAT
> + select BR2_PACKAGE_HOST_ICU
You select BR2_PACKAGE_HOST_ICU, but you forgot to propagate its
dependency on BR2_HOST_GCC_AT_LEAST_4_9.
However, as I said, you don't need to introduce BR2_PACKAGE_HOST_ICU.
Just have BR2_PACKAGE_ICU carry the two dependencies:
config BR2_PACKAGE_ICU
depends on BR2_HOST_GCC_AT_LEAST_4_9 # C++11 PR56019
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # C++11 PR56019
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
prev parent reply other threads:[~2020-06-14 19:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-14 19:19 [Buildroot] [PATCH v2, 1/1] package/icu: needs gcc >= 4.9 and host gcc >= 4.9 Fabrice Fontaine
2020-06-14 19:58 ` Yann E. MORIN [this message]
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=20200614195809.GJ2346@scaer \
--to=yann.morin.1998@free.fr \
--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