[fpc-devel] fpc 2.5.1. broken for arm-wince

2011-05-27 Thread Vincent Snijders
Hi,

I get the following error while compiling fpc 2.5.1 for arm-wince:

c:/lazarus/source/fpcbuild/trunk/fpcsrc/compiler/ppcrossarm.exe
-Twince -Parm -XParm-wince- -Xr -Ur -Xs -O2 -n -S2h
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/rtl/units/arm-wince
-Fisrc/wince -Fisrc -Fisrc/win -FDc:\lazarus\source\binutils\arm-wince
-FE. -FUunits/arm-wince -darm -dRELEASE  src/eventlog.pp
eventlog.inc(35,37) Error: Identifier not found OpenEventLog
eventlog.inc(43,16) Error: Identifier not found CloseEventLog
eventlog.inc(66,21) Error: Identifier not found ReportEvent
eventlog.inc(149,31) Error: Identifier not found EVENTLOG_INFORMATION_TYPE
eventlog.inc(149,31) Error: Illegal expression
eventlog.inc(150,27) Error: Identifier not found EVENTLOG_WARNING_TYPE
eventlog.inc(150,27) Error: Illegal expression
eventlog.inc(150,47) Error: Identifier not found EVENTLOG_ERROR_TYPE
eventlog.inc(150,47) Error: Illegal expression
eventlog.inc(151,28) Error: Identifier not found EVENTLOG_AUDIT_SUCCESS
eventlog.inc(151,28) Error: Illegal expression
eventlog.pp(343) Fatal: There were 11 errors compiling module, stopping
Fatal: Compilation aborted
make.exe[2]: *** [eventlog.ppu] Error 1
make.exe[2]: Leaving directory
`C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fcl-base'
make.exe[1]: *** [fcl-base_all] Error 2
make.exe[1]: Leaving directory
`C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages'

Does anybody else get this error?

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


[fpc-devel] Re: fpc 2.5.1. broken for arm-wince

2011-05-27 Thread Schindler Karl-Michael
 Hi,
 
 I get the following error while compiling fpc 2.5.1 for arm-wince:
 
 c:/lazarus/source/fpcbuild/trunk/fpcsrc/compiler/ppcrossarm.exe
 -Twince -Parm -XParm-wince- -Xr -Ur -Xs -O2 -n -S2h
 -FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/rtl/units/arm-wince
 -Fisrc/wince -Fisrc -Fisrc/win -FDc:\lazarus\source\binutils\arm-wince
 -FE. -FUunits/arm-wince -darm -dRELEASE  src/eventlog.pp
 eventlog.inc(35,37) Error: Identifier not found OpenEventLog
 eventlog.inc(43,16) Error: Identifier not found CloseEventLog
 eventlog.inc(66,21) Error: Identifier not found ReportEvent
 eventlog.inc(149,31) Error: Identifier not found EVENTLOG_INFORMATION_TYPE
 eventlog.inc(149,31) Error: Illegal expression
 eventlog.inc(150,27) Error: Identifier not found EVENTLOG_WARNING_TYPE
 eventlog.inc(150,27) Error: Illegal expression
 eventlog.inc(150,47) Error: Identifier not found EVENTLOG_ERROR_TYPE
 eventlog.inc(150,47) Error: Illegal expression
 eventlog.inc(151,28) Error: Identifier not found EVENTLOG_AUDIT_SUCCESS
 eventlog.inc(151,28) Error: Illegal expression
 eventlog.pp(343) Fatal: There were 11 errors compiling module, stopping
 Fatal: Compilation aborted
 make.exe[2]: *** [eventlog.ppu] Error 1
 make.exe[2]: Leaving directory
 `C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fcl-base'
 make.exe[1]: *** [fcl-base_all] Error 2
 make.exe[1]: Leaving directory
 `C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages'
 
 Does anybody else get this error?
 
 Vincent

svn from today version 17569

make all CPU_TARGET=arm OS_TARGET=wince 

on Mac OS X 10.6, starting with fpc-2.4.4 gives the same error.

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


Re: [fpc-devel] test suite, problem with missing libraries on the target

2011-05-27 Thread Bernd Mueller

Jonas Maebe wrote:


On 23 May 2011, at 11:49, Bernd Mueller wrote:

