Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Henry Vermaak

On 04/05/07, Helmut Hartl [EMAIL PROTECTED] wrote:


Well - that was what i would like to do - I thougt i try it
using libc, as i hade some old code who was doing it just that way.

But also the following:

program nslu_test;
{$mode objfpc}{$H+}
{$linklib c}
begin
 writeln('Hello');
end.

 ppcrossarm -XParm-linux- -CfSOFT nslu_test.lpr -Xd -Xr/usr/armlib

Fails with:

Free Pascal Compiler version 2.3.1 [2007/05/03] for arm
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for ARM
Compiling nslu_test.lpr
Assembling nslu_test
Linking nslu_test
/usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_fini'
/usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_init'
nslu_test.lpr(7,17) Error: Error while linking
nslu_test.lpr(7,17) Fatal: There were 1 errors compiling module,
stopping
Fatal: Compilation aborted


Am i using the compiler switches wrong?
In /usr/armlib are the objects files of the slugosle build process ...



i vaguely remember getting this kind of problem too.  my arm-linux-ld
for the slug doesn't like my fpc object files at all.  as a last
resort i used the --allow-shlib-undefined option for ld and that
worked for me...


Thank you,

helmut


henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Helmut Hartl
   linux (v 2.3.1)
nslu_test.lpr Assembling nslu_test Linking nslu_test
/usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_fini'
/usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_init'
  
   i vaguely remember getting this kind of problem too.  my
   arm-linux-ld for the slug doesn't like my fpc object files
   at all.  as a last resort i used the --allow-shlib-undefined
   option for ld and that worked for me...

Well - Thank you - It now works and i got libc, sockets, ssl and much
of our code to run on the SLUG 
(I am really happy with possibilities of the crossarm compiler!!)
Now we have strange problems with range errors and so on, needs further
investigations ...

To circumvent the above mentioned error it is necessary to replace (copy
over) cprt0.o with prt0.o as
It seems that _fini and _init are not needed (strange ?) i found a
message from 2005 in the fpc list, in which this method was described.

BTW: I use the head revision of slugosle (openembedded) we took little
endian because debian chose that too.
If it helps you can download an archive of my compiled binutils under 
http://zeosdownloads.firmos.at/downloads/

Regards,
helmut

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Henry Vermaak

On 08/05/07, Helmut Hartl [EMAIL PROTECTED] wrote:

Well - Thank you - It now works and i got libc, sockets, ssl and much
of our code to run on the SLUG
(I am really happy with possibilities of the crossarm compiler!!)
Now we have strange problems with range errors and so on, needs further
investigations ...


excellent!


To circumvent the above mentioned error it is necessary to replace (copy
over) cprt0.o with prt0.o as
It seems that _fini and _init are not needed (strange ?) i found a
message from 2005 in the fpc list, in which this method was described.


i didn't really look into this and i think it might be hard to
investigate.  my programs seem to work as expected (to an extent) when
passing this option to ld.  it only happens when i link to the slug
libraries, though.


BTW: I use the head revision of slugosle (openembedded) we took little
endian because debian chose that too.
If it helps you can download an archive of my compiled binutils under
http://zeosdownloads.firmos.at/downloads/

Regards,
helmut



henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Florian Klaempfl
Helmut Hartl schrieb:
 why do you want to load libc dynamically?  may you can try
 the following approach (scroll to bottom):
 http://community.freepascal.org:1/docs-html/prog/progse53
 
 Well - that was what i would like to do - I thougt i try it
 using libc, as i hade some old code who was doing it just that way.
 
 But also the following:
 
 program nslu_test;
 {$mode objfpc}{$H+}
 {$linklib c}
 begin
  writeln('Hello');
 end. 
 
 ppcrossarm -XParm-linux- -CfSOFT nslu_test.lpr -Xd -Xr/usr/armlib
 
 Fails with:
 
 Free Pascal Compiler version 2.3.1 [2007/05/03] for arm
 Copyright (c) 1993-2007 by Florian Klaempfl
 Target OS: Linux for ARM
 Compiling nslu_test.lpr
 Assembling nslu_test
 Linking nslu_test
 /usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
 `_haltproc':
 : undefined reference to `_fini'
 /usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
 `_haltproc':
 : undefined reference to `_init'
 nslu_test.lpr(7,17) Error: Error while linking
 nslu_test.lpr(7,17) Fatal: There were 1 errors compiling module,
 stopping
 Fatal: Compilation aborted
 
 
 Am i using the compiler switches wrong? 
 In /usr/armlib are the objects files of the slugosle build process ...

