fixes_3 doesn't build lazarus / 21-General ---------------------------------------------------------------------- Grahame Grieve · 2023-11-24 18:38 Fixes 3 doesn't build for me - darwin/aarch64: Code: [Select](3104) Compiling uitypes.pas /Users/grahamegrieve/lazarus/laz1/components/lazutils/uitypes.pas(107, 5) Fatal: (2003) Syntax error, ")" expected but "," found When I look in the code, I don't follow all the conditionals, but it really doesn't look it'll compile for anyone - the question is whether mrContinue and mrTryAgain are defined, and it seems the code doesn't line up internally about that. is there a better place to report this? ---------------------------------------------------------------------- dsiders · 2023-11-24 19:06 Quote from: Grahame Grieve on November 24, 2023, 07:38:48 pmFixes 3 doesn't build for me - darwin/aarch64: Code: [Select](3104) Compiling uitypes.pas /Users/grahamegrieve/lazarus/laz1/components/lazutils/uitypes.pas(107, 5) Fatal: (2003) Syntax error, ")" expected but "," found When I look in the code, I don't follow all the conditionals, but it really doesn't look it'll compile for anyone - the question is whether mrContinue and mrTryAgain are defined, and it seems the code doesn't line up internally about that. is there a better place to report this? Pull the fixes_3_0 branch again. There was a n error fixed in 91c3bf3781 and you don't seem to have it. ---------------------------------------------------------------------- Grahame Grieve · 2023-11-24 19:11 Well: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ➜  lazarus git clone -b fixes_3_0 https://gitlab.com/freepascal.org/lazarus/lazarus.git laz1Cloning into 'laz1'...remote: Enumerating objects: 559684, done.remote: Counting objects: 100% (442/442), done.remote: Compressing objects: 100% (243/243), done.remote: Total 559684 (delta 282), reused 305 (delta 199), pack-reused 559242Receiving objects: 100% (559684/559684), 268.39 MiB | 16.13 MiB/s, done.Resolving deltas: 100% (459170/459170), done.Updating files: 100% (17412/17412), done.➜  lazarus cd laz1➜  laz1 git:(fixes_3_0) git pullAlready up to date.➜  laz1 git:(fixes_3_0) make distclean all LCL_PLATFORM=cocoa CPU_TARGET=aarch64 bigide(9001) Assembling (pipe) lib/aarch64-darwin/maps.s(3104) Compiling objectlists.pas(9001) Assembling (pipe) lib/aarch64-darwin/objectlists.s(3104) Compiling textstrings.pas(9001) Assembling (pipe) lib/aarch64-darwin/textstrings.s(3104) Compiling uitypes.pas/Users/gra hamegrieve/lazarus/laz1/components/lazutils/uitypes.pas(107,5) Fatal: (2003) Syntax error, ")" expected but "," foundFatal: (1018) Compilation abortedmake[2]: *** [lazutils.ppu] Error 1make[1]: *** [lazbuildpackages] Error 2make: *** [lazbuild] Error 2 ---------------------------------------------------------------------- dsiders · 2023-11-24 19:14 Quote from: Grahame Grieve on November 24, 2023, 08:11:27 pmWell: Code: Text  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ➜  lazarus git clone -b fixes_3_0 https://gitlab.com/freepascal.org/lazarus/lazarus.git laz1Cloning into 'laz1'...remote: Enumerating objects: 559684, done.remote: Counting objects: 100% (442/442), done.remote: Compressing objects: 100% (243/243), done.remote: Total 559684 (delta 282), reused 305 (delta 199), pack-reused 559242Receiving objects: 100% (559684/559684), 268.39 MiB | 16.13 MiB/s, done.Resolving deltas: 100% (459170/459170), done.Updating files: 100% (17412/17412), done.➜  lazarus cd laz1➜  laz1 git:(fixes_3_0) git pullAlready up to date.➜  laz1 git:(fixes_3_0) make distclean all LCL_PLATFORM=cocoa CPU_TARGET=aarch64 bigide(9001) Assembling (pipe) lib/aarch64-darwin/maps.s(3104) Compiling objectlists.pas(9001) Assembling (pipe) lib/aarch64-darwin/objectlists.s(3104) Compiling textstrings.pas(9001) Assembling (pipe) lib/aarch64-darwin/textstrings.s(3104) Compiling uitypes.pas/Users/gra hamegrieve/lazarus/laz1/components/lazutils/uitypes.pas(107,5) Fatal: (2003) Syntax error, ")" expected but "," foundFatal: (1018) Compilation abortedmake[2]: *** [lazutils.ppu] Error 1make[1]: *** [lazbuildpackages] Error 2make: *** [lazbuild] Error 2   Ok. In that case, post the details to the issue tracker. I cannot reproduce here on Windows. ---------------------------------------------------------------------- Grahame Grieve · 2023-11-24 20:19 https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40613 if that's the right place for the issue ---------------------------------------------------------------------- jamie · 2023-11-24 20:21 Looking at the winders Trunk here, I don't even see "uitypes.pas" in the lazutils folder? Is this some kind of custom modification done for someone's desired installed? I don't think this folder should be any different? ---------------------------------------------------------------------- Martin_fr · 2023-11-24 20:46 Are you using fpc 3.3 ? And is you version of 3.3 outdate? That error line has Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i     {$IF FPC_FULLVERSION>30300}  Fpc may have expanded the enum to which that belongs. And with the old 3.3 it wont work no more ---------------------------------------------------------------------- Grahame Grieve · 2023-11-24 20:54 If I just run FPC: FPC = 3.3.1 [2023/10/28] for aarch64 ---------------------------------------------------------------------- Martin_fr · 2023-11-24 20:58 So that 3 weeks old. Probably changed since then. Some changes in FPC require changes in Lazarus. In your case Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i   ModalResultStr: array[mrNone..mrLast] of shortstring = (// list of n entries If fpc changes what is between the constants, then the array size changes, and the list needs to be adapted. This is guarded by ifdefs on the fpc version. But for fpc 3.3.1 it only supports the very latest. Yours isn't the latest anymore. ---------------------------------------------------------------------- dsiders · 2023-11-25 02:59 Quote from: jamie on November 24, 2023, 09:21:31 pmLooking at the winders Trunk here, I don't even see "uitypes.pas" in the lazutils folder? Is this some kind of custom modification done for someone's desired installed? I don't think this folder should be any different? lazutils/uitypes.pas no longer exists in trunk. It does in fixes_3_0 though, which is what he's taking about.