Skip to content

Cannot compile fpspreadsheet after e7145f5f

Summary

Cannot compile fpspreadsheet after e7145f5f.

System Information

  • Operating system: Windows
  • Processor architecture: x86
  • Compiler version: trunk
  • Device: Computer

Steps to reproduce

Compile laz_fpspreadsheet.lpk
I found FPC exception on fpspreadsheet 1.16 and 1.10.1.

Example Project

What is the current bug behavior?

FPC raise internal exception.

What is the expected (correct) behavior?

No error.

Relevant logs and/or screenshots

(3104) Compiling .\source\common\xlsescher.pas
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsescher.pas(530,62) Hint: (4035) Mixing signed expressions and longwords gives a 64 bit result
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsescher.pas(528,3) Note: (5027) Local variable "rec" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(977,8) Note: (5027) Local variable "recSize" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(186,7) Hint: (5026) Value parameter "APassword" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(186,31) Hint: (5026) Value parameter "AParams" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(2294,8) Note: (5027) Local variable "lCodePage" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(2456,31) Hint: (5057) Local variable "guid" does not seem to be initialized
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(2648,64) Hint: (5026) Value parameter "AData2" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(275,50) Hint: (5026) Value parameter "AParams" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(276,47) Hint: (5026) Value parameter "AParams" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(218,28) Hint: (5026) Value parameter "AStream" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(218,46) Hint: (5026) Value parameter "ACell" is assigned but never used
C:\fpcupdeluxe\extras\fpspreadsheet\.\source\common\xlsbiff8.pas(3102,4) Warning: (2024) User defined: TODO: Fix writing of cell comments in BIFF8 (file is readable by OpenOffice, but not by Excel)
Error: (1026) Compilation raised exception internally
An unhandled exception occurred at $00000000:
EAccessViolation: Access violation
  $00000000

Error: C:\fpcupdeluxe\fpc\bin\i386-win32\ppc386.exe returned an error exitcode

Due to FPC build fails with EXTDEBUG, I cannot get detail log.

Possible fixes

patch_nodeprune.diff

Edited by rasberryrabbit
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information