EmbDev.net

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


von Marc (Guest)


Rate this post
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

von Marc (Guest)


Attached files:

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

von Marcus B. (raketenfred)


Rate this post
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

von Marc (Guest)


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

achso und ja es ist eine deutsche linux distri

von Peter D. (pdiener)


Rate this post
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

von Marc (Guest)


Rate this post
useful
not useful
Thanks
Vielen Dank,

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

von Marc (Guest)


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

von Marc (Guest)


Rate this post
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

von Clifford S. (clifford)


Rate this post
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.

von Clifford S. (clifford)


Rate this post
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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.