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

michael.vancanneyt at wisa.be michael.vancanneyt at wisa.be
Fri May 27 14:50:59 CEST 2011

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.


More information about the fpc-devel mailing list