I am running the test suite with remote execution (from a Windows 
host) on an ARM-Linux target. Some test programs fail at runtime, 
because they depend on libraries, which were not automatically copied 
to the target. For example:


  Failed to run test/tlib1b.pp 2011/01/21 18:06:08 (16)
  /mnt/tlib1b: can't load library 'libtlib1a.so'

My target has very low resources so that I can not run the test suite 
directly on the target. How can my problem be solved?


Maybe you are using TEST_DELTEMP=1? If so, remove it if you have enough 
disk space on the remote target. Most test sources that are later on 
used by other tests don't contain the necessary { %neededafter } 
directive, so they are immediately deleted even when they are still 
required later


Alternatively, you can submit a patch that adds { %neededafter } to all 
affected tests).


I have enough FLASH memory, so I am not using TEST_DELTEMP=1. I had a 
look into the test suite source and I think, that the test suite is not 
able to copy the libraries to the target.


I attached a small patch, which could be a solution for the problem. I 
am using the parameter of the %needlibrary directive to get the 
information, which library should be copied. For example in tlib1b.pp, 
the directive is expanded to { %needlibrary=tlib1a }. This works for me.


If you think, this patch could be the right way to copy the libraries, I 
would submit a second patch which expands all required %needlibrary 
directives.


Regards, Bernd.
Index: tests/utils/dotest.pp
===
--- tests/utils/dotest.pp   (Revision 17059)
+++ tests/utils/dotest.pp   (Arbeitskopie)
@@ -811,6 +811,7 @@
   index: integer;
   EndTicks,
   StartTicks : int64;
+  LibraryFileName, LocalLibraryFile: string;
   function ExecuteRemote(const prog,args:string):boolean;
 var
   Trials : longint;
@@ -913,6 +914,21 @@
   s:=copy(s,index+1,length(s)-index);
 until false;
   end;
+
+  { copy library to target }
+  if (CompilerTarget = 'linux') and (Config.LibraryName  '') then
+  begin
+ LibraryFileName:= 'lib' + Config.LibraryName + '.so';
+ LocalPath:=SplitPath(PPFile[current]);
+ LocalLibraryFile:= OutputDir + '/' + LocalPath + LibraryFileName;
+ execres:=ExecuteRemote(rcpprog,RemotePara+' '+ LocalLibraryFile+' 
'+RemoteAddr+':' + RemotePath+'/'+ LibraryFileName);
+ if not execres then
+ begin
+   Verbose(V_normal, 'Could not copy library ' + LibraryFileName);
+   goto done;
+ end;
+  end;
+
   { rsh doesn't pass the exitcode, use a second command to print the 
exitcode
 on the remoteshell to stdout }
   if DoVerbose and (rshprog='plink') then
@@ -936,6 +952,8 @@
 execcmd:=execcmd+' ./'+SplitFileName(TestRemoteExe)
   else
 execcmd:=execcmd+' '+TestRemoteExe;
+  if Config.LibraryName  '' then
+execcmd:=execcmd+' ; export LD_LIBRARY_PATH='+RemotePath;
   execcmd:=execcmd+' ; echo TestExitCode: $?';
   if (deAfter in DelExecutable) and
  not Config.NeededAfter then
Index: tests/utils/testu.pp
===
--- tests/utils/testu.pp(Revision 17059)
+++ tests/utils/testu.pp(Arbeitskopie)
@@ -28,6 +28,7 @@
 KnownCompileError : longint;
 NeedRecompile : boolean;
 NeedLibrary   : boolean;
+LibraryName   : string;
 NeededAfter   : boolean;
 IsInteractive : boolean;
 IsKnownRunError,
@@ -212,7 +213,10 @@
 r.NoRun:=true
   else
if GetEntry('NEEDLIBRARY') then
-r.NeedLibrary:=true
+begin
+  r.NeedLibrary:=true;
+  r.LibraryName:= res;
+end
   else
if GetEntry('NEEDEDAFTER') then
 r.NeededAfter:=true
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] test suite, problem with missing libraries on the target

2011-05-27 Thread Jonas Maebe


On 27 May 2011, at 14:56, Bernd Mueller wrote:

I have enough FLASH memory, so I am not using TEST_DELTEMP=1. I had  
a look into the test suite source and I think, that the test suite  
is not able to copy the libraries to the target.


I attached a small patch, which could be a solution for the problem.  
I am using the parameter of the %needlibrary directive to get the  
information, which library should be copied. For example in  
tlib1b.pp, the directive is expanded to { %needlibrary=tlib1a }.  
This works for me.


