package/llvm: needs host gcc >= 5
Fix the following build failure with host-lld, libclc, etc. raised since
bump to version 11.1.0 in commit
456f704e6b
:
CMake Error at cmake/modules/CheckCompilerVersion.cmake:38 (message):
Host GCC version must be at least 5.1, your version is 4.8.5.
Fixes:
- http://autobuild.buildroot.org/results/7f120dbcbd5410477550fa8645e7d1cb0ae6cf1c
- http://autobuild.buildroot.org/results/2382d7112618236aeafcaf581dc22a8d938824cf
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
88ae4ebd21
commit
b0470c5039
@ -7,6 +7,7 @@ config BR2_PACKAGE_CLANG
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR # std::wstring
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5
|
||||
select BR2_PACKAGE_LLVM
|
||||
help
|
||||
Clang is a C/C++, Objective C/C++ and OpenCL C front-end
|
||||
@ -14,11 +15,12 @@ config BR2_PACKAGE_CLANG
|
||||
|
||||
http://clang.llvm.org
|
||||
|
||||
comment "clang needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library"
|
||||
comment "clang needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library, host gcc >= 5"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_5 \
|
||||
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR \
|
||||
|| !BR2_HOST_GCC_AT_LEAST_5
|
||||
|
||||
comment "clang needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
|
@ -2,6 +2,7 @@ config BR2_PACKAGE_COMPILER_RT
|
||||
bool "compiler-rt"
|
||||
depends on BR2_PACKAGE_LLVM
|
||||
depends on BR2_TOOLCHAIN_USES_GLIBC # asan lib requires
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # host-clang
|
||||
help
|
||||
A collection of runtime libraries primarily used by clang and
|
||||
llvm to provide builtins, sanitizer runtimes, and profiling
|
||||
@ -9,6 +10,6 @@ config BR2_PACKAGE_COMPILER_RT
|
||||
|
||||
https://compiler-rt.llvm.org/
|
||||
|
||||
comment "compiler-rt requires llvm to be enabled and a glibc toolchain"
|
||||
comment "compiler-rt requires llvm to be enabled, a glibc toolchain, host gcc >= 5"
|
||||
depends on !BR2_PACKAGE_LLVM
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC
|
||||
depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_HOST_GCC_AT_LEAST_5
|
||||
|
@ -1,9 +1,14 @@
|
||||
config BR2_PACKAGE_LIBCLC
|
||||
bool "libclc"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # host-llvm
|
||||
help
|
||||
libclc is an open source, BSD licensed implementation of
|
||||
the library requirements of the OpenCL C programming language,
|
||||
as specified by the OpenCL 1.1 Specification.
|
||||
|
||||
http://libclc.llvm.org/
|
||||
|
||||
comment "libclc needs host gcc >= 5"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on !BR2_HOST_GCC_AT_LEAST_5
|
||||
|
@ -1,6 +1,7 @@
|
||||
config BR2_PACKAGE_HOST_LLD
|
||||
bool "host lld"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # llvm
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # host-llvm
|
||||
help
|
||||
LLD is a linker from the LLVM project that is a drop-in
|
||||
replacement for system linkers, and runs much faster than
|
||||
@ -8,3 +9,7 @@ config BR2_PACKAGE_HOST_LLD
|
||||
toolchain developers.
|
||||
|
||||
https://lld.llvm.org/
|
||||
|
||||
comment "host lld needs host gcc >= 5"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on !BR2_HOST_GCC_AT_LEAST_5
|
||||
|
@ -23,6 +23,7 @@ config BR2_PACKAGE_LLVM
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR # std::wstring
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # host-llvm
|
||||
help
|
||||
The LLVM Project is a collection of modular and reusable
|
||||
compiler and toolchain technologies.
|
||||
@ -58,11 +59,12 @@ config BR2_PACKAGE_LLVM_BPF
|
||||
|
||||
endif
|
||||
|
||||
comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library"
|
||||
comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library, host gcc >= 5"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_5 \
|
||||
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR \
|
||||
|| !BR2_HOST_GCC_AT_LEAST_5
|
||||
|
||||
comment "llvm needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
|
@ -30,13 +30,15 @@ config BR2_PACKAGE_MESA3D_LLVM
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
|
||||
depends on !BR2_STATIC_LIBS
|
||||
depends on BR2_USE_WCHAR # std::wstring
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # host-llvm
|
||||
select BR2_PACKAGE_LLVM
|
||||
|
||||
comment "llvm support needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library"
|
||||
comment "llvm support needs a toolchain w/ wchar, threads, C++, gcc >= 5, dynamic library, host gcc >= 5"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
|
||||
!BR2_TOOLCHAIN_GCC_AT_LEAST_5 \
|
||||
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR
|
||||
|| BR2_STATIC_LIBS || !BR2_USE_WCHAR \
|
||||
|| !BR2_HOST_GCC_AT_LEAST_5
|
||||
|
||||
comment "llvm support needs a toolchain not affected by GCC bug 64735"
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
|
||||
|
@ -23,12 +23,13 @@ config BR2_PACKAGE_QT5TOOLS_QDOC_TOOL
|
||||
# currently supported in Buildroot, unless the target is
|
||||
# already supported by llvm.
|
||||
depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS # llvm, clang
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 # llvm, clang
|
||||
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_5 # llvm, clang
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # llvm, clang
|
||||
depends on BR2_INSTALL_LIBSTDCPP # llvm, clang
|
||||
depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # llvm, clang
|
||||
depends on !BR2_STATIC_LIBS # llvm, clang
|
||||
depends on BR2_USE_WCHAR # llvm, clang
|
||||
depends on BR2_HOST_GCC_AT_LEAST_5 # llvm, clang
|
||||
help
|
||||
This option enables the qdoc host tool.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user