What libc do you use?
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Henry Vermaak

On 08/05/07, Florian Klaempfl [EMAIL PROTECTED] wrote:


What libc do you use?


i've got libc-2.3.90.so, but if i look at the downloads, the makefile
used a version 2.3.4 from 2005-06-27 (and patched it a couple of
times, no doubt).

henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread Helmut Hartl
On 08/05/07, Florian Klaempfl [EMAIL PROTECTED] wrote:

 What libc do you use?

[EMAIL PROTECTED]:~$ /lib/libc.so.6 
GNU C Library development release version 2.3.90, by Roland McGrath et
al.
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 4.1.1.
Compiled on a Linux 2.6.18 system on 2007-05-03.
Available extensions:
GNU libio by Per Bothner
crypt add-on version 2.1 by Michael Glad and others
Support for some architectures added on, not maintained in glibc
core.
linuxthreads-0.10 by Xavier Leroy
BIND-8.2.3-T5B
libthread_db work sponsored by Alpha Processor Inc
NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk
For bug reporting instructions, please see:
http://www.gnu.org/software/libc/bugs.html.


During the make process (openembedded) the library seems to get patched.

helmut
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-08 Thread josepascual (almudi)
hi,

search *.o files in your crosstools and add diretory to ppcarm with -Fl

f.e. 

find /usr/local/arm/armlinux/gcc-3.4.1-glibc-2.3.2 -name *.o



 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:fpc-pascal-
 [EMAIL PROTECTED] En nombre de Helmut Hartl
 Enviado el: viernes, 04 de mayo de 2007 19:56
 Para: FPC-Pascal users discussions
 Asunto: RE: [fpc-pascal] some problem in SVN FPC for arm linux (v
 2.3.1)
 
  why do you want to load libc dynamically?  may you can try
  the following approach (scroll to bottom):
  http://community.freepascal.org:1/docs-html/prog/progse53
 
 Well - that was what i would like to do - I thougt i try it
 using libc, as i hade some old code who was doing it just that way.
 
 But also the following:
 
 program nslu_test;
 {$mode objfpc}{$H+}
 {$linklib c}
 begin
  writeln('Hello');
 end.
 
  ppcrossarm -XParm-linux- -CfSOFT nslu_test.lpr -Xd -Xr/usr/armlib
 
 Fails with:
 
 Free Pascal Compiler version 2.3.1 [2007/05/03] for arm
 Copyright (c) 1993-2007 by Florian Klaempfl
 Target OS: Linux for ARM
 Compiling nslu_test.lpr
 Assembling nslu_test
 Linking nslu_test
 /usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
 `_haltproc':
 : undefined reference to `_fini'
 /usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
 `_haltproc':
 : undefined reference to `_init'
 nslu_test.lpr(7,17) Error: Error while linking
 nslu_test.lpr(7,17) Fatal: There were 1 errors compiling module,
 stopping
 Fatal: Compilation aborted
 
 
 Am i using the compiler switches wrong?
 In /usr/armlib are the objects files of the slugosle build process
 ...
 
 Thank you,
 
 helmut
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
 
 __ Informacisn de NOD32, revisisn 2239 (20070504) __
 
 Este mensaje ha sido analizado con NOD32 antivirus system
 http://www.nod32.com


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-04 Thread Helmut Hartl
Hello again Henry,

  
   i used the mastermakefile to build the tool chain:
   http://www.nslu2-linux.org/wiki/Development/MasterMakefile
  

