View Issue Details

IDProjectCategoryView StatusLast Update
0006692JEDI Code Library02 Installationpublic2023-11-11 19:42
ReporterdatagrafikkAssigned ToAHUser 
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product VersionVersion 2.5 (Subversion repository/Daily zips) 
Target VersionFixed in Version 
Summary0006692: Delphi XE: Compilation error with JCL 2.8 Build 5677
Description
Seems related to the changes to support Rad Studio 10.4

Installation log:

================================================================================
JCL 2.8 Testing Build 5677
==========RAD Studio XE=========================================================
Installed personalities :
32 bit Delphi
================================================================================
Multiple profile installation
Single profile installation
================================================================================
Saving conditional defines...
Loaded template for include file D:\Work\Components\Jedi\jcl\source\include\jcl.template.inc
Saved include file D:\Work\Components\Jedi\jcl\source\include\jcld15.inc
Building source\common library units for RAD Studio XE...
"C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\bin\dcc32.exe" bzip2 Jcl8087 JclAbstractContainers JclAlgorithms JclAnsiStrings JclArrayLists JclArraySets JclBase JclBinaryTrees JclCharsets JclCompilerUtils JclComplex JclCompression JclContainerIntf JclCounter JclDateTime JclDevToolsResources JclExprEval JclFileUtils JclHashMaps JclHashSets JclIDEUtils JclIniFiles JclLinkedLists JclLogic JclMath JclMIDI JclMime JclNotify JclPCRE JclPreProcessorAlgorithmsTemplates JclPreProcessorArrayListsTemplates JclPreProcessorArraySetsTemplates JclPreProcessorBinaryTreesTemplates JclPreProcessorContainer1DTemplates JclPreProcessorContainer2DTemplates JclPreProcessorContainerIntfTemplates JclPreProcessorContainerKnownMaps JclPreProcessorContainerKnownTypes JclPreProcessorContainerTemplates JclPreProcessorContainerTypes JclPreProcessorExcDlgTemplates JclPreProcessorHashMapsTemplates JclPreProcessorHashSetsTemplates JclPreProcessorLexer JclPreProcessorLinkedListsTemplates JclPreProcessorParser JclPreProcessorQueuesTemplates JclPreProcessorSortedMapsTemplates JclPreProcessorStacksTemplates JclPreProcessorTemplates JclPreProcessorTreesTemplates JclPreProcessorVectorsTemplates JclQueues JclResources JclRTTI JclSchedule JclSimpleXml JclSortedMaps JclStacks JclStatistics JclStreams JclStrHashMap JclStringConversions JclStringLists JclStrings JclSynch JclSysInfo JclSysUtils JclTrees JclUnicode JclUnitConv JclUnitVersioning JclUnitVersioningProviders JclUsesUtils JclValidation JclVectors JclWideStrings pcre zlibh --no-config -U"C:\Program Files (x86)\Embarcadero\RAD Studio\8.0\lib\Win32\release" -M -$X+ -$G+ -$H+ -$P+ -$U- -$T- -$V+ -$J+ -$Z1 -$L+ -$Y+ -$J+ -$C- -$D- -$I- -$O+ -$Q- -$R- -$W- -N0"D:\Work\Components\Jedi\jcl\lib\d15" -I"D:\Work\Components\Jedi\jcl\source\include" -U"D:\Work\Components\Jedi\jcl\source\common;D:\Work\Components\Jedi\jcl\source\windows;D:\Work\Components\Jedi\jcl\source\vcl" -R"D:\Work\Components\Jedi\jcl\source\common;D:\Work\Components\Jedi\jcl\source\windows;D:\Work\Components\Jedi\jcl\source\vcl"
Embarcadero Delphi for Win32 compiler version 22.0
Copyright (c) 1983,2010 Embarcadero Technologies, Inc.
JclAbstractContainers.pas(1144) Error: E2003 Undeclared identifier: 'GetTypeKind'
JclAbstractContainers.pas(1144) Error: E2571 Type parameter 'T' doesn't have class or interface constraint
...failed.
Steps To Reproducerun install.bat and install into Rad Studo XE
TagsNo tags attached.
Fixed in GIT commit
Fixed in SVN revision
IDE versionXE

Activities

HUMBERTO VLADIMIR MENA LAZO

2020-06-04 02:31

reporter   ~0021943

DIFICULDADES EM INTALAR JEDI NO DELPHI BERLIN

• Tinha 2 Delphi (Delphi 7 e o Delphi Berlin versão profissional, todos comprados e registrados)

• Desabilitei o antivírus

• Utilizei instaladores atualizados de jcl e jcvl.
https://translate.googleusercontent.com/translate_c?depth=1&hl=pt-BR&prev=search&rurl=translate.google.com&sl=fr&sp=nmt4&u=http://jcl.sourceforge.net/daily/&usg=ALkJrhi-04vdiUEMu5Bxze22OR81_MRjsA
https://translate.googleusercontent.com/translate_c?depth=1&hl=pt-BR&prev=search&rurl=translate.google.com&sl=fr&sp=nmt4&u=http://jvcl.sourceforge.net/daily/&usg=ALkJrhhg967ZI5hHblGMDmhQ4C2pNKTQng

• Compilar o Delphi 7 travava (abaixo o detalhe). Por isso exclui ele, e deixei só para instalar no Berlin, aí deu tudo certo.

mh

2020-08-09 10:51

reporter   ~0021951

Strange. When I look at the line reported by the compiler I see this method:

{$IFDEF SUPPORTS_GENERICS}
procedure TJclAbstractContainerBase.FreeAndNilIfObject<T>(var Value: T);
{$IFNDEF RTL280_UP}
var
  Info: PTypeInfo;
{$ENDIF ~RTL280_UP}
begin
  {$IFDEF RTL280_UP}
  if GetTypeKind(T) = tkClass then
  {$ELSE ~RTL280_UP}
  Info := TypeInfo(T);
  if Assigned(Info) and (Info.Kind = tkClass) then
  {$ENDIF ~RTL280_UP}
    FreeAndNil(TJclAbstractContainerBase_PObject(@Value)^)
  else
    Value := Default(T);
end;
{$ENDIF SUPPORTS_GENERICS}

The call to GetTypeKind would be line 1149 in my case, not 1144 and it's
properly wrapped in ifdefs for the RTL version.

datagrafikk

2020-08-10 07:41

reporter   ~0021953

I believe this issue was fixed shortly after it was reported, but has not been marked as such here in mantis.
(I don't see the option to close the issue myself)

https://github.com/project-jedi/jcl/commit/d8d6471212acb4ce527120c2fe2a79b94e3c7ccf

Issue History

Date Modified Username Field Change
2020-05-27 11:56 datagrafikk New Issue
2020-06-04 02:31 HUMBERTO VLADIMIR MENA LAZO Note Added: 0021943
2020-08-09 10:51 mh Note Added: 0021951
2020-08-10 07:41 datagrafikk Note Added: 0021953
2023-11-11 19:42 AHUser Assigned To => AHUser
2023-11-11 19:42 AHUser Status new => closed
2023-11-11 19:42 AHUser Resolution open => fixed