Building my own tool-chain, missing files

Guest #1442841
Hello, i'm trying to build my own tool-chain for an arm7tdmi 
(interworking and nofmult).

First, i downloaded the toolchain at 
http://embdev.net/articles/ARM_GCC_toolchain_for_Linux_and_Mac_OS_X , 
and everything was fine.

Now, i built my owm toolchain and everything is right when i'm compiling 
in ARM mode, but i can't compile in interworking mode because i miss 
some files in the directories /interwork (libm.a).

I just put the same flags as the before link, and i patched the 
t-arm-elf (gcc) with the next:
1
MULTILIB_OPTIONS    += mhard-float/msoft-float
2
MULTILIB_DIRNAMES   += fpu soft
3
MULTILIB_EXCEPTIONS += *mthumb/*mhard-float*
4
# 
5
MULTILIB_OPTIONS    += mno-thumb-interwork/mthumb-interwork
6
MULTILIB_DIRNAMES   += normal interwork
7
# 
8
MULTILIB_OPTIONS    += mcpu=arm7
9
MULTILIB_DIRNAMES   += nofmult
10
MULTILIB_EXCEPTIONS += *mthumb*/*mcpu=arm7*

processing the newlib1.17 i had the next errors too:
1
/bin/sh: line 4: arm-elf-ranlib: command not found
2
/bin/sh: line 4: arm-elf-ranlib: command not found
3
make[4]: *** [install-toollibLIBRARIES] Error 127
4
make[3]: *** [install-am] Error 2
5
make[2]: *** [install-recursive] Error 1
6
make[1]: *** [install-target-newlib] Error 2
7
make: *** [install] Error 2


At the moment i can "survive" working in ARM mode xD, but i want to 
compile in Thumb/interworking mode as i guess i will have better 
performance (actually i need it because i have loads of float operations 
in my code).


By the way, i read the performance of the eabi is better for float 
operation. Actually i built a tool-chain with target=arm-none-eabi, and 
it compiles with inter-working without any problems, but i don't know if 
that code will run in a arm7tdmi (AT91SAM7S256). I will test it on 
Thursday.

Thanks in advance.
Guest
Well, for gdb i have more errors:
1
cc1: warnings being treated as errors
2
../../gdb-6.8/gdb/eval.c: In function ‘evaluate_subexp_standard’:
3
../../gdb-6.8/gdb/eval.c:1705: error: ‘subscript_array’ may be used uninitialized in this function
4
make[2]: *** [eval.o] Error 1
5
make[2]: *** Waiting for unfinished jobs....
6
make[1]: *** [all-gdb] Error 2
7
make: *** [all] Error 2
8
cc1: warnings being treated as errors
9
../../gdb-6.8/gdb/eval.c: In function ‘evaluate_subexp_standard’:
10
../../gdb-6.8/gdb/eval.c:1705: error: ‘subscript_array’ may be used uninitialized in this function
11
make[2]: *** [eval.o] Error 1
12
make[1]: *** [install-gdb] Error 2
13
make: *** [install] Error 2

I have an "extense" log, let me know what it's importat to paste xD.
Guest
After this, i'll register myself for edit xD, sorry.

I forgot to mention it, i'm using gcc (Debian 4.4.1-4), and the 
toolchain sources are:

gcc-4.3.3
newlib 1.17.0
binutils 2.19.1
gdb 6.8

Reply

A question of your own? This thread is over 17 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.