Displaying 20 results from an estimated 11000 matches similar to: "[LLVMdev] Question about compiling LLVM through cross-compiler for ARM"
2012 Nov 21
0
[LLVMdev] Question about compiling LLVM through cross-compiler for ARM
> It is done. Then, I should copy this version on my image and then boot the image with gem5. The
> problem is when I try to run llvm-commands in gem5, they don't work and said : "cannot execute binary file".
What does "file" says on the binary?
> This means that I couldn't cross-compile the llvm for ARM to work on ARM!
Something is broken on your side. I can
2012 Nov 21
0
[LLVMdev] Question about compiling LLVM through cross-compiler for ARM
>> > It is done. Then, I should copy this version on my image and then boot
>> > the image with gem5. The
>> > problem is when I try to run llvm-commands in gem5, they don't work and
>> > said : "cannot execute binary file".
>> What does "file" says on the binary?
> when I use commands like : "#arm-linux-gnueabi-clang test.c
2012 Nov 21
5
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hi Journeyer J. Joh,
Thank you so much for the solution. It was very helpful. Now, I'm wondering
if you have tested compiling a whole project (with several .c/.cpp files)
and achieve one binary file. Previously (on X86), I built .bc files
separately and then I used llvm-link to get one .bc file and produce one
binary file for the whole project. But, this time I encountered some errors
like
2013 Mar 10
2
[LLVMdev] Running cross compiled binaries for ARM on gem5
Hi,
I am trying to optimize some benchmarks using LLVM and run them on gem5 simulator (build for ARM). I am using Sourcery Codebench cross-compiler for ARM on my x-86 machine.
My steps up till now have been using the following commands.
1. clang -static -emit-llvm -march=armv7-a -mfloat-abi=soft -target arm-elf a.cpp -c -integrated-as \
2012 Nov 21
0
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hi Negar,
> In file included from ../../../../LLVM/project/file1.cpp:8:
> /usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../include/c++/4.6/iostream:38:10:
> fatal error:
> 'bits/c++config.h' file not found
> #include <bits/c++config.h>
> ^
That's a compile-time error rather than link-time. Clang does its best
to find all the bits of the
2012 Nov 21
2
[LLVMdev] Question about compiling LLVM through cross-compiler for ARM
On Wed, Nov 21, 2012 at 8:02 PM, Anton Korobeynikov <anton at korobeynikov.info
> wrote:
> >> > It is done. Then, I should copy this version on my image and then boot
> >> > the image with gem5. The
> >> > problem is when I try to run llvm-commands in gem5, they don't work
> and
> >> > said : "cannot execute binary file".
>
2013 Mar 11
0
[LLVMdev] Running cross compiled binaries for ARM on gem5
Hi Silky,
If I got correctly, you seem to be trying to run a bare-metal image on your
model, but you compile with linux-gnueabi GCC. I don't know if that will
make a difference, but I'd try to use none-eabi GCC toolchain and set the
-target armv7a-none-eabi just in case.
On 10 March 2013 00:26, Silky Arora <silkyar at umich.edu> wrote:
> Most of the search results talk about
2015 Mar 11
5
[LLVMdev] Customize Standard C Library Using LLVM (to support llvm backend optimization)
Purpose:
I implemented a pass on LLVM backend that changes the output format of
*ARM* assembly/binary
(e.g add a jump at the end of each basic block to eliminate fall through).
By calling:
llc -march=arm somefile.bc
it generates expected arm assembly/binary that runs properly on arm gnu
linux (I use qemu-arm and gem5 to simulate it). Now I want to do the same
thing on standard c library, but
2015 Mar 11
4
[LLVMdev] Customize Standard C Library Using LLVM (to support llvm backend optimization)
>
> FWIW, I build baremetal newlib for arm-eabi using clang, and it works. I
>> had to patch a few of the __attribute__((naked)) functions because they
>> were using pre-UAL asm syntax, but for the most part it "just works".
>>
>
I build the baremetal newlib using arm-none-eabi-gcc as well, but after
linking with the hello world program, it failed to run on
2013 Mar 17
2
[LLVMdev] Running cross compiled binaries for ARM on gem5
Thanks Renato and Giang.
I was able to run a simple HelloWorld program on gem5 (in SE mode) by using
-target -arm-none-linux-gnueabi as the option during cross compilation.
I am trying to cross compile some Computer Vision algorithms, which use
OpenCV libraries, and I tried using the same command line options -
clang++ *-emit-llvm -static -c -Wall -g -O0 -mfpu=vfp -mfloat-abi=soft
2012 Aug 29
0
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hi Journeyer
First, thank you so much for your updates on your experiments.
I am currently following your steps but have found myself stuck with the
following error:
/usr/lib/gcc/arm-linux-gnueabi/4.6/../../../../arm-linux-gnueabi/bin/ld:
this linker was not configured to use sysroots
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
I used the command string you
2012 Jun 20
3
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hello,
Thank you for your kind attention to my issue and your help.
I changed the tool chain and tried again. And there is a little progress
but still have some problem.
Using --sysroot doesn't make clang use linker(ld) in the cross tool.
Most important question is how I can make clang use cross tool linker.
Let me show you my experiment and questions below.
There are two questions.
[Run]
2012 Jul 22
3
[LLVMdev] Setting up a cross-compiler for cortex-m3
On Wed, Jul 18, 2012 at 6:08 PM, salvatore benedetto
<salvatore.benedetto at gmail.com> wrote:
> On Wed, Jul 18, 2012 at 5:45 PM, Renato Golin <rengolin at systemcall.org> wrote:
>> On 18 July 2012 15:46, salvatore benedetto
>> <salvatore.benedetto at gmail.com> wrote:
>>> $ clang++ -ccc-host-triple thumbv7m-none-gnueabi noInclude.cpp -c
>>>
2009 Jul 03
1
[LLVMdev] llvm-gcc cross compiler for ARM Linux failing
Hello Anton,
Thanks for replying.
The message "as: unrecognized option `-mcpu=cortex-a8'"
is the same message I get when I just enter:
as -mcpu=cortex-a8
So I think I llvm-gcc is using the Linux i386 assembler to assemble
ARM code. Not good. What assembler is it supposed to use? The one in
CodeSourcery?
> But how's assembler actually called? Just try to compile
2010 Jun 07
2
[LLVMdev] build errors while cross compiling llvm-gcc for ARM
This is the full description of errors I am getting
/home/llvm-gcc-4.2-2.7.source/host-i686-pc-linux-gnu/gcc/xgcc
-B/home/llvm-gcc-4.2-2.7.source/host-i686-pc-linux-gnu/gcc/
-B/usr/local/armv7fl-montavista-linux-gnueabi/bin/
-B/usr/local/armv7fl-montavista-linux-gnueabi/lib/ -isystem
/usr/local/armv7fl-montavista-linux-gnueabi/include -isystem
2012 Jun 19
2
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hello Gergö, Joerg and people on our list
With your kind answer, I tried to build a hello world program for
ARM(arm-none-linux-gnueabi) on my x86-64 PC.
Thank you we verified the generated bitcode. The only thing remained is
linking.
Let me brief what I did so far.
1. Built Clang/llvm in a way explained in
http://clang.llvm.org/get_started.html on Ubuntu 11.10 x86-64 PC
2. Downloaded gcc-4.0
2012 Jan 23
1
[LLVMdev] Cross compilation error LLVM-3.0
Hi,
I am trying to cross compile LLVM-3.0 for Arm target i.e. I would like to
run the LLVM tools on ARM platform and generate the code for the ARM
platform. I configured the build with
../src/configure --build=i686-pc-linux-gnu --host=arm-linux-gnueabi
--target=arm-linux-gnueabi --enable-optimized=no
--prefix=/home/user/Acads/Compiler/LLVM/llvm-3.0/bin
--with-as=/usr/bin/arm-linux-gnueabi-as
2012 Jun 28
3
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hello list
I think I really finally found a way to crossbuild a binary for ARM using
Clang/llvm.
This message would be a documentation for someone who may concern for the
same issue with me.
- Target : TOSHIBA AC100 / Ubuntu 12.04 (https://wiki.ubuntu.com/ARM/**
TEGRA/AC100 <https://wiki.ubuntu.com/ARM/TEGRA/AC100>)
- Host : i386 Desktop PC / Ubuntu 12.04
- Toolchain on host : sudo
2012 Jun 19
0
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hello
> ./clang -v -emit-llvm -ccc-host-triple arm-none-linux-gnueabi
> -I/home/hum/Documents/Projects/llvm_clang/gnuarm-4.0.2/arm-elf/include
> -L/home/hum/Documents/Projects/llvm_clang/gnuarm-4.0.2/arm-elf/bin hello.c
You forgot about sysroot here.
> /home/hum/Documents/Projects/llvm_clang/gnuarm-4.0.2/arm-elf/bin/ld:
> unrecognised emulation mode: armelf_linux_eabi
>
2009 Jul 03
0
[LLVMdev] llvm-gcc cross compiler for ARM Linux failing
Hi, Neel
> I suspect it is using the wrong assembler. But when I do llvm-gcc -v I
> can see it has:
>
> --with-gnu-as=/home/neel/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-as
But how's assembler actually called? Just try to compile something
with extra -v option added
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg