package/icu: needs gcc >= 4.9 and host gcc >= 4.9
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 14 Jun 2020 20:13:49 +0000 (22:13 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 18 Jun 2020 20:14:18 +0000 (22:14 +0200)
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 a host gcc >= 4.9 dependency

Fixes:
 - http://autobuild.buildroot.org/results/6d2658a3c165c99df3eae87b2970e738bd386245
 - http://autobuild.buildroot.org/results/d204f1a528765d1440620a1eed8c29cbb5ec93c3

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
13 files changed:
package/cppcms/Config.in
package/icu/Config.in
package/midori/Config.in
package/php/Config.ext
package/python-mwscrape2slob/Config.in
package/python-pyicu/Config.in
package/python-slob/Config.in
package/qt-webkit-kiosk/Config.in
package/qt5/qt5base/Config.in
package/qt5/qt5webengine/Config.in
package/qt5/qt5webkit/Config.in
package/webkitgtk/Config.in
package/wpewebkit/Config.in

index f02b283482226e34b5cb34287fe3f9e14b4108e8..1d7635a83e9ed7c92b19332183eed1fb43760a68 100644 (file)
@@ -27,15 +27,17 @@ if BR2_PACKAGE_CPPCMS
 config BR2_PACKAGE_CPPCMS_ICU
        bool "enable icu support"
        depends on !BR2_BINFMT_FLAT # icu
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
        select BR2_PACKAGE_ICU
        help
          Using ICU allows advanced localization features into CppCMS,
          in another hand ICU is heavier than iconv.
 
-comment "icu support needs a toolchain w/ gcc >= 4.8"
+comment "icu support needs a toolchain w/ gcc >= 4.9, host gcc >= 4.9"
        depends on !BR2_BINFMT_FLAT
-       depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+       depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
 
 endif
 
index 32f35b9d9661663e361225e1ce2800a31dd3d43c..b0c9eac83d66a8cf3f77e782d6298c472c07e63c 100644 (file)
@@ -2,7 +2,8 @@ config BR2_PACKAGE_ICU
        bool "icu"
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_USE_WCHAR
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # C++11 PR56019
+       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
@@ -26,8 +27,9 @@ config BR2_PACKAGE_ICU_CUSTOM_DATA_PATH
 
 endif
 
-comment "icu needs a toolchain w/ C++, wchar, threads, gcc >= 4.8"
+comment "icu needs a toolchain w/ C++, wchar, threads, gcc >= 4.9, host gcc >= 4.9"
        depends on !BR2_BINFMT_FLAT
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
                !BR2_TOOLCHAIN_HAS_THREADS || \
-               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
index 089f36ced8530fee465351e214de19f64228e14e..f4b8905c85f3faaa3960d8794b50aea28876bf01 100644 (file)
@@ -1,13 +1,15 @@
-comment "midori needs libgtk3 and a glibc toolchain w/ C++, gcc >= 7"
+comment "midori needs libgtk3 and a glibc toolchain w/ C++, gcc >= 7, host gcc >= 4.9"
        depends on BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_PACKAGE_LIBGTK3 || \
                !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9 || \
                !BR2_TOOLCHAIN_USES_GLIBC
 
 config BR2_PACKAGE_MIDORI
        bool "midori"
        depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt, gcr, gnupg2
        depends on BR2_PACKAGE_LIBGTK3
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # webkitgtk
        depends on BR2_INSTALL_LIBSTDCPP # webkitgtk
        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7 # webkitgtk
        depends on BR2_TOOLCHAIN_USES_GLIBC # webkitgtk
index 66ee935cf09f5abe7b679265c847726f0061cc5a..b0ab2c9ec75dbcfacce5c61b5e3faf116daf5085 100644 (file)
@@ -222,9 +222,10 @@ config BR2_PACKAGE_PHP_EXT_ICONV
 
 config BR2_PACKAGE_PHP_EXT_INTL
        bool "intl"
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_USE_WCHAR
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
        depends on !BR2_BINFMT_FLAT # icu
        depends on BR2_TOOLCHAIN_HAS_THREADS # icu
        depends on !BR2_STATIC_LIBS
@@ -232,11 +233,12 @@ config BR2_PACKAGE_PHP_EXT_INTL
        help
          Internationalization support
 
-comment "intl support needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.8"
+comment "intl support needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 4.9, host gcc >= 4.9"
        depends on !BR2_BINFMT_FLAT
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
                !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS || \
-               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
 
 config BR2_PACKAGE_PHP_EXT_MBSTRING
        bool "mbstring"
index dc2b2ae3bdfe0140963abaeaeeb11e41add83dd3..6d543bda28d4b7775831c4d8d229b5bd597e363c 100644 (file)
@@ -1,8 +1,9 @@
 config BR2_PACKAGE_PYTHON_MWSCRAPE2SLOB
        bool "python-mwscrape2slob"
        depends on !BR2_BINFMT_FLAT # python-slob -> python-pyicu -> icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # python-slob -> python-pyicu -> icu
        depends on BR2_INSTALL_LIBSTDCPP # python-slob -> python-pyicu -> icu
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # python-slob -> python-pyicu -> icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # python-slob -> python-pyicu -> icu
        depends on BR2_PACKAGE_PYTHON3
        select BR2_PACKAGE_PYTHON_COUCHDB # runtime
        select BR2_PACKAGE_PYTHON_CSSSELECT # runtime
@@ -15,7 +16,8 @@ config BR2_PACKAGE_PYTHON_MWSCRAPE2SLOB
 
          https://github.com/itkach/mwscrape2slob
 
-comment "python-mwscrape2slob needs a toolchain w/ C++, gcc >= 4.8"
+comment "python-mwscrape2slob needs a toolchain w/ C++, gcc >= 4.9, host gcc >= 4.9"
        depends on BR2_PACKAGE_PYTHON3 && !BR2_BINFMT_FLAT
        depends on !BR2_INSTALL_LIBSTDCPP || \
-               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
index efab0853e41301a61435c33e54830dfdf9f62f0c..93eac533877cfb16fa5cc39ef9746f6e79ca687a 100644 (file)
@@ -1,15 +1,17 @@
 config BR2_PACKAGE_PYTHON_PYICU
        bool "python-pyicu"
        depends on !BR2_BINFMT_FLAT # icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
        depends on BR2_INSTALL_LIBSTDCPP # icu
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
        select BR2_PACKAGE_ICU
        help
          Python extension wrapping the ICU C++ API.
 
          https://github.com/ovalhub/pyicu
 
-comment "python-pyicu needs a toolchain w/ C++, gcc >= 4.8"
+comment "python-pyicu needs a toolchain w/ C++, gcc >= 4.9, host gcc >= 4.9"
        depends on !BR2_BINFMT_FLAT
        depends on !BR2_INSTALL_LIBSTDCPP || \
-               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
index a8b6e45da4327848a547556f75ce4bedf7511e60..07d04d49a20345f7a978e9d720732b62a329492c 100644 (file)
@@ -1,8 +1,9 @@
 config BR2_PACKAGE_PYTHON_SLOB
        bool "python-slob"
        depends on !BR2_BINFMT_FLAT # python-pyicu -> icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # python-pyicu -> icu
        depends on BR2_INSTALL_LIBSTDCPP # python-pyicu -> icu
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # python-pyicu -> icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # python-pyicu -> icu
        depends on BR2_PACKAGE_PYTHON3
        select BR2_PACKAGE_PYTHON_PYICU # runtime
        # although optional, it is used as default compression
@@ -13,7 +14,8 @@ config BR2_PACKAGE_PYTHON_SLOB
 
          https://github.com/itkach/slob
 
-comment "python-slob needs a toolchain w/ C++, gcc >= 4.8"
+comment "python-slob needs a toolchain w/ C++, gcc >= 4.9, host gcc >= 4.9"
        depends on BR2_PACKAGE_PYTHON3 && !BR2_BINFMT_FLAT
        depends on !BR2_INSTALL_LIBSTDCPP || \
-               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
index 46688a227b772196dae5cbbeafef41b5bf88b18a..80f8e7c4643ff46360c4e291204e048aed8e0b3d 100644 (file)
@@ -3,7 +3,8 @@ config BR2_PACKAGE_QT_WEBKIT_KIOSK
        depends on BR2_PACKAGE_QT5
        depends on !BR2_STATIC_LIBS # qt5webkit
        depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE # qt5webkit
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # qt5webkit -> icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # qt5webkit -> icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # qt5webkit -> icu
        depends on !BR2_BINFMT_FLAT # qt5webkit -> icu
        depends on !BR2_MIPS_SOFT_FLOAT # qt5webkit
        select BR2_PACKAGE_OPENSSL
@@ -25,8 +26,9 @@ config BR2_PACKAGE_QT_WEBKIT_KIOSK_SOUNDS
 
 endif
 
-comment "qt-webkit-kiosk needs a toolchain w/ dynamic library, gcc >= 4.8"
-       depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+comment "qt-webkit-kiosk needs a toolchain w/ dynamic library, gcc >= 4.9, host gcc >= 4.9"
+       depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
        depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE
        depends on !BR2_BINFMT_FLAT
        depends on !BR2_MIPS_SOFT_FLOAT
index 60a611e2928f1bbc5642b85a300cb346bf030eae..28b03f543897e4c0d4779b16c8d060683d27daab 100644 (file)
@@ -273,15 +273,17 @@ config BR2_PACKAGE_QT5BASE_DBUS
 config BR2_PACKAGE_QT5BASE_ICU
        bool "Enable ICU support"
        depends on !BR2_BINFMT_FLAT # icu
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
        select BR2_PACKAGE_ICU
        help
          This option enables ICU support in Qt5. This is for example
          needed for Qt5Webkit.
 
-comment "icu support needs a toolchain w/ gcc >= 4.8"
+comment "icu support needs a toolchain w/ gcc >= 4.9, host gcc >= 4.9"
        depends on !BR2_BINFMT_FLAT
-       depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+       depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
 
 config BR2_PACKAGE_QT5BASE_TSLIB
        bool "Enable Tslib support"
index a05205c7ad54bea7db647bf1d5b757fd968c6360..215afbb616c099d6a4e9703d70611e0c77d8cc11 100644 (file)
@@ -10,10 +10,11 @@ config BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
        depends on !BR2_BINFMT_FLAT # qt5base-icu
        depends on BR2_USE_MMU # libglib2, qt5base-dbus
 
-comment "qt5webengine needs udev /dev management and a glibc toolchain w/ gcc >= 4.8, threads, wchar"
+comment "qt5webengine needs udev /dev management and a glibc toolchain w/ gcc >= 4.9, host gcc >= 4.9, threads, wchar"
        depends on BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
        depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_USES_GLIBC || \
-               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 || \
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9 || \
                !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
 
 comment "qt5webengine needs an OpenGL and EGL-capable backend"
@@ -24,7 +25,8 @@ config BR2_PACKAGE_QT5WEBENGINE
        bool "qt5webengine"
        depends on BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
        depends on BR2_TOOLCHAIN_USES_GLIBC # execinfo.h, mallinfo
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # qt5base-icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # qt5base-icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # qt5base-icu
        depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2, libvpx, qt5base-dbus
        depends on BR2_USE_WCHAR # libglib2
        depends on BR2_PACKAGE_QT5_GL_AVAILABLE # qt5declarative, qt5base-eglfs
index e071dff2082eb25f9705d45ca3a01eb517fe7030..693309097305c3b9061f76fea8d3bd7ef8422a2c 100644 (file)
@@ -3,7 +3,8 @@ config BR2_PACKAGE_QT5WEBKIT
        depends on !BR2_STATIC_LIBS
        depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE
        depends on BR2_INSTALL_LIBSTDCPP # leveldb
-       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # icu
        depends on BR2_TOOLCHAIN_HAS_THREADS # leveldb
        depends on !BR2_BINFMT_FLAT # icu
        # assumes a FPU is available on MIPS
@@ -31,8 +32,9 @@ config BR2_PACKAGE_QT5WEBKIT
 
          http://doc.qt.io/archives/qt-5.5/qtwebkit-index.html
 
-comment "qt5webkit needs a toolchain w/ dynamic library, gcc >= 4.8"
-       depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+comment "qt5webkit needs a toolchain w/ dynamic library, gcc >= 4.9, host gcc >= 4.9"
+       depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
        depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE
        depends on !BR2_BINFMT_FLAT
        depends on !BR2_MIPS_SOFT_FLOAT
index 86f58821a3049eb8080eb0512f5de2075307d9e5..4ea931fde186f50d244ebd40c2899e65414ee55b 100644 (file)
@@ -12,15 +12,17 @@ config BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS
        depends on BR2_TOOLCHAIN_HAS_SYNC_4
        depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
 
-comment "webkitgtk needs libgtk3 and a glibc toolchain w/ C++, gcc >= 7"
+comment "webkitgtk needs libgtk3 and a glibc toolchain w/ C++, gcc >= 7, host gcc >= 4.9"
        depends on BR2_PACKAGE_WEBKITGTK_ARCH_SUPPORTS
        depends on !BR2_PACKAGE_LIBGTK3 || !BR2_INSTALL_LIBSTDCPP || \
                !BR2_TOOLCHAIN_USES_GLIBC || \
-               !BR2_TOOLCHAIN_GCC_AT_LEAST_7
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_7 || \
+               !BR2_HOST_GCC_AT_LEAST_4_9
        depends on BR2_USE_MMU
 
 config BR2_PACKAGE_WEBKITGTK
        bool "webkitgtk"
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
        depends on BR2_INSTALL_LIBSTDCPP
        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
        depends on BR2_TOOLCHAIN_USES_GLIBC
index f3029976f1b94fadc074ac4af1bd4ff5150f0724..640f7c7011d170a74045b944043aa65a95ee07d3 100644 (file)
@@ -12,12 +12,13 @@ config BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
        depends on BR2_TOOLCHAIN_HAS_SYNC_4
        depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgcrypt
 
-comment "wpewebkit needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 7"
+comment "wpewebkit needs a toolchain w/ C++, wchar, threads, dynamic library, gcc >= 7, host gcc >= 4.9"
        depends on BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
        depends on !BR2_BINFMT_FLAT
        depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR \
                || !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS \
-               || !BR2_TOOLCHAIN_GCC_AT_LEAST_7
+               || !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
+               || !BR2_HOST_GCC_AT_LEAST_4_9
 
 comment "wpewebkit needs an OpenGL ES w/ EGL-capable Wayland backend"
        depends on BR2_PACKAGE_WPEWEBKIT_ARCH_SUPPORTS
@@ -29,6 +30,7 @@ config BR2_PACKAGE_WPEWEBKIT
        bool "wpewebkit"
        depends on !BR2_STATIC_LIBS # wayland
        depends on !BR2_BINFMT_FLAT # icu
+       depends on BR2_HOST_GCC_AT_LEAST_4_9 # icu
        depends on BR2_INSTALL_LIBSTDCPP # harfbuzz, icu
        depends on BR2_TOOLCHAIN_HAS_THREADS # wayland, icu, libsoup
        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7