| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
This helps during cross-compile as new clang expects this to be set or
else it deduces it and that deduction can go wrong.
See commit 395271ad11b8c233db1a4e0e6a76aa52e93e5aec in clang repo
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
clang master/13.x has started segfaulting while building mesa, until it
is fixed upstream lets switch to using gcc for mesa
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
This flag is no longer needed with latest clang-13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
After enable multilib, libdir is /usr/lib64, but in llvm's
CMakelist.txt, the install path is hardcode as /usr/lib
eg:
${CMAKE_BINARY_DIR}/lib/libscanbuild/resources/${resource}
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
|
|
|
|
|
|
| |
integrated assembler crashes latest clang on aarch64, so lets disable it
for now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
| |
other recipe like intel-graphics-compiler, config failed with
below error:
[IGC] Could not find the LLVM dylib. Aborting.
with a suffix in library name make other recipe cannot found it.
Backport a patch from 12.0.0 to fix this.
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
|
|
|
|
|
|
|
| |
Use libgcc with clang-native to compile it
Fixes #465
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Package new content for scanbuild and libear
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
The trailing slash caused the mirror name endswith a dot which looks strange:
github.com.KhronosGroup.SPIRV-LLVM-Translator.
The slash is not needed, so remove it.
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Changqing Li <changqing.li@windriver.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
clang segfaults while processing .S files
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Drop 0024-compiler-rt-Include-stddef.h.patch its accepted upstream
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
toString implementation has changed in LLVM
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
Fix compiler-rt build on armv6 reported in
https://github.com/YoeDistro/yoe-distro/issues/555
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
This has been removed see
https://reviews.llvm.org/D103048
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
klibc does not provide libssp functions e.g. __stack_chk_guard and
__stack_chk_guard which it expects from libc and compiler-rt code tend
to use these functions, so when using compiler-rt it ends up with
undefined symbols e.g.
/usr/lib/clang/13.0.0/lib/linux/libclang_rt.builtins-armhf.a(divmoddi4.c.o): in function `__divmoddi4':
divmoddi4.c:(.text+0x70): undefined reference to `__stack_chk_fail'
arm-yoe-linux-gnueabi-ld.bfd: divmoddi4.c:(.text+0x74): undefined reference to `__stack_chk_guard'
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
these packages do static linking in parts and when libc is glibc then it
has linked in some portions of libgcc since we can not use clang to
compile glibc yet. Therefore use libgcc where needed for now
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
clang 13 does not like to mix rtlib and unwindlib when using libgcc
Fixes
clang-13: error: --rtlib=libgcc requires --unwindlib=libgcc
secondly compiler-rt does not havw 128 bit ( tf ) functions
on x86 so fallback to libgcc for those
use libatomic for x86 since 64bit atomics are not in compiler-rt
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
llvm unwind can work on rv32 and rv64 with latest clang so open up that
option
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
| |
clang13 has a regression which segfaults the compiler while compiling
poke, its reported upstream, until it is fixed do not use -O2 compiler
switch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
The defaults wirh using RUNTIME = "llvm" is already pointing to
compiler-rt there is no need to clutter cmdline
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
| |
Fixes linker errors like
src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4'
src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4'
src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4'
src/mongo/platform/overflow_arithmetic.h:63: error: undefined reference to '__mulodi4'
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
mongodb builds fine with latest clang/13.0.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
In order to use latest clang, latest bcc sources are needed, this also
means that we need to use vendored libbpf as thats the newest one needed
and avoids dependencies on kernel bpf headers which maybe old and out of
sync
examples use error.h header which is not available on musl therefore
disable examples when building on musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
We want to use llvm libunwind implementation when RUNTIME = "llvm"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
This helps in ensuring it pose as RPROVIDES when llvm runtime is used
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
This ensures it can replace nongnu libunwind
Use it only when selecting RUNTIME = "llvm"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
RUNTIME=llvm means we use libc++ instead of libstdc++ among other things
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
since toolchain-clang maybe available for native as well now, it means
we have to ensure we do not use it for native recipes _yet_
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
Since clang maybe configured to use llvm runtime, we need to ensure to
use gnu runtime in native builds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
| |
Avoids conflicts with libunwind recipe from OE-Core
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Now that clang can pass right options automatically when RUNTIME =
"llvm", adjust the variables e.g. COMPILER_RT/UNWINDLIB/LIBCPLUSPLUS are
no more required to be defaulted
Disable enforcing gcc runtime for packages using gcc as its no longer
needed here but is taken care by RUNTIME variable as an aside it also
helps in building native and nativesdk llvm runtimes
Compute right dependencies based on selected RUNTIME along with
COMPILER_RT/UNWINDLIB/LIBCPLUSPLUS variables
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
| |
ensure that libcxx can be built when RUNTIME = "llvm" as it might need
to pass some cmake compiler tests
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sanitizers can link libc++/libc++abi statically or dynamically, we
default to use dynamic version but leave the option to enable static
linking if so needed
Use virtual/crypt to represent crypt implementation which becomes libc
independent
Fix dependencies for native recipes
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
| |
while compiler-rt may not use any of these libraries, but the cmake
environment pokes for working compiler, linker and other tools, this
ensures that it can build when RUNTIME = "llvm" and also RUNTIME =
"gnu"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
This ensures that compiler defaults are defaulting to llvm provided
c/c++ runtimes which includes c-runtime, c++runtime, unwinder and omp
runtime, current approach is to inject commandline options but it does
not get passed in all cases and a lot of smaller/big patches are used to
make such package recipes behave
If RUNTIME = "gnu" then defaults stay to use gcc runtime as it is
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
|
|
| |
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|