[fpc-pascal] Arm EABI vs OABI [was:DateToStr in arm does not work!]

2007-07-04 Thread Luca Olivetti
En/na Henry Vermaak ha escrit: i urge you to read this: http://wiki.debian.org/ArmEabiPort http://www.codesourcery.com/gnu_toolchains/arm/faq.html i haven't completely read it (hence i can't answer your questions that well, sorry). I'm wondering if my strange problems are due to a badly buil

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread mueller . b
On 4 Jul 2007, at 19:42, Luca Olivetti wrote: > En/na Bernd Mueller ha escrit: > > > thank you Jonas, that was helpful. I finally was able to compile the > > file, but I think there is still a problem with the libraries. The > > program does not run as expected. > > not expected as in the bug

Re: [fpc-pascal] In EABI ARM rootdisk dynamic linker is not named ld-linux.so.2

2007-07-04 Thread Daniƫl Mantione
Op Wed, 4 Jul 2007, schreef josepascual: > Hi developer of freepascal (for arm) et all > > I have tried a freepascal program for arm EABI. I have created a ppcrossarm > with SOFTFLOAT with binutils for EABI. > Freepascal program compiled okey but When I run it in ARM board (with > rootdisk EABI

[fpc-pascal] In EABI ARM rootdisk dynamic linker is not named ld-linux.so.2

2007-07-04 Thread josepascual
Hi developer of freepascal (for arm) et all I have tried a freepascal program for arm EABI. I have created a ppcrossarm with SOFTFLOAT with binutils for EABI. Freepascal program compiled okey but When I run it in ARM board (with rootdisk EABI) I received a "FILE NOT FOUND" It was due that ld-linu

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Luca Olivetti
En/na Bernd Mueller ha escrit: thank you Jonas, that was helpful. I finally was able to compile the file, but I think there is still a problem with the libraries. The program does not run as expected. not expected as in the bug report or something completely different? Bye -- Luca _

[fpc-pascal] Problem with softfloat in fpc for ARM using negative number

2007-07-04 Thread josepascual
Hi When I run next floattest program program floattest; uses sysutils; var a,b,c:double; begin a:=0.5; b:=0.3; writeln(format('%5.3f',[a*b])); a:=-0.5; c:=a*b; writeln(format('%5.3f',[c])); end. I received this output: = output = 0.150 An un

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Bernd Mueller
Luca Olivetti wrote: En/na [EMAIL PROTECTED] ha escrit: Luca, > could you check bug 9191? > > http://www.freepascal.org/mantis/view.php?id=9191 if I try to compile, the linker complaints about not finding the object dl, though dl.o and dl.ppu are present in the rtl/units/arm-linux directo

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Henry Vermaak
On 04/07/07, josepascual <[EMAIL PROTECTED]> wrote: negative number problem is not in float operation but in format or strings subsystem. try this new example: program floattest; uses sysutils; var a,b,c,d,e:double; begin a:=0.5; b:=0.3; writeln(format('%5.3f',[a*b])); a:=-0.5; c:=a*b; d:=a*

RE: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread josepascual
> > If this program compiles and works fine: > > program floattest; > > > > uses sysutils; > > var a,b:double; > > > > begin > > a:=0.5; > > b:=0.3; > > writeln(format('%5.3f',[a*b])); > > > > end. > > > > > > > > can I assume that either my compiler has been built with the right > > options or I h

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Bernd Mueller
Jonas Maebe wrote: The -ldl refers to libdl.so, not to dl.o. You have to copy it from your ARM system to your Windows machine, and add the directory with all your ARM libraries to the linker's search path, like Luca did: -Fl/usr/lib/gcc/arm-linux-gnu/4.1.2 thank you Jonas, that was helpful. I

RE: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread josepascual
Hi everyone I have compile datetostr_test with -g and I have run program with GDB this is the error output in gdb Starting program: /tmp/datestrto_test Program received signal SIGSEGV, Segmentation fault. 0xbcc8 in fpc_ansistr_decr_ref () It seems the problem is not exactly in datetimetos

Re: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread Henry Vermaak
On 04/07/07, josepascual <[EMAIL PROTECTED]> wrote: Hi henry et all, I have a little confused, Could you or someone help me with some question? I have a ARM920T (without fpu, kernel OABI) . Which version of gcc are you using 3.4.1? 4.1.2? 4.1.1 (this is the first gcc that supports eabi). W

RE: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread josepascual
> > I have downloaded svn version 7943 how can I donwload svn 7929? > > > > How are you build fpc for arm? make clean crossall CPU_TARGET=arm > > OS_TARGET=linux ? > > Which version of binutils do you have? (eabi?) > > Is SOFTFLOAT in freepascal the equivalent to EABI in c? > > > > soft float

RE: [fpc-pascal] DateToStr in arm does not work!

2007-07-04 Thread josepascual
> > > > soft float just means that the compiler needs to emulate the floating > > point unit if it doesn't exist in your hardware (like some arm > > processors). if you have an fpu, then you don't have to worry about > > soft float. the following assumes that you need soft float in you > > compil

Re: [fpc-pascal] Need to declare FindIntToIdent in Classesh.inc

2007-07-04 Thread Michael Van Canneyt
On Tue, 3 Jul 2007, zaher dirkey wrote: > IdentToInt use Map array (Map: array of TIdentMapEntry) not IntConstList > with TIdentToInt registered functions > And i emulating writing property values like as "procedure > TWriter.WriteProperty" in writer.inc. It's done, revision 7943. Michael. y _

Re: [fpc-pascal] Need to declare FindIntToIdent in Classesh.inc

2007-07-04 Thread zaher dirkey
IdentToInt use Map array (Map: array of TIdentMapEntry) not IntConstList with TIdentToInt registered functions And i emulating writing property values like as "procedure TWriter.WriteProperty" in writer.inc. On 7/3/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: On Tue, 3 Jul 2007, zaher d