I followed the
http://www.nslu2-linux.org/wiki/HowTo/CrossCompileWithCentOS
Worked for me for CentOS 5, i built the slugosle 4.4 and flashed it.
Then i copy'ed the generated crosstoolchain and used it to make a 
cross compileing fpc 2.3.1 from svn head.

Many thanks for your help !!
A simple FPC only Hello World programm compiled works perfect on the
NSLU2.

   this is the _only_ toolchain that worked for me, since i had
   to link against external libs.  if you're writing a
   stand-alone fpc app, you might get away by using any old binutils.
  

But a you predicted :-( i now have problems linking against an external
library.
I want to use unit dynlibs to dynamically load the libc.so.6 on the
NLSU2 
(i have done this under i386 linux sucessfully)

But i get the following error:

Free Pascal Compiler version 2.3.1 [2007/05/03] for arm
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for ARM
Compiling nslu_test.lpr
Assembling nslu_test
Linking nslu_test
/usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_fini'
/usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_init'
nslu_test.lpr(6,17) Error: Error while linking
nslu_test.lpr(6,17) Fatal: There were 1 errors compiling module,
stopping


The source is:
---
program nslu_test;
{$mode objfpc}{$H+}
uses dynlibs;

begin
 writeln('Hello');
end.
---

Have you again any hints for me ?

Thanks,

helmut



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-04 Thread Marco van de Voort
 But a you predicted :-( i now have problems linking against an external
 library.
 I want to use unit dynlibs to dynamically load the libc.so.6 on the
 NLSU2 
 (i have done this under i386 linux sucessfully)

dynlibs links statically to libc.so.6 to access dlopen et al.

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-04 Thread Henry Vermaak

On 04/05/07, Helmut Hartl [EMAIL PROTECTED] wrote:

But a you predicted :-( i now have problems linking against an external
library.
I want to use unit dynlibs to dynamically load the libc.so.6 on the
NLSU2
(i have done this under i386 linux sucessfully)



why do you want to load libc dynamically?  may you can try the
following approach (scroll to bottom):

http://community.freepascal.org:1/docs-html/prog/progse53.html#x240-24300012.3

henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-04 Thread Helmut Hartl
 why do you want to load libc dynamically?  may you can try
 the following approach (scroll to bottom):
 http://community.freepascal.org:1/docs-html/prog/progse53

Well - that was what i would like to do - I thougt i try it
using libc, as i hade some old code who was doing it just that way.

But also the following:

program nslu_test;
{$mode objfpc}{$H+}
{$linklib c}
begin
 writeln('Hello');
end. 

 ppcrossarm -XParm-linux- -CfSOFT nslu_test.lpr -Xd -Xr/usr/armlib

Fails with:

Free Pascal Compiler version 2.3.1 [2007/05/03] for arm
Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Linux for ARM
Compiling nslu_test.lpr
Assembling nslu_test
Linking nslu_test
/usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_fini'
/usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function
`_haltproc':
: undefined reference to `_init'
nslu_test.lpr(7,17) Error: Error while linking
nslu_test.lpr(7,17) Fatal: There were 1 errors compiling module,
stopping
Fatal: Compilation aborted


Am i using the compiler switches wrong? 
In /usr/armlib are the objects files of the slugosle build process ...

Thank you,

helmut
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-02 Thread josepascual (almudi)
 hi jose
 
 
  Yes, there is it,
 
  I'm begining to use it. (to optain ppcrossarm I have had to delete
 all the
  problematic asm lines in arm.inc and mathu.inc)
 
  thank you henry,
 
 florian made a change to those files today.  it would be nice if you
 can test the change by doing svn update and then building ppcrossarm
 again.
 
 
  Jose Pascual
 
 
 good luck!

Yes, We have had good luck :-)

only resolving problem with make crossinstall 
Jose Pascual




___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-02 Thread Helmut Hartl
Hello,

   there might be a problem with your binutils.  are you sure you're 
   using the right binutils for your device?  what device are 
  you using, 
   exactly?

What binutils for crosscompiling are you using for the NSLU2?
Where do you obtain them?

Thank you,

helmut
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-02 Thread Henry Vermaak

On 02/05/07, Helmut Hartl [EMAIL PROTECTED] wrote:

Hello,

   there might be a problem with your binutils.  are you sure you're
   using the right binutils for your device?  what device are
  you using,
   exactly?

What binutils for crosscompiling are you using for the NSLU2?
Where do you obtain them?


i used the mastermakefile to build the tool chain:

http://www.nslu2-linux.org/wiki/Development/MasterMakefile

this makefile builds the firmware for the slug, so it builds the
toolchain first.  if you hit any problems with interworking, grep your
gcc sources for interwork and read the documentation on this.
there's a couple of options that you can pass to the linker regarding
thumb interworking that might come in handy for you.

this is the _only_ toolchain that worked for me, since i had to link
against external libs.  if you're writing a stand-alone fpc app, you
might get away by using any old binutils.



Thank you,

helmut


henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread josepascual (almudi)
 .
 make[6]: Leaving directory
 `/tmp/freepascal/svn/fpc_26_04_2007/packages/fcl-db/src/dbase'
 make -C src/sqlite all
 make[6]: Entering directory
 `/tmp/freepascal/svn/fpc_26_04_2007/packages/fcl-db/src/sqlite'
 make[6]: No se hace nada para `all'.
 make[6]: Leaving directory
  
   I'm making SVN (v2.3.1) FPC version for arm-linux. Finally I make
   ppcrossarm
   version for i386 but I can't installed
   because make want to install sqlite unit but this unit was not
 compile
   during make crossall,
  
   I suppose it's a problem in make files,
   any suggestion?
 
 You need to build and install the current (from 2.3.1) fpcmake first.
 

SVN version? or which? I can build snv version but install.


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak


 You need to build and install the current (from 2.3.1) fpcmake first.


SVN version? or which? I can build snv version but install.




cd utils/fpcm
make clean all
sudo make install

then try making the cross compiler again.

henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread josepascual (almudi)
  
   You need to build and install the current (from 2.3.1) fpcmake
 first.
  
 
  SVN version? or which? I can build snv version but install.
 
 
 
 cd utils/fpcm
 make clean all
 sudo make install
 
 then try making the cross compiler again.
 


I have done it, I'm going to svn/fpc/ directory and I run fpcmake
-Tarm-linux.

question:
a) should I run fpcmake -pw -Tarm-linux?
b) or should I run fpcmake -rpw -Tarm-linux? (recursive)
c) or only fpcmake -Tarm-linux

thanks,
Jose Pascual


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak

On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:


I have done it, I'm going to svn/fpc/ directory and I run fpcmake
-Tarm-linux.

question:
a) should I run fpcmake -pw -Tarm-linux?
b) or should I run fpcmake -rpw -Tarm-linux? (recursive)
c) or only fpcmake -Tarm-linux



fpcmake -rTall

you shouldn't have to do this if you haven't modified Makefile.fpc in
any of the directories.  it doesn't hurt, though.


thanks,
Jose Pascual



henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread josepascual (almudi)
 On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:
 
  I have done it, I'm going to svn/fpc/ directory and I run fpcmake
  -Tarm-linux.
 
  question:
  a) should I run fpcmake -pw -Tarm-linux?
  b) or should I run fpcmake -rpw -Tarm-linux? (recursive)
  c) or only fpcmake -Tarm-linux
 
 
 fpcmake -rTall
 
 you shouldn't have to do this if you haven't modified Makefile.fpc in
 any of the directories.  it doesn't hurt, though.

I have downloaded SVN version for 2.1.3. I have no patch anything as other
times before,

I'm compiling with -CfSOFT (I want to generate a ppcrossarm eabi)

make clean crossall CPU_TARGET=arm OS_TARGET=linux
CROSSBINDIR=/usr/local/arm/gcc-4.1.1-glibc-2.5-gnueabi/bin/
BINUTILSPREFIX=armv4t-crosstool-linux-gnueabi-
PP=/usr/local/lib/fpc/2.1.1/ppc386  OPT=-CfSOFT
.
.
.
/trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s: Assembler
messages:
/trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12610: Error:
selected processor does not support `rfs r0'
/trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12613: Error:
selected processor does not support `wfs r0'
system.pp(335) Error: Error while assembling exitcode 1
system.pp(335) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
.
.
.

I resolved it other times removing assembler code in rtl/arm/mathu.inc and
rtl/arm/arm.inc for rfs and wfs arm instruction,

but Is it correct?

extracted from rtl/arm/mathu.inc
.
.
{$if not(defined(gba)) and not(defined(nds))}
const
  _FPU_MASK_IM  =  $0001;  { invalid operation  }
  _FPU_MASK_ZM  =  $0002;  { divide by zero }
  _FPU_MASK_OM  =  $0004;  { overflow   }
  _FPU_MASK_UM  =  $0008;  { underflow  }
  _FPU_MASK_PM  =  $0010;  { inexact}
  _FPU_MASK_DM  =  $;  { denormalized operation }
  _FPU_MASK_ALL =  $001f;  { mask for all flags }

function FPU_GetCW : dword; nostackframe; assembler;
  asm
rfs r0
  end;


procedure FPU_SetCW(cw : dword); nostackframe; assembler;
  asm
wfs r0
  end;
{$endif}
.
.
.

What is gba and nds? 

extracted from rtl/arm/arm.inc

procedure fpc_cpuinit;
begin
{$if not(defined(wince)) and not(defined(gba)) and not(defined(nds))}
  asm
rfs r0
and r0,r0,#0xffe0
orr r0,r0,#0x0002
wfs r0
  end;
{$endif}
end;





___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak

On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:


I have downloaded SVN version for 2.1.3. I have no patch anything as other
times before,

I'm compiling with -CfSOFT (I want to generate a ppcrossarm eabi)

make clean crossall CPU_TARGET=arm OS_TARGET=linux
CROSSBINDIR=/usr/local/arm/gcc-4.1.1-glibc-2.5-gnueabi/bin/
BINUTILSPREFIX=armv4t-crosstool-linux-gnueabi-
PP=/usr/local/lib/fpc/2.1.1/ppc386  OPT=-CfSOFT
.
.
.
/trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s: Assembler
messages:
/trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12610: Error:
selected processor does not support `rfs r0'
/trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12613: Error:
selected processor does not support `wfs r0'
system.pp(335) Error: Error while assembling exitcode 1
system.pp(335) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
.


there might be a problem with your binutils.  are you sure you're
using the right binutils for your device?  what device are you using,
exactly?

henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread josepascual (almudi)
  I have downloaded SVN version for 2.1.3. I have no patch anything as
 other
  times before,
 
  I'm compiling with -CfSOFT (I want to generate a ppcrossarm eabi)
 
  make clean crossall CPU_TARGET=arm OS_TARGET=linux
  CROSSBINDIR=/usr/local/arm/gcc-4.1.1-glibc-2.5-gnueabi/bin/
  BINUTILSPREFIX=armv4t-crosstool-linux-gnueabi-
  PP=/usr/local/lib/fpc/2.1.1/ppc386  OPT=-CfSOFT
  .
  .
  .
  /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:
 Assembler
  messages:
  /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12610:
 Error:
  selected processor does not support `rfs r0'
  /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12613:
 Error:
  selected processor does not support `wfs r0'
  system.pp(335) Error: Error while assembling exitcode 1
  system.pp(335) Fatal: There were 2 errors compiling module, stopping
  Fatal: Compilation aborted
  .
 
 there might be a problem with your binutils.  are you sure you're
 using the right binutils for your device?  what device are you using,
 exactly?
 
I'm using a ARM920T (at91rm9200) with arm core ARMv4T
My toolchain is from http://www.freaknet.org/martin/crosstool/packages/

armv4t-crosstool-linux-gnueabi  4.1.1  4.1.1  2.5  6.5  48.7 MiB  49.0 MiB
The libraries are compiled for, and the default compiler target is armv4t
instead of the usual armv5t.  

rfs, wfs are floating point instruction for arm so it's not possible to
compile for a eabi (softfloat) version
of ppccrossarm-eabi (softfloat)

what do you think?



___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak

On 01/05/07, Henry Vermaak [EMAIL PROTECTED] wrote:

On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:

 I have downloaded SVN version for 2.1.3. I have no patch anything as other
 times before,

 I'm compiling with -CfSOFT (I want to generate a ppcrossarm eabi)

 make clean crossall CPU_TARGET=arm OS_TARGET=linux
 CROSSBINDIR=/usr/local/arm/gcc-4.1.1-glibc-2.5-gnueabi/bin/
 BINUTILSPREFIX=armv4t-crosstool-linux-gnueabi-
 PP=/usr/local/lib/fpc/2.1.1/ppc386  OPT=-CfSOFT
 .
 .
 .
 /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s: Assembler
 messages:
 /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12610: Error:
 selected processor does not support `rfs r0'
 /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12613: Error:
 selected processor does not support `wfs r0'
 system.pp(335) Error: Error while assembling exitcode 1
 system.pp(335) Fatal: There were 2 errors compiling module, stopping
 Fatal: Compilation aborted
 .

there might be a problem with your binutils.  are you sure you're
using the right binutils for your device?  what device are you using,
exactly?



actually, rfs is a floating point co-processor instruction (if i'm not
mistaken).  can you try this with latest fpc trunk, please, as -CfSOFT
might be broken for your fpc.  follow the instructions on
http://www.freepascal.org/develop.var#svn to get the latest trunk.

henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak

On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:

I'm using a ARM920T (at91rm9200) with arm core ARMv4T
My toolchain is from http://www.freaknet.org/martin/crosstool/packages/

armv4t-crosstool-linux-gnueabi  4.1.1  4.1.1  2.5  6.5  48.7 MiB  49.0 MiB
The libraries are compiled for, and the default compiler target is armv4t
instead of the usual armv5t.

rfs, wfs are floating point instruction for arm so it's not possible to
compile for a eabi (softfloat) version
of ppccrossarm-eabi (softfloat)

what do you think?



it should be possible, since i'm using fpc for arm softfloat here.
see if you can get it to work with latest trunk.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread josepascual (almudi)
 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:fpc-pascal-
 [EMAIL PROTECTED] En nombre de Henry Vermaak
 Enviado el: martes, 01 de mayo de 2007 13:36
 Para: FPC-Pascal users discussions
 Asunto: Re: [fpc-pascal] some problem in SVN FPC for arm linux (v
 2.3.1)
 
 On 01/05/07, Henry Vermaak [EMAIL PROTECTED] wrote:
  On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:
  
   I have downloaded SVN version for 2.1.3. I have no patch anything
 as other
   times before,
  
   I'm compiling with -CfSOFT (I want to generate a ppcrossarm eabi)
  
   make clean crossall CPU_TARGET=arm OS_TARGET=linux
   CROSSBINDIR=/usr/local/arm/gcc-4.1.1-glibc-2.5-gnueabi/bin/
   BINUTILSPREFIX=armv4t-crosstool-linux-gnueabi-
   PP=/usr/local/lib/fpc/2.1.1/ppc386  OPT=-CfSOFT
   .
   .
   .
   /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:
 Assembler
   messages:
   /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12610:
 Error:
   selected processor does not support `rfs r0'
   /trabajo/x86/freepascal/svn/fpc/rtl/units/arm-linux/system.s:12613:
 Error:
   selected processor does not support `wfs r0'
   system.pp(335) Error: Error while assembling exitcode 1
   system.pp(335) Fatal: There were 2 errors compiling module,
 stopping
   Fatal: Compilation aborted
   .
 
  there might be a problem with your binutils.  are you sure you're
  using the right binutils for your device?  what device are you using,
  exactly?
 
 
 actually, rfs is a floating point co-processor instruction (if i'm not
 mistaken).  can you try this with latest fpc trunk, please, as -CfSOFT
 might be broken for your fpc.  follow the instructions on
 http://www.freepascal.org/develop.var#svn to get the latest trunk.

I have donwloaded SVN, I have built and install for i386-linux so I have a
i386-linux version 2.3.1

I have made again crosscompiling using 2.3.1/ppc386 with CfSOFT and error
appear again. I think it can be
a error $IF, perhaps code with rfs and wfs shouldn't be compile with CfSOFT
flag.






___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread josepascual (almudi)
 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:fpc-pascal-
 [EMAIL PROTECTED] En nombre de Henry Vermaak
 Enviado el: martes, 01 de mayo de 2007 13:40
 Para: FPC-Pascal users discussions
 Asunto: Re: [fpc-pascal] some problem in SVN FPC for arm linux (v
 2.3.1)
 
 On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:
  I'm using a ARM920T (at91rm9200) with arm core ARMv4T
  My toolchain is from
 http://www.freaknet.org/martin/crosstool/packages/
  
  armv4t-crosstool-linux-gnueabi  4.1.1  4.1.1  2.5  6.5  48.7 MiB
 49.0 MiB
  The libraries are compiled for, and the default compiler target is
 armv4t
  instead of the usual armv5t.
  
  rfs, wfs are floating point instruction for arm so it's not possible
 to
  compile for a eabi (softfloat) version
  of ppccrossarm-eabi (softfloat)
 
  what do you think?
 
 
 it should be possible, since i'm using fpc for arm softfloat here.
 see if you can get it to work with latest trunk.

So can it be only a problem with eabi? (i'm a little confuse with eabi and
softfloat)


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread josepascual (almudi)
I have build cross compiling for arm ppc v2.3.1 but install,

I have resolved previuos install problem using 2.3.1 fpc i386-linux, but
now I have a different new problem with make crossinstall for arm-linux:

/usr/bin/install -m 755 -d /usr/local/lib/fpc/2.3.1/units/arm-linux/fppkg
/usr/bin/install -c -m 644 units/arm-linux/pkgwget.ppu
units/arm-linux/pkglnet.ppu units/arm-linux/pkglibcurl.ppu
units/arm-linux/fprepos.ppu units/arm-linux/fpxmlrep.ppu
units/arm-linux/pkgoptions.ppu units/arm-linux/pkgglobals.ppu
units/arm-linux/pkgmessages.ppu units/arm-linux/pkghandler.ppu
units/arm-linux/pkgmkconv.ppu units/arm-linux/pkgdownload.ppu
units/arm-linux/pkgarchive.ppu units/arm-linux/pkgfpmake.ppu
units/arm-linux/pkgcommands.ppu
/usr/local/lib/fpc/2.3.1/units/arm-linux/fppkg
/usr/bin/install: no se puede efectuar `stat' sobre
units/arm-linux/fpxmlrep.ppu: No existe el fichero o el directorio
/usr/bin/install: no se puede efectuar `stat' sobre
units/arm-linux/pkgmkconv.ppu: No existe el fichero o el directorio
/usr/bin/install: no se puede efectuar `stat' sobre
units/arm-linux/pkgarchive.ppu: No existe el fichero o el directorio
/usr/bin/install: no se puede efectuar `stat' sobre
units/arm-linux/pkgfpmake.ppu: No existe el fichero o el directorio
/usr/bin/install: no se puede efectuar `stat' sobre
units/arm-linux/pkgcommands.ppu: No existe el fichero o el directorio
make[5]: *** [fpc_install] Error 1
make[5]: Leaving directory `/trabajo/x86/freepascal/svn/fpc/utils/fppkg'
make[4]: *** [fppkg_install] Error 2
make[4]: Leaving directory `/trabajo/x86/freepascal/svn/fpc/utils'
make[3]: *** [utils_install] Error 2
make[3]: Leaving directory `/trabajo/x86/freepascal/svn/fpc'
make[2]: *** [installother] Error 2
make[2]: Leaving directory `/trabajo/x86/freepascal/svn/fpc'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/trabajo/x86/freepascal/svn/fpc'
make: *** [crossinstall] Error 2

any suggestion?

Jose Pascual

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak

On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:
...
...

make: *** [crossinstall] Error 2

any suggestion?



nope, i had this problem, too and couldn't fix it.  but, you will
probably find that you can use your /usr/lib/fpc/2.3.1/ppcrossarm now.


Jose Pascual



henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread josepascual (almudi)
 On 01/05/07, josepascual (almudi) [EMAIL PROTECTED] wrote:
 ...
 ...
  make: *** [crossinstall] Error 2
 
  any suggestion?
 
 
 nope, i had this problem, too and couldn't fix it.  but, you will
 probably find that you can use your /usr/lib/fpc/2.3.1/ppcrossarm now.
 

Yes, there is it,

I'm begining to use it. (to optain ppcrossarm I have had to delete all the
problematic asm lines in arm.inc and mathu.inc)

