Displaying 20 results from an estimated 20 matches for "lclang_rt".
Did you mean:
clang_rt
2014 Feb 05
2
[LLVMdev] Using Compiler-RT with Clang on ARM
Hi Daniel,
I'm trying to use the feature you added to Clang a long time ago (2011),
the --rtlib=compiler-rt and it doesn't seem to do anything.
Now that I have compiler-rt building on ARM and the archive libraries under
/lib, I'd like to replace -lgcc with -lclang_rt, but this command line:
$ clang --rtlib=compiler-rt -Wl,-lclang_rt foo.c
Gives me the warning/errors:
clang-3.5: warning: argument unused during compilation:
'--rtlib=compiler-rt'
/usr/bin/ld: error: cannot find -lclang_rt
The library path for compiler-rt is missing and -lgcc is still th...
2017 Jun 04
2
building llvm_Rel400 on Scientific Linux (RHEL) 7.3 x86_64
...add_compiler_rt_test(XRayUnitTests ${testname}
45 OBJECTS ${TEST_OBJECTS}
46 DEPS ${TEST_DEPS}
47 LINK_FLAGS ${TARGET_LINK_FLAGS}
48 -lstdc++ -lm ${CMAKE_THREAD_LIBS_INIT}
49 -lpthread
50 -L${COMPILER_RT_LIBRARY_OUTPUT_DIR} -lclang_rt.xray-fdr-${arch})
51 endif()
2016 Jul 11
2
LibC++ failure on ARM
...n:
http://llvm.org/viewvc/llvm-project?view=revision&revision=274747
and the only thing I can think could have caused it is the change in
librry order:
- lit_extra_opts={'link_flags': '"-lc++abi -lc -lm
-lpthread -lunwind -ldl -L/opt/llvm/lib/clang/3.6.0/lib/linux
-lclang_rt.builtins-arm"'},
+ lit_extra_opts={'link_flags': '"-lc++abi -lpthread
-lunwind -ldl -lc -lm -L/opt/llvm/lib/clang/3.6.0/lib/linux
-lclang_rt.builtins-arm"'},
Any ideas?
cheers,
-renato
2020 Sep 14
2
Cross compiling for ARMv7-m
...39;t find that library
> > in my build directory) I tried building it from LLVM source.
>
> You can take these from an arm-none-eabi toolchain. The GCC equivalent of clang_rt.builtins-arm.a is libgcc.a, one way to use these with clang is use one of the options that suppress -lc -lm and -lclang_rt.builtins-arm.a I think either --nostdlib or --nodefaultlibs will do that. You'll need to tell clang where to find these in your arm-none-eabi toolchain.
>
> > To generate the library, I tried generating builtins by following the guide at:
> > https://llvm.org/docs/HowToCrossCompi...
2017 Oct 31
3
Cross compiling for Baremetal ARM without using GCC
...LEASE_500/final)
Target: armv6m-none--eabi
Thread model: single
InstalledDir: clang+llvm-5.0.0-linux-x86_64-ubuntu16.04/bin
"clang+llvm-5.0.0-linux-x86_64-ubuntu16.04/bin/ld.lld" main.o a.o reset.o -Bstatic -Lclang+llvm-5.0.0-linux-x86_64-ubuntu16.04/lib/clang/5.0.0/lib/baremetal -lc -lm -lclang_rt.builtins-armv6m.a -o main
clang+llvm-5.0.0-linux-x86_64-ubuntu16.04/bin/ld.lld: error: unable to find library -lc
clang+llvm-5.0.0-linux-x86_64-ubuntu16.04/bin/ld.lld: error: unable to find library -lm
clang+llvm-5.0.0-linux-x86_64-ubuntu16.04/bin/ld.lld: error: unable to find library -lclang_rt.bu...
2020 Feb 26
2
Cross compiling for ARMv7-m
...nd these libraries.
./bin/clang++ -target arm-none-eabi -mcpu=cortex-m4 ./temp.cpp -L
./lib/ -L ./libexec/ -L ../build3_v7m/lib/
ld.lld: error: unable to find library -lunwind
ld.lld: error: unable to find library -lc
ld.lld: error: unable to find library -lm
ld.lld: error: unable to find library -lclang_rt.builtins-arm.a
I am guessing I can borrow libraries such as lc and lm from GCC
arm-none-eabi*, but for clang_rt.builtins-arm.a (which I thought
should've been built with LLVM build but I couldn't find that library
in my build directory) I tried building it from LLVM source.
To generate t...
2017 Jun 03
2
building llvm_Rel400 on Scientific Linux (RHEL) 7.3 x86_64
...er_queue_test.cc.x86_64.o xray_unit_test_main.cc.x86_64.o gtest-all.cc.x86_64.o -o /home/hanzer/build/build_llvm/projects/compiler-rt/lib/xray/tests/unit/XRayBufferQueueTest -Wl,-allow-shlib-undefined -m64 -lstdc++ -lm -lpthread -lpthread -L/home/hanzer/build/build_llvm/./lib/clang/4.0.0/lib/linux -lclang_rt.xray-fdr-x86_64
FAILED: projects/compiler-rt/lib/xray/tests/unit/CMakeFiles/XRayBufferQueueTest
cd /home/hanzer/build/build_llvm/projects/compiler-rt/lib/xray/tests/unit && /home/hanzer/build/build_llvm/./bin/clang buffer_queue_test.cc.x86_64.o xray_unit_test_main.cc.x86_64.o gtest-all.cc....
2017 Feb 16
3
Linker error with XRay & GCC/libstdc++ 6.1
...v/llvm/build/clang/debug/split/notypes/nostandalone/projects/compiler-rt/lib/xray/tests/unit/XRayFDRLoggingTest-x86_64
-Wl,-allow-shlib-undefined -m64 -lstdc++ -lm -lpthread -lpthread
-L/usr/local/google/home/blaikie/dev/llvm/build/clang/debug/split/notypes/nostandalone/./lib/clang/5.0.0/lib/linux
-lclang_rt.xray-x86_64 -latomic -ldl -lrt
/usr/local/google/home/blaikie/install/bin/../lib/gcc/x86_64-pc-linux-gnu/6.1.0/../../../../include/c++/6.1.0/system_error:197:
error: undefined reference to 'std::_V2::generic_category()'
/usr/local/google/home/blaikie/install/bin/../lib/gcc/x86_64-pc-linux-g...
2012 Oct 10
0
[LLVMdev] Solicit code review (change to CodeGen)
LGTM.
I will commit.
On Oct 10, 2012, at 1:20 PM, Shuxin Yang <shuxin.llvm at gmail.com> wrote:
> Hi,
>
> The attached is the fix to radar://11663049. The optimization can be outlined by following rules:
>
> (select (x != c), e, c) -> select (x != c), e, x),
> (select (x == c), c, e) -> select (x == c), x, e)
> where the <c> is an integer
2019 Mar 11
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...ntain the
instructions that you are looking for.
Unfortunately it looks like the runtimes method does not produce the
library names that match what the driver is expecting:
For example with --target=armv7m-none-eabi I get with -v
-L/path/to/my/clang/build/dir/lib/clang/9.0.0/lib/baremetal -lc -lm
-lclang_rt.builtins-armv7m.a
I suggest renaming the files when copying them to the
/path/to/my/clang/build/dir/lib/clang/9.0.0/lib/baremetal dir.
libclang_rt.builtins-armv6m.a
libclang_rt.builtins-armv7m.a
libclang_rt.builtins-armv7em.a
When I build the builtins using the standalone build then I get the
cor...
2019 Mar 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello Christian,
I'd expect that adding the library paths (-L) from gcc -v should fix
the unable to find -lc, -lm but it won't fix the
-lclang_rt.builtins-armv6m.a . To get clang_rt.builtins-armv6m.a you
will need to cross compile compiler-rt for v6m and copy it to
/usr/local/myclang/lib/clang/8.0.0/lib/baremetal . Beware that
building compiler-rt for v6m does need quite a bit of fighting cmake
(https://llvm.org/docs/HowToCrossCompileBuiltin...
2019 Feb 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...onsisting of barehelloCLANG.c and a small io.h + io.c) , but the
> linking part of the compilation resulted in this:
>
> root at christian-forschung-virtual-machine:/home/progs# clang -v
> --target=armv6-none-eabi -L
> /home/llvm_all/buildrecipe/lib/clang/8.0.0/armv6m-none-eabi
> -lclang_rt.builtins.arm barehelloCLANG.o io.o -o helloCLANGstatic
> -static -fuse-ld=lld
> clang version 8.0.0 (https://git.llvm.org/git/clang.git/
> a152c7a4b7ba8f4cb9532ead9a38a7121db43d50)
> (https://git.llvm.org/git/llvm.git/
> 1959ce6f3e01241919968ac1911fd45660239d23)
> Target: armv6-no...
2012 Oct 10
2
[LLVMdev] Solicit code review (change to CodeGen)
Hi,
The attached is the fix to radar://11663049. The optimization can be
outlined by following rules:
(select (x != c), e, c) -> select (x != c), e, x),
(select (x == c), c, e) -> select (x == c), x, e)
where the <c> is an integer constant.
The reason for this change is that : on x86,
conditional-move-from-constant needs two instructions;
however,
2015 Sep 10
2
LibFuzzer and platforms availability
r247321 refactors the code so that it should build on Mac.
I haven't actually tested it on Mac -- so please help me and send follow up
patches if needed.
check-fuzzer will still fail because some of the libFuzzer tests require
dfsan.
I'd use some help from someone with a Mac to modify
lib/Fuzzer/test/CMakeLists.txt so that it does not run dfsan-dependent
tests on Mac.
Thanks,
--kcc
On
2018 Dec 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...://git.llvm.org/git/llvm.git/
1959ce6f3e01241919968ac1911fd45660239d23)
Target: arm-none-unknown-eabi
Thread model: posix
InstalledDir: /usr/local/my_clang/bin
"/usr/local/my_clang/bin/ld.lld" barehelloCLANG.o io.o -Bstatic
-L/usr/local/my_clang/lib/clang/8.0.0/lib/baremetal -lc -lm
-lclang_rt.builtins-arm.a -o helloCLANGstatic
ld.lld: error: unable to find library -lc
ld.lld: error: unable to find library -lm
ld.lld: error: unable to find library -lclang_rt.builtins-arm.a
clang-8: error: ld.lld command failed with exit code 1 (use -v to see
invocation)
on the linking part. I downloade...
2016 Jul 18
0
memory leak in split.screen
...l8.5/tclConfig.sh
--with-tk-config=/usr/lib/tk8.5/tkConfig.sh CFLAGS="-fsanitize=address
-fsanitize=undefined -fno-sanitize=float-divide-by-zero,vptr "
CXXFLAGS="-fsanitize=address -fsanitize=undefined
-fno-sanitize=float-divide-by-zero,vptr " LD_FLAGS="-pthread
-fopenmp-lclang_rt.asan_cxx-x86_64 -fopenmp=libgomp" CC="clang-3.8
-fsanitize=address -fsanitize=undefined
-fno-sanitize=float-divide-by-zero,vptr" CXX="clang++-3.8
-fsanitize=address -fsanitize=undefined
-fno-sanitize=float-divide-by-zero,vptr"
## I get in the interactive mode of R for
n...
2018 Dec 14
3
Compiling for baremetal ARMv4 on Ubuntu Linux
...fd45660239d23)
> > Target: arm-none-unknown-eabi
> > Thread model: posix
> > InstalledDir: /usr/local/my_clang/bin
> > "/usr/local/my_clang/bin/ld.lld" barehelloCLANG.o io.o -Bstatic
> > -L/usr/local/my_clang/lib/clang/8.0.0/lib/baremetal -lc -lm
> > -lclang_rt.builtins-arm.a -o helloCLANGstatic
> > ld.lld: error: unable to find library -lc
> > ld.lld: error: unable to find library -lm
> > ld.lld: error: unable to find library -lclang_rt.builtins-arm.a
> > clang-8: error: ld.lld command failed with exit code 1 (use -v to see
> &...
2018 Dec 07
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...ac1911fd45660239d23)
> Target: arm-none-unknown-eabi
> Thread model: posix
> InstalledDir: /usr/local/my_clang/bin
> "/usr/local/my_clang/bin/ld.lld" barehelloCLANG.o io.o -Bstatic
> -L/usr/local/my_clang/lib/clang/8.0.0/lib/baremetal -lc -lm
> -lclang_rt.builtins-arm.a -o helloCLANGstatic
> ld.lld: error: unable to find library -lc
> ld.lld: error: unable to find library -lm
> ld.lld: error: unable to find library -lclang_rt.builtins-arm.a
> clang-8: error: ld.lld command failed with exit code 1 (use -v to see
> i...
2018 Dec 10
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...>> Target: arm-none-unknown-eabi
>>> Thread model: posix
>>> InstalledDir: /usr/local/my_clang/bin
>>> "/usr/local/my_clang/bin/ld.lld" barehelloCLANG.o io.o -Bstatic
>>> -L/usr/local/my_clang/lib/clang/8.0.0/lib/baremetal -lc -lm
>>> -lclang_rt.builtins-arm.a -o helloCLANGstatic
>>> ld.lld: error: unable to find library -lc
>>> ld.lld: error: unable to find library -lm
>>> ld.lld: error: unable to find library -lclang_rt.builtins-arm.a
>>> clang-8: error: ld.lld command failed with exit code 1 (use -v t...
2018 Dec 13
2
Compiling for baremetal ARMv4 on Ubuntu Linux
...c1911fd45660239d23)
>> Target: arm-none-unknown-eabi
>> Thread model: posix
>> InstalledDir: /usr/local/my_clang/bin
>> "/usr/local/my_clang/bin/ld.lld" barehelloCLANG.o io.o -Bstatic
>> -L/usr/local/my_clang/lib/clang/8.0.0/lib/baremetal -lc -lm
>> -lclang_rt.builtins-arm.a -o helloCLANGstatic
>> ld.lld: error: unable to find library -lc
>> ld.lld: error: unable to find library -lm
>> ld.lld: error: unable to find library -lclang_rt.builtins-arm.a
>> clang-8: error: ld.lld command failed with exit code 1 (use -v to see
>> i...