]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commitdiff
toolchain: GCC bug 85862
authorMatt Weber <matthew.weber@rockwellcollins.com>
Mon, 21 May 2018 20:29:42 +0000 (15:29 -0500)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 21 May 2018 21:46:41 +0000 (23:46 +0200)
GCC < 7.x hangs while building libnss for the Microblaze Arch.

Discovered by
http://autobuild.buildroot.net/results/158e8ebb39713e1b436a5cc1a1916f46c30694df

Reported:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85862

Simlar to:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49218

[Peter: tweak ecryptfs comment, add comment/dependencies for qt5webengine]
Signed-off-by: Matthew Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/ecryptfs-utils/Config.in
package/libnss/Config.in
package/qt5/qt5webengine/Config.in
toolchain/Config.in

index bb4cc64488baa6e85d5f41bc0829505ba87aebe1..6652d33e0ee9249dac886428ee02fd9456e0a0e1 100644 (file)
@@ -7,6 +7,7 @@ config BR2_PACKAGE_ECRYPTFS_UTILS
        depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnss -> libnspr
        depends on !BR2_MIPS_NABI32 # libnss
        depends on !BR2_STATIC_LIBS # libnss, keyutils
+       depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_85862 # microblaze specific & GCC < 7.x
        select BR2_PACKAGE_KEYUTILS
        select BR2_PACKAGE_LIBNSS
        # runtime dependency only, some scripts are using the
@@ -35,3 +36,6 @@ comment "ecryptfs-utils needs a toolchain w/ threads, wchar, dynami library"
        depends on BR2_USE_MMU
        depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR || \
                BR2_STATIC_LIBS
+
+comment "ecryptfs needs a toolchain not affected by GCC bug 85862"
+       depends on BR2_TOOLCHAIN_HAS_GCC_BUG_85862 # libnss
index 599c9a653655a5342911ce3d8c1166523c13cee6..34ddb91dfa07e54253fb8e6e9bd7af71a4988c79 100644 (file)
@@ -3,6 +3,7 @@ config BR2_PACKAGE_LIBNSS
        depends on BR2_TOOLCHAIN_HAS_THREADS # libnspr
        depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT # libnspr
        depends on !BR2_STATIC_LIBS
+       depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_85862
        select BR2_PACKAGE_LIBNSPR
        select BR2_PACKAGE_SQLITE
        select BR2_PACKAGE_ZLIB
@@ -18,3 +19,6 @@ config BR2_PACKAGE_LIBNSS
 comment "libnss needs a toolchain w/ threads, dynamic library"
        depends on BR2_PACKAGE_LIBNSPR_ARCH_SUPPORT
        depends on !BR2_TOOLCHAIN_HAS_THREADS || BR2_STATIC_LIBS
+
+comment "libnss needs a toolchain not affected by GCC bug 85862"
+       depends on BR2_TOOLCHAIN_HAS_GCC_BUG_85862
index 969582712e7b6ae581d8932ab7ffea4c7276f2a1..38486c6dcf73d33a11a23d84377e9f10ecf324db 100644 (file)
@@ -20,12 +20,18 @@ comment "qt5webengine needs an OpenGL and EGL-capable backend"
        depends on BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
        depends on !BR2_PACKAGE_QT5_GL_AVAILABLE || !BR2_PACKAGE_HAS_LIBEGL
 
+comment "qt5webengine needs a toolchain not affected by GCC bug 85862"
+       depends on BR2_PACKAGE_QT5WEBENGINE_ARCH_SUPPORTS
+       depends on !BR2_PACKAGE_QT5_VERSION_5_6
+       depends on BR2_TOOLCHAIN_HAS_GCC_BUG_85862 # libnss
+
 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_HOST_GCC_AT_LEAST_4_8 # qt5base-icu
        depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # qt5base-icu
+       depends on BR2_TOOLCHAIN_HAS_GCC_BUG_85862 || BR2_PACKAGE_QT5_VERSION_5_6 # libnss
        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 121ddb4fa49a0ecc6c50ded5869884a6fd164a19..2479a6587cb822689d7212790d05e8032da59668 100644 (file)
@@ -84,6 +84,14 @@ config BR2_TOOLCHAIN_HAS_GCC_BUG_64735
        default y if BR2_m68k_cf5208
        depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7
 
+# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85862
+# An infinite loop exists in the find_base_term() logic of 6.x
+# on microblaze.  http://autobuild.buildroot.net/results/158e8ebb39713e1b436a5cc1a1916f46c30694df/
+config BR2_TOOLCHAIN_HAS_GCC_BUG_85862
+       bool
+       default y if BR2_microblaze
+       depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_7
+
 config BR2_TOOLCHAIN_HAS_NATIVE_RPC
        bool