Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2022-04

Package build failure under i386-win32

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

J. Gareth Moreton

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.

Gareth aka. Kit

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

Reply by email

Florian Klämpfl
to J. Gareth Moreton
Show quoted text 5 lines
Am 03.04.2022 um 15:44 schrieb J. Gareth Moreton via fpc-devel : 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?

Reply by email

Marco van de Voort
to J. Gareth Moreton: It seems at some point, something was introduced to the compiler that causes a package to…
J. Gareth Moreton wrote 10 lines
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.

Note that that file changed last week:
*54c95288f868a762f1caa9d8e62fa6f193237cf2
<https://gitlab.com/freepascal.org/fpc/source/-/commit/54c95288f868a762f1caa9d8e62fa6f193237cf2>* marcoonthegit Sat Mar 26 15:00:15 2022

Reply by email

J. Gareth Moreton
to Florian Klämpfl: What kind of error?

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

Florian Klämpfl wrote 12 lines
> Am 03.04.2022 um 15:44 schrieb J. Gareth Moreton via fpc-devel : > > 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 - 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

Reply by email