Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-05

wiki help with images

10 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

How do I reference a image uploaded in one language (english), but in a another language (french, german) page?

The same problem applies for the Lazarus pages on Wikipedia. I uploaded a new screenshot of Lazarus 0.9.25 on the english page, but don't know how to update the other Lazarus language pages with that same screenshot.

Regards,
- Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

Reply by email

Nataraj S Narayan
to Graeme Geldenhuys

Hi Florian and other friends

I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek board with 340x220 display. I need to write lots of console kinda apps.

I am using a "qemu-system-arm" emulated Armel Debian machine on a Debian x86 Lenny distro for writing code. I installed fpc-2.2.0.arm-linux.tar on the emulated linux.
Which compiling a simple helloworld.pas , i get the classic error of System.o being EABI 0 while target is EABI 4.

I have got the svn download of fpc, and trying to compile it in the emulated machine for ARM for the past 2 days. I have given :-

make clean all ARCH=arm OPT="-CfSoft".

Its compiling for quite long and finally comes to rest endlessly while compiling system.pp.

Let me remind you that i am dont use a Cross compiler, but an emulated Arm machine.

My boss and colleagues are 'C only' programmers . Doing all kinda harware access for embedded devices using C. They have developed pretty good & successful apps using pure C without an OS. What i have been trying is to convice them to use Freepascal for the Application part, which is presently console Apps. The next stage is to develop X apps using Lazarus. But for these I need to get FPC working.

Please help.

regards

Nataraj

Reply by email

Henry Vermaak
to Nataraj S Narayan

2008/5/30 Nataraj S Narayan :

Show quoted text 15 lines
Hi Florian and other friends I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek board with 340x220 display. I need to write lots of console kinda apps. I am using a "qemu-system-arm" emulated Armel Debian machine on a Debian x86 Lenny distro for writing code. I installed fpc-2.2.0.arm-linux.tar on the emulated linux. Which compiling a simple helloworld.pas , i get the classic error of System.o being EABI 0 while target is EABI 4. I have got the svn download of fpc, and trying to compile it in the emulated machine for ARM for the past 2 days. I have given :- make clean all ARCH=arm OPT="-CfSoft".

the makefiles use CPU_TARGET, but this shouldn't be necessary when you're compiling natively (or inside an emulator, even).

i'd recommend going the cross compile route (since i know that works with trunk). just compile binutils (./configure --target arm) and compile fpc with:

make crossall CPU_TARGET=arm CROSSOPT="-CfSOFT"

you can use other envvars, too, just inspect the makefile if you're brave, or read the buildfaq for some good info.

henry

Reply by email

Nataraj S Narayan
to Henry Vermaak

Henry,

Thanks for the suggestions. Will try cross compiling. I cross compile using "/home/nataraj/arm-2008q1/arm-none-linux-gnueabi-".

Freepascal wiki says to install fpc for the native x86 machine first. Then go for fpc-arm version 2.0.4. Which version of fpc should i install in native host - 2.2.0 or 2.0.4? Also, for cross compiling 2.0.4 ,how do i specify the said cross bin utils ?

regards

Nataraj

Henry Vermaak wrote 39 lines
2008/5/30 Nataraj S Narayan : > Hi Florian and other friends > > I am involved in porting existing C code to Arm Linux for AT91SAM9263 Ek > board with 340x220 display. I need to write lots of console kinda apps. > > I am using a "qemu-system-arm" emulated Armel Debian machine on a > Debian x86 Lenny distro for writing code. I installed > fpc-2.2.0.arm-linux.tar on the emulated linux. > Which compiling a simple helloworld.pas , i get the classic error of > System.o being EABI 0 while target is EABI 4. > > I have got the svn download of fpc, and trying to compile it in the > emulated machine for ARM for the past 2 days. I have given :- > > make clean all ARCH=arm OPT="-CfSoft". > the makefiles use CPU_TARGET, but this shouldn't be necessary when you're compiling natively (or inside an emulator, even). i'd recommend going the cross compile route (since i know that works with trunk). just compile binutils (./configure --target arm) and compile fpc with: make crossall CPU_TARGET=arm CROSSOPT="-CfSOFT" you can use other envvars, too, just inspect the makefile if you're brave, or read the buildfaq for some good info. henry _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Henry Vermaak
to Nataraj S Narayan

