Displaying 20 results from an estimated 7000 matches similar to: "[LLVMdev] Cross-compiling the ARM toolchain"
2010 Sep 10
0
[LLVMdev] Cross-compiling the ARM toolchain
trying this:
clang -march=armv7-a -mcpu=cortex-a9 -ccc-host-triple
arm-none-linux -ccc-gcc-name arm-none-linux-gnueabi-gcc a.c
2010/9/10 Emmanuel Blot <eblot.ml at gmail.com>:
> Hello,
>
> Is there a quick tutorial to build the LLVM toolchain from a Linux or
> Mac OS X x86 host for an ARM v4/v5/v6 ELF target?
> It this configuration supported, and is it possible to build the
2010 Sep 10
3
[LLVMdev] Cross-compiling the ARM toolchain
On 10 September 2010 04:47, Liu <proljc at gmail.com> wrote:
> trying this:
> clang -march=armv7-a -mcpu=cortex-a9 -ccc-host-triple
> arm-none-linux -ccc-gcc-name arm-none-linux-gnueabi-gcc a.c
Hi Liu,
That doesn't work for me.
$ clang -march=armv7-a -mcpu=cortex-a9 -ccc-host-triple arm-none-linux
-ccc-gcc-name arm-none-linux-gnueabi-gcc alias.c
clang: warning: unknown
2012 Jul 18
2
[LLVMdev] Setting up a cross-compiler for cortex-m3
On 18 July 2012 15:24, salvatore benedetto
<salvatore.benedetto at gmail.com> wrote:
> I'm not sure how to interpret the above output, but I don't understand
> why if say -triple armv4t-none--gnueabi .
Ok, we're getting there... ;)
I think these errors are due to Clang not finding the
libraries/includes/etc for the target you're building.
If you have
2012 Jul 18
3
[LLVMdev] Setting up a cross-compiler for cortex-m3
On 18 July 2012 14:57, salvatore benedetto
<salvatore.benedetto at gmail.com> wrote:
> $ clang -march=armv7-m -mfloat-abi=soft -ccc-host-triple
> armv7m-none-gnueabi testReference.cpp -c
> fatal error: error in backend: CPU: 'cortex-m3' does not support ARM
> mode execution!
Ah, yes! Try:
$ clang -ccc-host-triple thumbv7m-none-gnueabi testReference.cpp -c
Cross
2012 Sep 26
3
[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
Hi Jim,
On Tue, Sep 25, 2012 at 10:52:58AM -0700, Jim Grosbach wrote:
> These errors are from the assembler, not LLVM. Specifically, your binutils is
> too old. Given that it doesn't even recognize the ".syntax" directive, they're
> *very* much too old. You need to upgrade.
> -Jim
She said in her previous mail,
P.S. Because I got error when I use
2010 Sep 11
3
[LLVMdev] Cross-compiling the ARM toolchain
> There isn't one at the moment, ideally it should figure it out, but I haven't looked much into it - it may be that this isn't working yet.
I should say that I'm still a bit confused: Is it possible to build
for ARM CPUs now?
1/ from which hosts (x86-*-* ?)
2/ for which targets (arm-*-* ?)
3/ what are the supported tools for ARM targets:
a/ llvm-gcc (gcc 4.2)?
2012 Sep 26
0
[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
Dear all
I use arm-linux-gcc 2.95.2, because the code generated by version 3.X and
4.X can not run on SimpleScalar.
So I use the arm-linux-gcc 2.95.2 *only*, the version is recommended by
SimpleScalar.
The code generated by arm-linux-gcc 2.95.2 can run on SimpleScalar.
Now I want to use llvm/clang to generate ARM assembly code and
arm-linux-gcc 2.95.2 to be assembler.
Unfortunately, I got some
2012 Sep 26
1
[LLVMdev] [Questions] clang cross compilation and SimpleScalar simulation
Simplescalar is not compatible with llvm because the binutils simplescalar is based on is ancient.
Jim
On Sep 26, 2012, at 12:21 AM, 陳奕梅 <ymchen at sslab.cs.nctu.edu.tw> wrote:
> Dear all
>
> I use arm-linux-gcc 2.95.2, because the code generated by version 3.X and 4.X can not run on SimpleScalar.
> So I use the arm-linux-gcc 2.95.2 *only*, the version is recommended by
2012 Jul 18
0
[LLVMdev] Setting up a cross-compiler for cortex-m3
On Wed, Jul 18, 2012 at 4:31 PM, Renato Golin <rengolin at systemcall.org> wrote:
> On 18 July 2012 15:24, salvatore benedetto
> <salvatore.benedetto at gmail.com> wrote:
>> I'm not sure how to interpret the above output, but I don't understand
>> why if say -triple armv4t-none--gnueabi .
>
> Ok, we're getting there... ;)
Glad you are confident.
2012 Jul 18
0
[LLVMdev] Setting up a cross-compiler for cortex-m3
On Wed, Jul 18, 2012 at 4:15 PM, Renato Golin <rengolin at systemcall.org> wrote:
> On 18 July 2012 14:57, salvatore benedetto
> <salvatore.benedetto at gmail.com> wrote:
>> $ clang -march=armv7-m -mfloat-abi=soft -ccc-host-triple
>> armv7m-none-gnueabi testReference.cpp -c
>> fatal error: error in backend: CPU: 'cortex-m3' does not support ARM
>>
2012 Jul 18
2
[LLVMdev] Setting up a cross-compiler for cortex-m3
On 18 July 2012 14:33, salvatore benedetto
<salvatore.benedetto at gmail.com> wrote:
> but I still haven't figure out how to build for cortex-m3
>
> clang -march=armv7-m -mfloat-abi=soft <something missing?> testReference.cpp -c
-march should have done the trick.
You can also try -mcpu=cortex-m3,
or try -ccc-host-triple armv7m-none-gnueabi (or -eabi),
and possibly
2010 May 05
1
[LLVMdev] hi, I can't find information about how to cross compile llvm-gcc in llvm docs.
I place codesourcery toolchain 2010q1 there, but the sh tell me
"CodeSourcery tarball not found in
/root/tmp/arm-2007q3-51-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2
", does 2007q3 support ARM Cortex A8?
What can I do?
2010/5/5 Eli Friedman <eli.friedman at gmail.com>
> On Tue, May 4, 2010 at 8:57 PM, 爱好者 <proljc at gmail.com> wrote:
> > hi all
> >
2012 Jul 18
3
[LLVMdev] Setting up a cross-compiler for cortex-m3
On 18 July 2012 15:46, salvatore benedetto
<salvatore.benedetto at gmail.com> wrote:
> $ clang++ -ccc-host-triple thumbv7m-none-gnueabi noInclude.cpp -c
> --sysroot=/home/emitrax/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/
Try -ccc-gcc-name arm-none-linux-gnueabi-g++ -ccc-host-triple
thumbv7m-none-linux-gnueabi
Sometimes it's better than sysroot, as it finds it
2012 Jul 18
0
[LLVMdev] Setting up a cross-compiler for cortex-m3
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
>> --sysroot=/home/emitrax/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-gnueabi/libc/
>
> Try -ccc-gcc-name
2012 Jul 22
2
[LLVMdev] Setting up a cross-compiler for cortex-m3
On Sun, Jul 22, 2012 at 9:42 PM, Anton Korobeynikov
<anton at korobeynikov.info> wrote:
>> Any suggestions?
> Try to specify CPU explicitly.
Already did.
clang++ -ccc-gcc-name arm-none-linux-gnueabi-g++ -ccc-host-triple
thumbv7m-none-gnueabi testReference.cpp -c -mcpu=cortex-m3
fatal error: error in backend: CPU: 'cortex-m3' does not support ARM
mode execution!
S.
2012 Aug 16
3
[LLVMdev] error: instruction requires: thumb2
Hi Everybody,
I recently did a cross-compiling using clang (built with host=x86, target=arm) with the following command:
> clang -march=armv7-a -mfloat-abi=soft -ccc-host-triple arm-none-linux-gnueabi -integrated-as main.c -o main.o -c
and get error message:
-------------------------------------------------------
main.c:9:9: error: instruction requires: thumb2
"ldrex
2012 Jul 22
0
[LLVMdev] Setting up a cross-compiler for cortex-m3
> clang++ -ccc-gcc-name arm-none-linux-gnueabi-g++ -ccc-host-triple
> thumbv7m-none-gnueabi testReference.cpp -c -mcpu=cortex-m3
> fatal error: error in backend: CPU: 'cortex-m3' does not support ARM
> mode execution!
Ok, and what's about -mthumb then?
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
2012 Jul 28
2
[LLVMdev] Cross-compiling for cortex-m3: how do I get ride of -ccc-gcc-name ?
Hi there,
I'm using clang to cross compile for cortex-m3. I eventually managed to
do so with
clang++ -ccc-gcc-name arm-none-linux-gnueabi-g++ -ccc-host-triple
thumbv7m-none-gnueabi source.cpp -c -mcpu=cortex-m3
I would like to understand what -ccc-gcc-name does exactly and how
can I get ride of it?
>From what I understand, it's needed by the driver in order to find the binutils
for
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 18
0
[LLVMdev] Setting up a cross-compiler for cortex-m3
On Wed, Jul 18, 2012 at 3:52 PM, Renato Golin <rengolin at systemcall.org> wrote:
> On 18 July 2012 14:33, salvatore benedetto
> <salvatore.benedetto at gmail.com> wrote:
>> but I still haven't figure out how to build for cortex-m3
>>
>> clang -march=armv7-m -mfloat-abi=soft <something missing?> testReference.cpp -c
>
> -march should have done