diff options
author | Changqing Li <changqing.li@windriver.com> | 2021-12-07 05:04:15 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2021-12-09 08:54:15 -0800 |
commit | edca114de1c04bdce4fe6b71ab42f4b0aa2e88e7 (patch) | |
tree | 2fef6bd1bc57c1557bbd8760ad4ebcc5326d5e61 /recipes-devtools/clang/common.inc | |
parent | 7294d0ec96f7a8396632b7153c8a76c58b142412 (diff) | |
download | meta-clang-edca114de1c04bdce4fe6b71ab42f4b0aa2e88e7.tar.gz |
clang: for x86_64, correct GCC install search path for OpenEmbedded Host
Build on OpenEmbedded Host, compiler-rt-native do_configure failed with
following error:
compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/bin/clang -target x86_64-linux
-isystem/path/to/x86_64-linux/compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/include
-O2 -pipe
/path/to/compiler-rt-native/13.0.1-r0/recipe-sysroot-native/usr/share/cmake-3.21/Modules/CMakeCCompilerABI.c`
| /build/tmp-glibc/hosttools/ld: cannot find crtbeginS.o: No such file or directory
| /build/tmp-glibc/hosttools/ld: cannot find -lgcc
| /build/tmp-glibc/hosttools/ld: cannot find -lgcc
| clang-13: error: linker command failed with exit code 1 (use -v to see invocation)
Since OpenEmbedded Host's gcc install path is different with clang's
default search form, patch for OpenEmbedded Host's gcc library install
path.
Signed-off-by: Changqing Li <changqing.li@windriver.com>
Diffstat (limited to 'recipes-devtools/clang/common.inc')
-rw-r--r-- | recipes-devtools/clang/common.inc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index c0d0cd8..7d83c10 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc | |||
@@ -46,6 +46,8 @@ SRC_URI = "\ | |||
46 | file://0034-compiler-rt-Do-not-force-thumb-mode-directive.patch \ | 46 | file://0034-compiler-rt-Do-not-force-thumb-mode-directive.patch \ |
47 | file://0035-clang-Do-not-use-install-relative-libc-headers.patch \ | 47 | file://0035-clang-Do-not-use-install-relative-libc-headers.patch \ |
48 | file://0036-clang-Fix-how-driver-finds-GCC-installation-path-on-.patch \ | 48 | file://0036-clang-Fix-how-driver-finds-GCC-installation-path-on-.patch \ |
49 | file://0037-Fix-lib-paths-for-OpenEmbedded-Host.patch \ | ||
50 | file://0038-Correct-library-search-path-for-OpenEmbedded-Host.patch \ | ||
49 | " | 51 | " |
50 | # Fallback to no-PIE if not set | 52 | # Fallback to no-PIE if not set |
51 | GCCPIE ??= "" | 53 | GCCPIE ??= "" |