Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] llvm compilation of libc?"
2011 Jun 23
0
[LLVMdev] llvm compilation of libc?
I would recommend Newlib. It's easy to configure and compile using Clang.
http://sourceware.org/newlib/
- xi
On Jun 23, 2011, at 2:07 AM, Gregory Malecha wrote:
> Hello,
>
> I'm wondering if anyone had any success (even a small amount) compiling any variant of libc to llvm bitcode?
>
> --
> gregory malecha
> _______________________________________________
>
2011 Jun 23
1
[LLVMdev] llvm compilation of libc?
Hi Xi,
How did you compile it with clang? I ran into problems:
clang -emit-llvm -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
-DPACKAGE_VERSION=\"1.19.0\" -DPACKAGE_STRING=\"newlib\ 1.19.0\"
-DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -DMISSING_SYSCALL_NAMES
-fno-builtin -DMISSING_SYSCALL_NAMES -fno-builtin -O2 -c -o
2010 Jan 18
0
[LLVMdev] LLVM-gcc for ARM
> What I am supposed to do next? you said that I have to recompile binutils with --with-sysroot option?
It is not an extra step. You have to add --with-sysroot to step 1.
> Thank you.
Cheers,
--
Rafael Ávila de Espíndola
2018 Dec 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
I am currently trying to compile a pretty simple program to work on an
experimental board. It contains an (FPGA-version of) an ARMv4 processor.
So basically, I try this (on my Ubuntu 18.04.1 LTS):
clang -v --target=arm-none-eabi -c barehello.c -o barehelloCLANG.o
clang -v --target=arm-none-eabi -c io.c -o io.o
clang -v --target=arm-none-eabi barehelloCLANG.o io.o -o
helloCLANGstatic -static
2010 Jan 18
2
[LLVMdev] LLVM-gcc for ARM
hi,
So...
I followed the following steps in order to compile the llvm-gcc frontend. The single problem is that mentioned in the previous message:
llvm-gcc HelloWorld.c
/home/LLVM/install/lib/gcc/arm-elf/4.2.1/../../../../arm-elf/bin/ld: this linker was not configured to use sysroots
collect2: ld returned 1 exit status
1. I have compiled the binutils for the arm-none-eabi target. Options:
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
2011 Jul 15
2
[LLVMdev] Makefile Question
I thought it would, but it seems to be missing the CloneModule symbol (which
isn't called from anywhere in the LLVM codebase).
On Fri, Jul 15, 2011 at 7:43 AM, John Criswell <criswell at illinois.edu>wrote:
> On 7/14/11 7:36 PM, Gregory Malecha wrote:
>
> Hello,
>
> I have a question about how to set up a Makefile that generate a .so that I
> can load into opt
2019 Feb 04
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello Christian,
I've put some comments inline,
On Sun, 3 Feb 2019 at 13:11, Christian Richter
<christian.richter at hsu-hh.de> wrote:
>
> Hello again,
>
> so after I successfully build the compiler-rt for armv6 I tried to
> actually use it in compiling a small helloworld for a baremetal arm
> (consisting of barehelloCLANG.c and a small io.h + io.c) , but the
>
2019 Mar 11
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello Christian,
I reran my script with a similar cmake command to yours. After the
build finished the following command from the build directory gave me:
find . -name \*builtins.a
./lib/clang/9.0.0/armv6m-none-eabi/lib/libclang_rt.builtins.a
./lib/clang/9.0.0/armv7m-none-eabi/lib/libclang_rt.builtins.a
./lib/clang/9.0.0/armv7em-none-eabi/lib/libclang_rt.builtins.a
I hope you see something like
2011 Jul 15
0
[LLVMdev] Makefile Question
Hi Gregory,
I had a similar problem a while back, see:
http://lists.cs.uiuc.edu/pipermail/llvmdev/2010-June/032508.html for
my solution to this problem.
Basically I ended up linking in the *.o files needed to get exactly
what I needed (in your case, the file defining CloneModule and
whatever else you need), without pulling in too much (causing
duplicate symbol issues with opt).
Hopefully this
2011 Jul 15
2
[LLVMdev] Makefile Question
Hello,
I have a question about how to set up a Makefile that generate a .so that I
can load into opt without getting duplicate symbols. Here's what I have
right now:
LIBRARYNAME=previrt
SHARED_LIBRARY=previrt
LINK_COMPONENTS := transformUtils
LINK_LIBS_IN_SHARED=1
include $(LEVEL)/Makefile.common
LIBS += -lprotobuf
CPPFLAGS += -I${HOME}/.root/usr/include -DGOOGLE_PROTOBUF_NO_RTTI
LDFLAGS
2018 Dec 14
3
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello again Christian,
I've posted https://reviews.llvm.org/D55709 to see if we can get the
documentation on how to cross-compile compiler-rt improved. I'll be
out of office until next year so I may be a bit slow to respond to any
follow ups.
Peter
On Thu, 13 Dec 2018 at 17:10, Peter Smith <peter.smith at linaro.org> wrote:
>
> Hello Christian,
>
> I've just
2018 Dec 07
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello,
on the problems cross-building compiler-rt: Tried to follow
https://llvm.org/docs/HowToCrossCompileBuiltinsOnArm.html which lead to
this cmake:
cmake -G "Ninja" ../llvm/projects/compiler-rt/
-DCOMPILER_RT_BUILD_BUILTINS=ON -DCOMPILER_RT_BUILD_SANITIZERS=OFF
-DCOMPILER_RT_BUILD_XRAY=OFF -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
-DCOMPILER_RT_BUILD_PROFILE=OFF
2011 Jun 30
2
[LLVMdev] clang -emit-llvm uses system ld
Hi Rafael,
I've tried the LTO options with dragonegg, but I haven't had any luck
getting it to work, I'm not sure if it is related to my installation of gold
or my gcc configuration.
I'm really interested in getting the resulting program as bitcode though.
Will LTO do that for me? What I'm trying to do is build a bitcode version of
libc that I can combine with a program and
2018 Dec 10
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello again!
Tried out the small Hello World Setup, worked as intended:
root at christian-forschung-virtual-machine:/home/progs# clang -v
--target=arm-linux-gnueabihf hello.c -o hello -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:
2018 Dec 13
2
Compiling for baremetal ARMv4 on Ubuntu Linux
Hello Peter and Lists,
thanks a lot, that way it worked out! The final cmake was
cmake -G "Ninja" ../llvm/projects/compiler-rt/
-DCOMPILER_RT_BUILD_BUILTINS=ON -DCOMPILER_RT_BUILD_SANITIZERS=OFF
-DCOMPILER_RT_BUILD_XRAY=OFF -DCOMPILER_RT_BUILD_LIBFUZZER=OFF
-DCOMPILER_RT_BUILD_PROFILE=OFF
-DCMAKE_C_COMPILER=/usr/local/myclang/bin/clang
-DCMAKE_AR=/usr/local/myclang/bin/llvm-ar
2011 Jul 15
0
[LLVMdev] Makefile Question
On 7/14/11 7:36 PM, Gregory Malecha wrote:
> Hello,
>
> I have a question about how to set up a Makefile that generate a .so
> that I can load into opt without getting duplicate symbols. Here's
> what I have right now:
Have you tried removing LINK_COMPONENTS below? I suspect that the opt
binary already contains everying in the transformUtils library.
-- John T.
>
>
2011 Jun 13
2
[LLVMdev] Reading Instructions from Ocaml
Hello,
I'm interested in the OCaml bindings, but I've been digging through them and
it doesn't seem possible to actually write a transformation with them.
Specifically, there are a lot of functions to build each type of
instruction, but there doesn't seem to be any way to query an llvalue and
determine what kind of instruction it is. Is there something that I am
missing?
Thank
2011 Jun 30
0
[LLVMdev] clang -emit-llvm uses system ld
Hi Gregory,
> I've tried the LTO options with dragonegg, but I haven't had any luck getting it
> to work,
details?
Ciao, Duncan.
I'm not sure if it is related to my installation of gold or my gcc
> configuration.
>
> I'm really interested in getting the resulting program as bitcode though. Will
> LTO do that for me? What I'm trying to do is build a
2011 Jun 30
1
[LLVMdev] clang -emit-llvm uses system ld
Hi Duncan,
On Wed, Jun 29, 2011 at 11:32 PM, Duncan Sands <baldrick at free.fr> wrote:
> Hi Gregory,
>
> > I've tried the LTO options with dragonegg, but I haven't had any luck
> getting it
> > to work,
>
> details?
>
I think this is a misunderstanding on my part about what the dragonegg
plugin is supposed to do. I am looking for something that will