thank you henry,

Jose Pascual


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-05-01 Thread Henry Vermaak

hi jose



Yes, there is it,

I'm begining to use it. (to optain ppcrossarm I have had to delete all the
problematic asm lines in arm.inc and mathu.inc)

thank you henry,


florian made a change to those files today.  it would be nice if you
can test the change by doing svn update and then building ppcrossarm
again.



Jose Pascual



good luck!

henry
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-04-29 Thread Peter Vreman



.
make[6]: Leaving directory
`/tmp/freepascal/svn/fpc_26_04_2007/packages/fcl-db/src/dbase'
make -C src/sqlite all
make[6]: Entering directory
`/tmp/freepascal/svn/fpc_26_04_2007/packages/fcl-db/src/sqlite'
make[6]: No se hace nada para `all'.
make[6]: Leaving directory

 I'm making SVN (v2.3.1) FPC version for arm-linux. Finally I make
 ppcrossarm
 version for i386 but I can't installed
 because make want to install sqlite unit but this unit was not compile
 during make crossall,

 I suppose it's a problem in make files,
 any suggestion?


You need to build and install the current (from 2.3.1) fpcmake first.


Peter

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)

2007-04-27 Thread Jose Pascual
Hi,

I'm sorry I'm wrong, problem is not in sqlite, is in fcl-base,

please see in next dump screen,

.
.
.
make[6]: Leaving directory
`/tmp/freepascal/svn/fpc_26_04_2007/packages/fcl-db/src/dbase'
make -C src/sqlite all
make[6]: Entering directory
`/tmp/freepascal/svn/fpc_26_04_2007/packages/fcl-db/src/sqlite'
make[6]: No se hace nada para `all'.
make[6]: Leaving directory
`/tmp/freepascal/svn/fpc_26_04_2007/packages/fcl-db/src/sqlite'
fpcmake -p -Tarm-linux Makefile.fpc
Processing Makefile.fpc
Error: Target linux, package fcl-base not found
make[5]: *** [fpc_install] Error 1
make[5]: Leaving directory
`/tmp/freepascal/svn/fpc_26_04_2007/packages/fcl-db'
make[4]: *** [fcl-db_install] Error 2
.
.
.

thank you, 

Jose Pascual

 -Mensaje original-
 De: [EMAIL PROTECTED] [mailto:fpc-pascal-
 [EMAIL PROTECTED] En nombre de Jose Pascual
 Enviado el: viernes, 27 de abril de 2007 11:21
 Para: 'FPC-Pascal users discussions'
 Asunto: [fpc-pascal] some problem in SVN FPC for arm linux (v 2.3.1)
 
 Hi,
 
 I'm making SVN (v2.3.1) FPC version for arm-linux. Finally I make
 ppcrossarm
 version for i386 but I can't installed
 because make want to install sqlite unit but this unit was not compile
 during make crossall,
 
 I suppose it's a problem in make files,
 any suggestion?
 
 thank you in advanced
 best regards
 
 Jose Pascual
 
 
 
 
 ___
 fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
 http://lists.freepascal.org/mailman/listinfo/fpc-pascal
 
 __ Informacisn de NOD32, revisisn  (20070426) __
 
 Este mensaje ha sido analizado con  NOD32 antivirus system
 http://www.nod32.com


___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal