diff options
-rw-r--r-- | classes/clang.bbclass | 6 | ||||
-rw-r--r-- | conf/nonclangable.conf | 52 |
2 files changed, 29 insertions, 29 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index d6a7fe8..a56084d 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
@@ -13,8 +13,8 @@ LTO_toolchain-clang = "${@bb.utils.contains('DISTRO_FEATURES', 'thin-lto', '-flt | |||
13 | PACKAGE_DEBUG_SPLIT_STYLE_toolchain-clang = "debug-without-src" | 13 | PACKAGE_DEBUG_SPLIT_STYLE_toolchain-clang = "debug-without-src" |
14 | 14 | ||
15 | COMPILER_RT ??= "${@bb.utils.contains("RUNTIME", "llvm", "-rtlib=compiler-rt ${UNWINDLIB}", "", d)}" | 15 | COMPILER_RT ??= "${@bb.utils.contains("RUNTIME", "llvm", "-rtlib=compiler-rt ${UNWINDLIB}", "", d)}" |
16 | COMPILER_RT_powerpc = "--rtlib=libgcc ${UNWINDLIB}" | 16 | COMPILER_RT_powerpc = "-rtlib=libgcc ${UNWINDLIB}" |
17 | COMPILER_RT_armeb = "--rtlib=libgcc ${UNWINDLIB}" | 17 | COMPILER_RT_armeb = "-rtlib=libgcc ${UNWINDLIB}" |
18 | 18 | ||
19 | UNWINDLIB ??= "${@bb.utils.contains("RUNTIME", "llvm", "--unwindlib=libgcc", "", d)}" | 19 | UNWINDLIB ??= "${@bb.utils.contains("RUNTIME", "llvm", "--unwindlib=libgcc", "", d)}" |
20 | UNWINDLIB_riscv64 = "--unwindlib=libgcc" | 20 | UNWINDLIB_riscv64 = "--unwindlib=libgcc" |
@@ -89,7 +89,7 @@ def clang_base_deps(d): | |||
89 | if not d.getVar('INHIBIT_DEFAULT_DEPS', False): | 89 | if not d.getVar('INHIBIT_DEFAULT_DEPS', False): |
90 | if not oe.utils.inherits(d, 'allarch') : | 90 | if not oe.utils.inherits(d, 'allarch') : |
91 | ret = " clang-cross-${TARGET_ARCH} virtual/libc " | 91 | ret = " clang-cross-${TARGET_ARCH} virtual/libc " |
92 | if (d.getVar('COMPILER_RT').find('--rtlib=compiler-rt') != -1): | 92 | if (d.getVar('COMPILER_RT').find('-rtlib=compiler-rt') != -1): |
93 | ret += " compiler-rt " | 93 | ret += " compiler-rt " |
94 | else: | 94 | else: |
95 | ret += " libgcc " | 95 | ret += " libgcc " |
diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index f889df2..b174603 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf | |||
@@ -271,24 +271,24 @@ TUNE_CCARGS_remove_pn-pulseaudio_toolchain-clang = "-Qunused-arguments" | |||
271 | 271 | ||
272 | #| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4' | 272 | #| /usr/src/debug/ruby/2.5.1-r0/build/../ruby-2.5.1/process.c:7073: undefined reference to `__mulodi4' |
273 | #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) | 273 | #| clang-7: error: linker command failed with exit code 1 (use -v to see invocation) |
274 | COMPILER_RT_pn-ruby_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" | 274 | COMPILER_RT_pn-ruby_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}" |
275 | COMPILER_RT_pn-python3_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" | 275 | COMPILER_RT_pn-python3_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}" |
276 | COMPILER_RT_pn-m4_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" | 276 | COMPILER_RT_pn-m4_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}" |
277 | COMPILER_RT_pn-cpio_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" | 277 | COMPILER_RT_pn-cpio_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}" |
278 | COMPILER_RT_pn-openssh_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" | 278 | COMPILER_RT_pn-openssh_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}" |
279 | COMPILER_RT_pn-webkitgtk_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" | 279 | COMPILER_RT_pn-webkitgtk_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}" |
280 | COMPILER_RT_pn-wpewebkit_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" | 280 | COMPILER_RT_pn-wpewebkit_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}" |
281 | COMPILER_RT_pn-python3-numpy_toolchain-clang = "--rtlib=compiler-rt ${UNWINDLIB}" | 281 | COMPILER_RT_pn-python3-numpy_toolchain-clang = "-rtlib=compiler-rt ${UNWINDLIB}" |
282 | COMPILER_RT_remove_pn-m4_powerpc = "--rtlib=compiler-rt" | 282 | COMPILER_RT_remove_pn-m4_powerpc = "-rtlib=compiler-rt" |
283 | COMPILER_RT_remove_pn-ruby_powerpc = "--rtlib=compiler-rt" | 283 | COMPILER_RT_remove_pn-ruby_powerpc = "-rtlib=compiler-rt" |
284 | COMPILER_RT_remove_pn-webkitgtk_powerpc = "--rtlib=compiler-rt" | 284 | COMPILER_RT_remove_pn-webkitgtk_powerpc = "-rtlib=compiler-rt" |
285 | COMPILER_RT_remove_pn-m4_armeb = "--rtlib=compiler-rt" | 285 | COMPILER_RT_remove_pn-m4_armeb = "-rtlib=compiler-rt" |
286 | COMPILER_RT_remove_pn-ruby_armeb = "--rtlib=compiler-rt" | 286 | COMPILER_RT_remove_pn-ruby_armeb = "-rtlib=compiler-rt" |
287 | COMPILER_RT_remove_pn-webkitgtk_armeb = "--rtlib=compiler-rt" | 287 | COMPILER_RT_remove_pn-webkitgtk_armeb = "-rtlib=compiler-rt" |
288 | 288 | ||
289 | # build/lib/libQt5Widgets.so: undefined reference to `__lshrti3' | 289 | # build/lib/libQt5Widgets.so: undefined reference to `__lshrti3' |
290 | # __lshrti3 is missing in libgcc | 290 | # __lshrti3 is missing in libgcc |
291 | COMPILER_RT_pn-qtbase_toolchain-clang_riscv32 = "--rtlib=compiler-rt ${UNWINDLIB}" | 291 | COMPILER_RT_pn-qtbase_toolchain-clang_riscv32 = "-rtlib=compiler-rt ${UNWINDLIB}" |
292 | 292 | ||
293 | LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" | 293 | LDFLAGS_append_pn-gnutls_toolchain-clang_riscv64 = " -latomic" |
294 | LDFLAGS_append_pn-harfbuzz_toolchain-clang_riscv64 = " -latomic" | 294 | LDFLAGS_append_pn-harfbuzz_toolchain-clang_riscv64 = " -latomic" |
@@ -298,21 +298,21 @@ LDFLAGS_append_pn-qemu_toolchain-clang_runtime-gnu_x86 = " -latomic" | |||
298 | # glibc is built with gcc and hence encodes some libgcc specific builtins which are not found | 298 | # glibc is built with gcc and hence encodes some libgcc specific builtins which are not found |
299 | # when doing static linking with clang using compiler-rt, so use libgcc | 299 | # when doing static linking with clang using compiler-rt, so use libgcc |
300 | # undefined reference to `__unordtf2' | 300 | # undefined reference to `__unordtf2' |
301 | COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" | 301 | COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86 = "-rtlib=libgcc" |
302 | COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" | 302 | COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86 = "-rtlib=libgcc" |
303 | COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" | 303 | COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86 = "-rtlib=libgcc" |
304 | COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86 = "--rtlib=libgcc" | 304 | COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86 = "-rtlib=libgcc" |
305 | COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86-64 = "--rtlib=libgcc" | 305 | COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_x86-64 = "-rtlib=libgcc" |
306 | COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86-64 = "--rtlib=libgcc" | 306 | COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_x86-64 = "-rtlib=libgcc" |
307 | COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86-64 = "--rtlib=libgcc" | 307 | COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_x86-64 = "-rtlib=libgcc" |
308 | COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86-64 = "--rtlib=libgcc" | 308 | COMPILER_RT_pn-tsocks_libc-glibc_toolchain-clang_x86-64 = "-rtlib=libgcc" |
309 | 309 | ||
310 | #(unwind.o): in function `__pthread_unwind': | 310 | #(unwind.o): in function `__pthread_unwind': |
311 | #/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' | 311 | #/usr/src/debug/glibc/2.29-r0/git/nptl/unwind.c:121: undefined reference to `_Unwind_ForcedUnwind' |
312 | #clang-8: error: linker command failed with exit code 1 (use -v to see invocation) | 312 | #clang-8: error: linker command failed with exit code 1 (use -v to see invocation) |
313 | COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_arm = "--rtlib=libgcc" | 313 | COMPILER_RT_pn-libc-bench_libc-glibc_toolchain-clang_arm = "-rtlib=libgcc" |
314 | COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_arm = "--rtlib=libgcc" | 314 | COMPILER_RT_pn-aufs-util_libc-glibc_toolchain-clang_arm = "-rtlib=libgcc" |
315 | COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_arm = "--rtlib=libgcc" | 315 | COMPILER_RT_pn-libhugetlbfs_libc-glibc_toolchain-clang_arm = "-rtlib=libgcc" |
316 | 316 | ||
317 | # Uses gcc for native tools, e.g. nsinstall and passes clang options which fails so | 317 | # Uses gcc for native tools, e.g. nsinstall and passes clang options which fails so |
318 | # let same compiler ( gcc or clang) be native/cross compiler | 318 | # let same compiler ( gcc or clang) be native/cross compiler |