[fpc-devel] Package build failure under i386-win32

J. Gareth Moreton gareth at moreton-family.com
Sun Apr 3 17:45:51 CEST 2022


Here's the log:

...
Compiling .\chm\src\lzxcompressthread.pas
External command 
"C:/Users/garet/Documents/programming/fpc-opts/compiler/ppc386.exe 
-Twin32 -FUchm\units\i386-win32\ 
-FuC:\Users\garet\Documents\programming\fpc-opts\rtl\units\i386-win32\ 
-FuC:\Users\garet\Documents\programming\fpc-opts\packages\fcl-xml\units\i386-win32\ 
-FuC:\Users\garet\Documents\programming\fpc-opts\packages\fcl-base\units\i386-win32\ 
-FuC:\Users\garet\Documents\programming\fpc-opts\packages\rtl-objpas\units\i386-win32\ 
-FuC:\Users\garet\Documents\programming\fpc-opts\packages\rtl-generics\units\i386-win32\ 
-Fuchm\src -Fichm\src -Ur -Xs -O2 -n -CriotR -a -di386 -dRELEASE -XX -CX 
-Sc -viq chm\BuildUnit_chm.pp" failed with exit code 1. Console output:
Target OS: Win32 for i386
Compiling chm\BuildUnit_chm.pp
Compiling .\chm\src\chmbase.pas
Assembling chmbase
Compiling .\chm\src\chmtypes.pas
Assembling chmtypes
Compiling .\chm\src\chmspecialfiles.pas
Assembling chmspecialfiles
Compiling .\chm\src\paslznonslide.pas
Assembling paslznonslide
Compiling .\chm\src\paslzxcomp.pas
Assembling paslzxcomp
Compiling .\chm\src\fasthtmlparser.pas
Assembling fasthtmlparser
Compiling .\chm\src\htmlutil.pas
Assembling htmlutil
Compiling .\chm\src\htmlindexer.pas
Assembling htmlindexer
Compiling .\chm\src\chmfiftimain.pas
Assembling chmfiftimain
Compiling .\chm\src\chmwriter.pas
Compiling .\chm\src\chmsitemap.pas
Assembling chmsitemap
Compiling .\chm\src\lzxcompressthread.pas
Assembling lzxcompressthread
chmwriter.pas(1192,35) Error: Range check error while evaluating 
constants (-1 must be between 0 and 4294967295)
chmwriter.pas(1207,35) Error: Range check error while evaluating 
constants (-1 must be between 0 and 4294967295)
chmwriter.pas(1213,35) Error: Range check error while evaluating 
constants (-1 must be between 0 and 4294967295)
chmwriter.pas(1219,35) Error: Range check error while evaluating 
constants (-1 must be between 0 and 4294967295)
chmwriter.pas(1225,35) Error: Range check error while evaluating 
constants (-1 must be between 0 and 4294967295)
chmwriter.pas(1234,33) Error: Range check error while evaluating 
constants (-1 must be between 0 and 4294967295)
chmwriter.pas(1246,35) Error: Range check error while evaluating 
constants (-1 must be between 0 and 4294967295)
chmwriter.pas(2568) Fatal: There were 7 errors compiling module, stopping
Fatal: Compilation aborted

The installer encountered the following error:
Compilation of "BuildUnit_chm.pp" failed

As mentioned, it doesn't show up if -a is omitted.

Gareth aka. Kit

On 03/04/2022 15:42, Florian Klämpfl via fpc-devel wrote:
>
>> Am 03.04.2022 um 15:44 schrieb J. Gareth Moreton via fpc-devel <fpc-devel at lists.freepascal.org>:
>>
>> Hi everyone,
>>
>> It seems at some point, something was introduced to the compiler that causes a package to fail to build (specifically packages\chm\src\chmwriter.pas) with an assembler-level range check error.  If you run "make all" under i386-win32 with "-CriotR -a" options, the error is triggered.  It only occurs under -CriotR and, notably, it does NOT occur when -a is omitted.
> What kind of error?
>
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
>

-- 
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus



More information about the fpc-devel mailing list