View Issue Details

IDProjectCategoryView StatusLast Update
0034852FPCCompilerpublic2019-05-15 17:22
Reportermad_sickAssigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status newResolutionopen 
Platformx86OSLinuxOS Version
Product Version3.2.0Product Build 
Target VersionFixed in Version 
Summary0034852: Internal error 200706094
DescriptionI've already reported it to ZeosLib (https://sourceforge.net/p/zeoslib/tickets/326/) but as it's a compiler issue, I'll report it here too.
Using Free Pascal Compiler version 3.2.0-beta [2019/01/11] for i386, with x64 version it compiles fine.
I've made a small test project to reproduce it from ZFastCode unit.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId
FPCTarget
Attached Files
  • ZFastCodeIssue.pas (352 bytes)
    program ZFastCodeIssue;
    
    {$MODE Delphi}
    
    {$DEFINE NEED_TYPED_UINT64_CONSTANTS}
    
    {$Q-} //disable OverflowCheck
    {$R-} //disable RangeCheck
    
    uses
      SysUtils;
      
    var
      Value: UInt64;
    
    begin
      // fatal error on x86
      Value := Value - {$IFDEF NEED_TYPED_UINT64_CONSTANTS}UInt64(10000000000000000000){$ELSE}10000000000000000000{$ENDIF};
    end.
    ZFastCodeIssue.pas (352 bytes)

Activities

mad_sick

2019-01-11 16:06

reporter  

ZFastCodeIssue.pas (352 bytes)
program ZFastCodeIssue;

{$MODE Delphi}

{$DEFINE NEED_TYPED_UINT64_CONSTANTS}

{$Q-} //disable OverflowCheck
{$R-} //disable RangeCheck

uses
  SysUtils;
  
var
  Value: UInt64;

begin
  // fatal error on x86
  Value := Value - {$IFDEF NEED_TYPED_UINT64_CONSTANTS}UInt64(10000000000000000000){$ELSE}10000000000000000000{$ENDIF};
end.
ZFastCodeIssue.pas (352 bytes)

mad_sick

2019-01-11 16:07

reporter   ~0113329

Might be related to https://bugs.freepascal.org/view.php?id=29620

mad_sick

2019-01-20 13:12

reporter   ~0113520

*push*

Marco van de Voort

2019-02-09 22:16

manager   ~0113998

Last edited: 2019-02-09 22:16

View 2 revisions

3.3.1 is ok. No, the related issue is too old. 3.2.0 only branched last summer

Garcimore

2019-05-15 17:22

reporter   ~0116210

Hi,

I have the same issue with the same lib (ZeosLib).

latest 3.2 beta and 3.3.1 (from trunk) result in Internal error when compiling for i386. For x86_64 it's okay.

Free Pascal Compiler version 3.3.1 [2019/05/15] for i386
Copyright (c) 1993-2018 by Florian Klaempfl and others
Target OS: Linux for i386
[---cropped---]
Compiling ./libs/ZeosLib/dbc/ZDbcMySql.pas
Compiling ./libs/ZeosLib/core/ZCompatibility.pas
Compiling ./libs/ZeosLib/core/ZConnProperties.pas
Compiling ./libs/ZeosLib/dbc/ZDbcIntfs.pas
Compiling ./libs/ZeosLib/core/ZClasses.pas
Compiling ./libs/ZeosLib/core/ZMessages.pas
Writing Resource String Table file: ZMessages.rsj
Compiling ./libs/ZeosLib/core/ZCollections.pas
Compiling ./libs/ZeosLib/core/ZTokenizer.pas
Compiling ./libs/ZeosLib/core/ZFastCode.pas
ZFastCode.pas(3052,5) Fatal: Internal error 200706094
Fatal: Compilation aborted
Error: /usr/local/bin/ppcross386 returned an error exitcode

Issue History

Date Modified Username Field Change
2019-01-11 16:06 mad_sick New Issue
2019-01-11 16:06 mad_sick File Added: ZFastCodeIssue.pas
2019-01-11 16:07 mad_sick Note Added: 0113329
2019-01-20 13:12 mad_sick Note Added: 0113520
2019-02-09 22:16 Marco van de Voort Note Added: 0113998
2019-02-09 22:16 Marco van de Voort Note Edited: 0113998 View Revisions
2019-05-15 17:22 Garcimore Note Added: 0116210