EmbDev.net

Forum: ARM programming with GCC/GNU tools ARM GCC installation/compiling


Author: Marc (Guest)
Posted on:

Rate this post
0 useful
not useful
Hi,
i'm not able to install ARM GCC :(

First i installed ARM GCC for linux (like in the tutorial on this 
website)
Now when i compile something i get some strange errors. After some hours 
of fruitless search for the mistake i gave up.

Then i installed WinARM...
now i get exactly the same strange errors like in Linux :(

In the Attachment are the Error Messages.

Please help me.
Marc

Author: Marc (Guest)
Posted on:
Attached files:
  • errors (2.04 KB, 369 downloads)

Rate this post
0 useful
not useful
Sorry i forgot the attachment :)

Author: Marcus B. (raketenfred)
Posted on:

Rate this post
0 useful
not useful
Please Look at your directory
this errors can(but don't have to) be created by a space character,
I know this errors from WinAvr
"undefined reference to `_lseek_r'"
try to compile the files in a directory free of space characters

-It's a German Linux or not?!
Same in German:

Beim Winavr können(müssen aber nicht) solche Fehler aufgrund von 
Leerzeichen im Pfad auftreten, alles einmal in ein Leerzeichen freis s 
Verzeichnis installieren und kopieren und compilen- hat damals beim 
WinAVR(auch gcc) geholfen

mfg

Author: Marc (Guest)
Posted on:

Rate this post
0 useful
not useful
it's a space free directory.

achso und ja es ist eine deutsche linux distri

Author: Peter Diener (pdiener)
Posted on:

Rate this post
0 useful
not useful
The error file shows calls to functions that are not provided by a 
newlib.
You will need a source file normaly called syscalls.c. This is because a 
newlib is not hardware dependent. The hardware dependent functions have 
to be defined in syscalls.c.

In german:

Der Fehlerlog zeigt Aufrufe von Funktionen, die von der newlib nicht zur 
Verfügung gestellt werden. Dafür benötigt man eine Datei, die 
üblicherweise syscalls.c heißt. Das liegt daran, dass eine newlib nicht 
hardwareabhängig ist. Die hardwareabhängigen Funktionen müssen in 
syscalls.c definiert werden.

http://svn.openpcd.org/trunk/firmware/src/os/syscalls.c

Grüße,

Peter

Author: Marc (Guest)
Posted on:

Rate this post
0 useful
not useful
Thanks
Vielen Dank,

aber wo soll ich diese Datei hinterlegen?
But where to place it?

Author: Marc (Guest)
Posted on:

Rate this post
0 useful
not useful
No one can help me? :(

Author: Marc (Guest)
Posted on:

Rate this post
0 useful
not useful
I've got the same problem like the person in this thread: 
Beitrag "WinARM "sprintf" Linkerfehler"

But there is no printf or sprintf in my program

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 useful
not useful
Marc wrote:
> I've got the same problem like the person in this thread:
> Beitrag "WinARM "sprintf" Linkerfehler"
>
> But there is no printf or sprintf in my program

That does not sound like the same problem at all. Don't hijack other 
peoples threads with your own problems. Start your own thread and post 
the build log.

Author: Clifford Slocombe (clifford)
Posted on:

Rate this post
0 useful
not useful
Marc wrote:
> No one can help me? :(


After a mere eight hours, you posted that!  There are 24 hours in a day, 
and not everyone is in your time-zone! And those that are might also 
have to work for a living, and have a life besides this forum. Patience.


> But where to place it?

It does not matter. You just need to implement it, compile it and link 
the object file with your code.

WinARM includes examples for a number of target micro-controllers and 
boards. You should be able to adapt one of those for your target.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.