<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">There is a statement</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"> 90 {$ENDIF}</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">Its outside of {$IFDEF } is not listed .<br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">It is very likely that <br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">mrNone..mrLast</div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">values are defined outside of ( IFDEF , ENDIF ) pairs .<br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large">Mehmet Erol Sanliturk <br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br></div><div class="gmail_default" style="font-family:monospace;font-size:large"><br>
</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 10, 2023 at 7:59 PM Bo Berglund via lazarus <<a href="mailto:lazarus@lists.lazarus-ide.org">lazarus@lists.lazarus-ide.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am setting up my new RPi3B with 64 bit Pi-OS Bookworm and have now come to<br>
FreePascal/Lazarus.<br>
<br>
Freepascal is built from sources (trunk of 3.2.3) using a seed compiler 3.2.2<br>
earlier obtained as an apt install on an RPi4B also running Pi-OS 64 bit<br>
Bookworm.<br>
<br>
On this new system I want to build from sources to get everything inside my<br>
$HOME environment. That is why I did not install fpc 3.2.2 via apt.<br>
Fpc built just fine with these sources so that is how I got 3.2.3.<br>
<br>
<br>
Note that I am using fpc 3.2.3 head revision on this system since no other<br>
version seems to be possible to build on the 64 bit Pi-OS.<br>
But that version builds without problems.<br>
<br>
<br>
So I am using the self-compiled fpc 3.2.3 to build Lazarus 2.2.6 and it fails<br>
during build with the following exit message (only end of output shown):<br>
<br>
make bigide....<br>
<br>
(9009) Assembling translations<br>
(3104) Compiling uitypes.pas<br>
/home/bosse/devtools/lazarus/2.2.6/components/lazutils/uitypes.pas(105,14)<br>
Error: (3285) Expected another 2 array elements<br>
/home/bosse/devtools/lazarus/2.2.6/components/lazutils/uitypes.pas(93,58) Fatal:<br>
(10026) There were 1 errors compiling module, stopping<br>
Fatal: (1018) Compilation aborted<br>
make[1]: *** [Makefile:3394: lazutils.ppu] Error 1<br>
make[1]: Leaving directory<br>
'/home/bosse/devtools/lazarus/2.2.6/components/lazutils'<br>
make: *** [Makefile:3802: lazutils] Error 2<br>
<br>
This is how the file looks like at the location indicated:<br>
<br>
62 interface<br>
63<br>
64 type<br>
65 // Message dialog related<br>
66 TMsgDlgType = (mtWarning, mtError, mtInformation, mtConfirmation,<br>
mtCustom);<br>
67 TMsgDlgBtn = (mbYes, mbNo, mbOK, mbCancel, mbAbort, mbRetry, mbIgnore,<br>
68 mbAll, mbNoToAll, mbYesToAll, mbHelp, mbClose);<br>
69 TMsgDlgButtons = set of TMsgDlgBtn;<br>
70<br>
71 // ModalResult<br>
72 TModalResult = low(Integer)..high(Integer);<br>
73 PModalResult = ^TModalResult;<br>
74<br>
75 const<br>
76 // Used for ModalResult<br>
77 mrNone = 0;<br>
78 mrOK = mrNone + 1;<br>
79 mrCancel = mrNone + 2;<br>
80 mrAbort = mrNone + 3;<br>
81 mrRetry = mrNone + 4;<br>
82 mrIgnore = mrNone + 5;<br>
83 mrYes = mrNone + 6;<br>
84 mrNo = mrNone + 7;<br>
85 mrAll = mrNone + 8;<br>
86 mrNoToAll = mrNone + 9;<br>
87 mrYesToAll = mrNone + 10;<br>
88 mrClose = mrNone + 11;<br>
89 mrLast = mrClose;<br>
90 {$ENDIF}<br>
91<br>
92 // String representation of ModalResult values<br>
93 ModalResultStr: array[mrNone..mrLast] of shortstring = (<br>
94 'mrNone',<br>
95 'mrOk',<br>
96 'mrCancel',<br>
97 'mrAbort',<br>
98 'mrRetry',<br>
99 'mrIgnore',<br>
100 'mrYes',<br>
101 'mrNo',<br>
102 'mrAll',<br>
103 'mrNoToAll',<br>
104 'mrYesToAll',<br>
105 'mrClose');<br>
106<br>
107<br>
<br>
To me it seems like the number of elements is not in error...<br>
<br>
What can cause this failure and how can I solve it?<br>
<br>
<br>
-- <br>
Bo Berglund<br>
Developer in Sweden<br>
<br>
-- <br>
_______________________________________________<br>
lazarus mailing list<br>
<a href="mailto:lazarus@lists.lazarus-ide.org" target="_blank">lazarus@lists.lazarus-ide.org</a><br>
<a href="https://lists.lazarus-ide.org/listinfo/lazarus" rel="noreferrer" target="_blank">https://lists.lazarus-ide.org/listinfo/lazarus</a><br>
</blockquote></div></div>