If you think, this patch could be the right way to copy the  
libraries, I would submit a second patch which expands all required  
%needlibrary directives.


Isn't it easier to simply copy all compiled libraries to the target  
when they are compiled (just like compiled test programs are copied)?  
I thought that was already being done, but if I understand you  
correctly that's not the case.



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


Re: [fpc-devel] Re: fpc 2.5.1. broken for arm-wince

2011-05-27 Thread michael . vancanneyt



On Fri, 27 May 2011, Schindler Karl-Michael wrote:


Hi,

I get the following error while compiling fpc 2.5.1 for arm-wince:

c:/lazarus/source/fpcbuild/trunk/fpcsrc/compiler/ppcrossarm.exe
-Twince -Parm -XParm-wince- -Xr -Ur -Xs -O2 -n -S2h
-FuC:/lazarus/source/fpcbuild/trunk/fpcsrc/rtl/units/arm-wince
-Fisrc/wince -Fisrc -Fisrc/win -FDc:\lazarus\source\binutils\arm-wince
-FE. -FUunits/arm-wince -darm -dRELEASE  src/eventlog.pp
eventlog.inc(35,37) Error: Identifier not found OpenEventLog
eventlog.inc(43,16) Error: Identifier not found CloseEventLog
eventlog.inc(66,21) Error: Identifier not found ReportEvent
eventlog.inc(149,31) Error: Identifier not found EVENTLOG_INFORMATION_TYPE
eventlog.inc(149,31) Error: Illegal expression
eventlog.inc(150,27) Error: Identifier not found EVENTLOG_WARNING_TYPE
eventlog.inc(150,27) Error: Illegal expression
eventlog.inc(150,47) Error: Identifier not found EVENTLOG_ERROR_TYPE
eventlog.inc(150,47) Error: Illegal expression
eventlog.inc(151,28) Error: Identifier not found EVENTLOG_AUDIT_SUCCESS
eventlog.inc(151,28) Error: Illegal expression
eventlog.pp(343) Fatal: There were 11 errors compiling module, stopping
Fatal: Compilation aborted
make.exe[2]: *** [eventlog.ppu] Error 1
make.exe[2]: Leaving directory
`C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages/fcl-base'
make.exe[1]: *** [fcl-base_all] Error 2
make.exe[1]: Leaving directory
`C:/lazarus/source/fpcbuild/trunk/fpcsrc/packages'

Does anybody else get this error?

Vincent


svn from today version 17569

make all CPU_TARGET=arm OS_TARGET=wince

on Mac OS X 10.6, starting with fpc-2.4.4 gives the same error.


The problem is most likely related to the ordering of the include paths.

I have changed the paths so it works correctly for win32 (it was including
the wrong file, causing all logging to go to a file instead of the system
log), but it may be that for other platforms, the ordering must be checked.

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


Re: [fpc-devel] test suite, problem with missing libraries on the target

2011-05-27 Thread Bernd Mueller

Jonas Maebe wrote:


On 27 May 2011, at 14:56, Bernd Mueller wrote:

If you think, this patch could be the right way to copy the libraries, 
I would submit a second patch which expands all required %needlibrary 
directives.


Isn't it easier to simply copy all compiled libraries to the target when 
they are compiled (just like compiled test programs are copied)? I 
thought that was already being done, but if I understand you correctly 
that's not the case.


you are right, it would probably be better to copy the libraries to the 
target when the are compiled. I have to look into the code, how that can 
be done. All I can say for now (without the patch) the libraries were 
produced by the compiler, but remain on the host.


Regards, Bernd.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Free Pascal 2.4.4 available

2011-05-27 Thread Nikolay Nikolov

The go32v2 download links are broken:

http://freepascal.org/down/i386/go32v2-ftp.freepascal.org.var

The file names should be dos244.zip and dos244full.zip, not dos242.zip 
and dos242full.zip


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


Re: [fpc-devel] Free Pascal 2.4.4 available

2011-05-27 Thread Marco van de Voort
In our previous episode, Nikolay Nikolov said:
 The go32v2 download links are broken:
 
 http://freepascal.org/down/i386/go32v2-ftp.freepascal.org.var
 
 The file names should be dos244.zip and dos244full.zip, not dos242.zip 
 and dos242full.zip

Thanks, fixed in SVN, visible tomorrow.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel