diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2025-12-12 08:41:51 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2025-12-12 09:35:33 -0800 |
| commit | 5273483a8af5dbdf4fdd23b6535bd6e68d0ba2b4 (patch) | |
| tree | a7fbb785235cce9df6de41c66b591db4434a4189 | |
| parent | 889258576e90470c05db820dfcf0effc56d267dd (diff) | |
| download | meta-clang-5273483a8af5dbdf4fdd23b6535bd6e68d0ba2b4.tar.gz | |
README.md: drop section about compiler-rt
compiler-rt recipe is now in oe-core and the described issue doesn't
happen anymore.
Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
| -rw-r--r-- | README.md | 34 |
1 files changed, 0 insertions, 34 deletions
| @@ -185,40 +185,6 @@ CXXFLAGS:append:pn-<recipe>:toolchain-clang = " -stdlib=libstdc++ " | |||
| 185 | LDFLAGS:append:pn-<recipe>:toolchain-clang = " -stdlib=libstdc++ " | 185 | LDFLAGS:append:pn-<recipe>:toolchain-clang = " -stdlib=libstdc++ " |
| 186 | ``` | 186 | ``` |
| 187 | 187 | ||
| 188 | # compiler-rt failing in do_configure with custom TARGET_VENDOR | ||
| 189 | |||
| 190 | If your DISTRO sets its own value of TARGET_VENDOR, then it needs to be added in | ||
| 191 | CLANG_EXTRA_OE_VENDORS, it should be done automatically, but if compiler-rt fails | ||
| 192 | like bellow, then check the end of work-shared/llvm-project-source-12.0.0-r0/temp/log.do_patch | ||
| 193 | it should have a line like: | ||
| 194 | NOTE: Adding support following TARGET_VENDOR values: foo in | ||
| 195 | /OE/build/oe-core/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/llvm/lib/Support/Triple.cpp and | ||
| 196 | /OE/build/oe-core/tmp-glibc/work-shared/llvm-project-source-12.0.0-r0/git/clang/lib/Driver/ToolChains/Gnu.cpp | ||
| 197 | and check these files if //CLANG_EXTRA_OE_VENDORS* strings were replaced correctly. | ||
| 198 | Read add_distro_vendor function in recipes-devtools/clang/llvm-project-source.inc for more details. | ||
| 199 | |||
| 200 | http://errors.yoctoproject.org/Errors/Details/574365/ | ||
| 201 | ```shell | ||
| 202 | -- 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 | ||
| 203 | -- Detecting C compiler ABI info | ||
| 204 | -- Detecting C compiler ABI info - failed | ||
| 205 | -- 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 | ||
| 206 | -- 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 | ||
| 207 | CMake 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): | ||
| 208 | The C compiler | ||
| 209 | |||
| 210 | "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" | ||
| 211 | |||
| 212 | is not able to compile a simple test program. | ||
| 213 | |||
| 214 | It fails with the following output: | ||
| 215 | |||
| 216 | Change Dir: TOPDIR/tmp-glibc/work/core2-64-foo-linux/compiler-rt/12.0.0-r0/build/CMakeFiles/CMakeTmp | ||
| 217 | |||
| 218 | Run Build Command(s):ninja cmTC_928f4 && [1/2] Building C object CMakeFiles/cmTC_928f4.dir/testCCompiler.c.o | ||
| 219 | [2/2] Linking C executable cmTC_928f4 | ||
| 220 | ``` | ||
| 221 | |||
| 222 | # Dependencies | 188 | # Dependencies |
| 223 | 189 | ||
| 224 | ```shell | 190 | ```shell |