2008/5/31 Nataraj S Narayan :

Show quoted text 9 lines
Henry, Thanks for the suggestions. Will try cross compiling. I cross compile using "/home/nataraj/arm-2008q1/arm-none-linux-gnueabi-". Freepascal wiki says to install fpc for the native x86 machine first. Then go for fpc-arm version 2.0.4. Which version of fpc should i install in native host - 2.2.0 or 2.0.4? Also, for cross compiling 2.0.4 ,how do i specify the said cross bin utils ?

i use trunk to cross compile for arm, but i think fixes_2_2 will also work. you should use 2.2.0 as a starting compiler (but 2.0.4) also works for me.

you have to tell the build system where your binutils are (BINUTILSDIR=/home/nataraj/arm-2008q1/) and what prefix you use (BINUTILSPREFIX=arm-none-linux-gnueabi-). then you need to use CROSSOPT="-CfSOFT" for the softfloat business.

all the packages get built for me, it just dies near the end of make crossinstall.

the buildfaq contains good info (thanks to marco): www.stack.nl/~marcov/buildfaq.pdf

henry

Reply by email

Henry Vermaak
to Nataraj S Narayan: Hi Henry Please give me the exact command used by you for compiling. regards Nataraj

2008/6/5 Nataraj S Narayan :

Hi Henry Please give me the exact command used by you for compiling.

here's a script. change the params as you need.

henry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: buildarm.sh
Type: application/x-sh
Size: 266 bytes
Desc: not available
Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20080605/a90e0af8/attachment-0001.sh

Reply by email

Luca Olivetti
to Henry Vermaak

Henry Vermaak escribi?:

Show quoted text 7 lines
2008/6/5 Nataraj S Narayan : > Hi Henry > > Please give me the exact command used by you for compiling. > here's a script. change the params as you need.

What does the crossinstall target do? (I mean, differently than plain install)

Bye

Luca

Reply by email

Nataraj S Narayan
to Henry Vermaak: 2008/5/31 Nataraj S Narayan : i use trunk to cross compile for arm, but i think fixes_2_2…

Hi Henry

Please give me the exact command used by you for compiling.

regards

Nataraj

Henry Vermaak wrote 36 lines
2008/5/31 Nataraj S Narayan : > Henry, > > Thanks for the suggestions. Will try cross compiling. I cross compile using > "/home/nataraj/arm-2008q1/arm-none-linux-gnueabi-". > > Freepascal wiki says to install fpc for the native x86 machine first. > Then go for fpc-arm version 2.0.4. Which version of fpc should i install > in native host - 2.2.0 or 2.0.4? Also, for cross compiling 2.0.4 ,how do > i specify the said cross bin utils ? > i use trunk to cross compile for arm, but i think fixes_2_2 will also work. you should use 2.2.0 as a starting compiler (but 2.0.4) also works for me. you have to tell the build system where your binutils are (BINUTILSDIR=/home/nataraj/arm-2008q1/) and what prefix you use (BINUTILSPREFIX=arm-none-linux-gnueabi-). then you need to use CROSSOPT="-CfSOFT" for the softfloat business. all the packages get built for me, it just dies near the end of make crossinstall. the buildfaq contains good info (thanks to marco): www.stack.nl/~marcov/buildfaq.pdf henry _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Nataraj S Narayan
to Henry Vermaak: 2008/6/5 Nataraj S Narayan : here's a script. change the params as you need. henry…

Hi Henry

Thank you. Trying it out.

Compilation getting aborted telling

make[5]: Entering directory `/home/kodi/fpc/rtl/linux' /bin/mkdir -p /home/kodi/fpc/rtl/units/arm-linux
/home/nataraj/arm-2008pq1/arm-none-linux-gnueabi/bin/as -o /home/kodi/fpc/rtl/units/arm-linux/prt0.o arm/prt0.as make[5]: /home/nataraj/arm-2008pq1/arm-none-linux-gnueabi/bin/as: Command not found make[5]: *** [prt0.o] Error 127

But path for assembler is correct.

It build the ppcrossarm in fpc/compiler. I am able to compile a program with it after symlinking the above assembler and linker to /usr/local/bin/arm-linux-as and arm-linux-ld respectively. Lots of warning are generated.

But when I copied the binary to Target linux, the execution just hangs wihtout output till I CTRL-C.

"home/nataraj/arm-2008pq1/arm-none-linux-gnueabi/bin/" is bin utils from Sourcery that is used to compile kernel 2.6.25 for ARM board.

What else should I do?

regards

Nataraj

Henry Vermaak wrote 19 lines
2008/6/5 Nataraj S Narayan : > Hi Henry > > Please give me the exact command used by you for compiling. > > here's a script. change the params as you need. henry ------------------------------------------------------------------------ _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Nataraj S Narayan
to Luca Olivetti: Henry Vermaak escribi?: What does the crossinstall target do? (I mean, differently than…

Hi

I get the following strace out put when executing a fpc cross compiled binary using ppcrossarm (generated from latest fpc svn using following script :-

#!/bin/bash

ALLOPTS="CPU_TARGET=arm OS_TARGET=linux BINUTILSPREFIX=arm-linux- CROSSBINDIR=/home/nataraj/arm
-2008q1/bin FPC=/usr/local/bin/ppc386
INSTALL_PREFIX=/usr"

make clean crossall $ALLOPTS OPT="-dFPC_ARMEL" && \ sudo make -k crossinstall $ALLOPTS OPT="-dFPC_ARMEL"

root at at91sam9263ek:~$ strace ./kam
execve("./kam", ["./kam"], [/* 11 vars */]) = 0
syscall(0x90004c, 0x3, 0xbe809de8, 0xbe809df0, 0x40000) = -1 EINTR (Interrupted system call)
syscall(0x9000ae, 0x8, 0x18da4, 0, 0x8) = -1 EINTR (Interrupted system call) syscall(0x9000ae, 0xb, 0x18da4, 0, 0x8) = -1 EINTR (Interrupted system call) syscall(0x9000ae, 0x7, 0x18da4, 0, 0x8) = -1 EINTR (Interrupted system call) syscall(0x9000ae, 0x4, 0x18da4, 0, 0x8) = -1 EINTR (Interrupted system call) syscall(0x900036, 0x1, 0x5401, 0xbe809cac, 0x17348) = -1 EINTR (Interrupted system call)
syscall(0x900036, 0x2, 0x5401, 0xbe809cac, 0x170f4) = -1 EINTR (Interrupted system call)
syscall(0x900036, 0x1, 0x5401, 0xbe809cac, 0x177f0) = -1 EINTR (Interrupted system call)
syscall(0x900036, 0x2, 0x5401, 0xbe809cac, 0x17a44) = -1 EINTR (Interrupted system call)
syscall(0x900055, 0xe494, 0x18ca5, 0xff, 0xbe7c9e54) = -1 EINTR (Interrupted system call)
syscall(0x900004, 0x1, 0x17498, 0x8, 0x1) = -1 EINTR (Interrupted system call)
syscall(0x900004, 0x1, 0x17498, 0x8, 0x1) = -1 EBADF (Bad file descriptor) _exit(0)

My ARM Linux kernel is on Atmel AT91SAM9263 is
Linux at91sam9263ek 2.6.25 #34 Sat Jun 7 20:02:51 IST 2008 armv5tejl unknown

I use bin utils from CodeSourcery for cross compiling EABI kernel as well as fpc.
The kernel is compiled with

CONFIG_AEBI=y
CONFIG_ARM_THUMB=y

But I am not able to enable OABI_COMPAT=y.

Why dont my binary work on the Arm board? What else is to be done?

regards

Nataraj

Luca Olivetti wrote 18 lines
Henry Vermaak escribi?: > 2008/6/5 Nataraj S Narayan : > >> Hi Henry >> >> Please give me the exact command used by you for compiling. >> >> > here's a script. change the params as you need. > What does the crossinstall target do? (I mean, differently than plain install) Bye

Reply by email