Displaying 9 results from an estimated 9 matches for "emitrax".
2012 Jul 18
0
[LLVMdev] Setting up a cross-compiler for cortex-m3
...;)
Glad you are confident. :-)
> I think these errors are due to Clang not finding the
> libraries/includes/etc for the target you're building.
>
> If you have CodeSourcery's GCC, use that (via --sysroot or
> -ccc-gcc-name I said earlier), it's by far the easiest way.
emitrax at xartimequad:~/programming$ which arm-none-linux-gnueabi-g++
/home/emitrax/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-linux-gnueabi-g++
emitrax at xartimequad:~/programming$ find
/home/emitrax/CodeSourcery/Sourcery_G++_Lite/ -name libc
/home/emitrax/CodeSourcery/Sourcery_G++_Lite/arm-none-linux-...
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 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 all by itself.
--
cheers,
--renato
http://systemcall.org/
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 arm-none-linux-gnueabi-g++ -ccc-host-triple
> thumbv7m-none-linux-gnueabi
>
> Sometimes it's better than sysroot, as it finds it all by itself.
And the winner is..
clang++ -ccc-gcc-name arm-none-l...
2012 Jul 23
0
[LLVMdev] Setting up a cross-compiler for cortex-m3
...rwise the
system ld is used
which targets my host architecture.
Giving those flags it get the correct linker but another problem came up...
../CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../lib/gcc/arm-none-linux-gnueabi/4.6.3/../../../../arm-none-linux-gnueabi/bin/ld:
error: /home/emitrax/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/bin/../arm-none-linux-gnueabi/libc/thumb2/usr/lib/libc.a(dso_handle.o):
Conflicting architecture profiles A/M
and so on for many other symbols.
../CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_GNU_Linux/arm-none-linux-gnueabi/libc/thumb2/usr/l...
2012 Jul 22
3
[LLVMdev] Setting up a cross-compiler for cortex-m3
...d, 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 arm-none-linux-gnueabi-g++ -ccc-host-triple
>> thumbv7m-none-linux-gnueabi
>>
>> Sometimes it's better than sysroot, as it finds it all by itself.
>
> And the winner is..
>...
2012 Jul 22
3
[LLVMdev] Setting up a cross-compiler for cortex-m3
On 22 July 2012 22:03, salvatore benedetto
<salvatore.benedetto at gmail.com> wrote:
> While we are at it, if a new comer would like to understand where everything
> takes place, where should he look?
>
> I did a grep in the source and eventually ended up in clang/something/driver.
That's pretty much it: clang/lib/Driver
2012 Jul 18
0
[LLVMdev] Setting up a cross-compiler for cortex-m3
...ence.cpp -c -v
clang version 3.2 (http://llvm.org/git/clang.git
88237bf587581026dcfc8386abf055cb201aa487)
(http://llvm.org/git/llvm.git
18a1b616ea123548b61a037c4f4fea4133aac1b5)
Target: thumbv7m-none--gnueabi
<------------------------------------------- Seems OK!
Thread model: posix
"/home/emitrax/bin/llvm/bin/clang" -cc1 -triple armv4t-none--gnueabi
-S -disable-free -main-file-name testReference.cpp -mrelocation-model
static -mdisable-fp-elim -fmath-errno -mconstructor-aliases
-target-abi aapcs-linux -target-cpu arm7tdmi -mfloat-abi soft
-target-feature +soft-float-abi -target-linker-v...
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