summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2021-03-23 09:19:06 -0700
committerKhem Raj <raj.khem@gmail.com>2021-03-24 07:51:52 -0700
commit539e8d85f4eb359d24b052efc6d4f7a9858fdbce (patch)
tree715d7175b602d02cec0c880e08e4675b76a08314 /README.md
parente8a0bada69637ff7a767d387b803a42123aead0b (diff)
downloadmeta-clang-539e8d85f4eb359d24b052efc6d4f7a9858fdbce.tar.gz
clang: allow to set CLANG_EXTRA_OE_VENDORS to support custom TARGET_VENDOR value
* instead of hardcoding only yoe, poky, wrs in the patch, add just placeholder string which gets replaced with a list based on CLANG_EXTRA_OE_VENDORS variable in llvm-project-source.inc:add_more_target_vendors Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'README.md')
-rw-r--r--README.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/README.md b/README.md
index 1ee28ae..826b8b3 100644
--- a/README.md
+++ b/README.md
@@ -130,6 +130,40 @@ if a component does not build with libc++, you can add it to `conf/nonclangable.
130CXX_remove_pn-<recipe>_toolchain-clang = " -stdlib=libc++ " 130CXX_remove_pn-<recipe>_toolchain-clang = " -stdlib=libc++ "
131``` 131```
132 132
133# compiler-rt failing in do_configure with custom TARGET_VENDOR
134
135If your DISTRO sets own value of TARGET_VENDOR, then it's need to be added in
136CLANG_EXTRA_OE_VENDORS, it should be done automatically, but if compiler-rt fails
137like bellow, then check the end of work-shared/llvm-project-source-12.0.0-r0/temp/log.do_patch
138is should have line like:
139NOTE: Adding support following TARGET_VENDOR values: foo in
140 /OE/build/oe-core/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/llvm/lib/Support/Triple.cpp and
141 /OE/build/oe-core/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/clang/lib/Driver/ToolChains/Gnu.cpp
142and check these files if //CLANG_EXTRA_OE_VENDORS* strings were replaced correctly.
143Read add_more_target_vendors function in recipes-devtools/clang/llvm-project-source.inc for more details.
144
145http://errors.yoctoproject.org/Errors/Details/574365/
146```shell
147-- Found assembler: TOPDIR/tmp-glibc/work/core2-64-foo-linux/compiler-rt/12.0.0-r0/recipe-sysroot-native/usr/bin/x86_64-foo-linux/x86_64-foo-linux-clang
148-- Detecting C compiler ABI info
149-- Detecting C compiler ABI info - failed
150-- Check for working C compiler: TOPDIR/tmp-glibc/work/core2-64-foo-linux/compiler-rt/12.0.0-r0/recipe-sysroot-native/usr/bin/x86_64-foo-linux/x86_64-foo-linux-clang
151-- Check for working C compiler: TOPDIR/tmp-glibc/work/core2-64-foo-linux/compiler-rt/12.0.0-r0/recipe-sysroot-native/usr/bin/x86_64-foo-linux/x86_64-foo-linux-clang - broken
152CMake Error at TOPDIR/tmp-glibc/work/core2-64-foo-linux/compiler-rt/12.0.0-r0/recipe-sysroot-native/usr/share/cmake-3.19/Modules/CMakeTestCCompiler.cmake:66 (message):
153 The C compiler
154
155 "TOPDIR/tmp-glibc/work/core2-64-foo-linux/compiler-rt/12.0.0-r0/recipe-sysroot-native/usr/bin/x86_64-foo-linux/x86_64-foo-linux-clang"
156
157 is not able to compile a simple test program.
158
159 It fails with the following output:
160
161 Change Dir: TOPDIR/tmp-glibc/work/core2-64-foo-linux/compiler-rt/12.0.0-r0/build/CMakeFiles/CMakeTmp
162
163 Run Build Command(s):ninja cmTC_928f4 && [1/2] Building C object CMakeFiles/cmTC_928f4.dir/testCCompiler.c.o
164 [2/2] Linking C executable cmTC_928f4
165```
166
133# Dependencies 167# Dependencies
134 168
135```shell 169```shell