lazbuild on macos does not work lazarus / 13-General ---------------------------------------------------------------------- Weja · 2021-08-13 10:34 Hello, I try to compile a Lazarus project with the command line tool lazbuild (2.0.12) on macos (Mojave, Catalina) but it does not work. The same project can be compiled with lazbuild on windows and linux. It also compiles on macos when I use the Lazarus IDE (2.0.12). Any suggestions? Maybe some configuration files are wrong or file permissions? Here is the output of lazbuild: 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 /Applications/Lazarus/lazbuild $LAZ_PROJECT_FILE --build- mode=Release_mac_guiHint: (lazarus) Missing state file of LCL 2.0.12: /Applications/Lazarus/lcl/units/x86_64- darwin/carbon/LCL.compiledError: (lazarus) unable to create package output directory "/Applications/Lazarus/lcl/units/x86_64-darwin/carbon" of package "LCL 2.0.12"Hint: (lazarus) normal output directory of package LCL 2.0.12 is not writable: "/Applications/Lazarus/lcl/units/x86_64- darwin/carbon/"TParsedCompilerOptions.SetOutputDirectoryOverride New=/Users/grun-laz/.lazarus/lib/units/x86_64-darwin/carbonHint: (lazarus) Last compile was incomplete for LCL 2.0.12  State file="/Users/grun- laz/.lazarus/lib/units/x86_64-darwin/carbon/LCL.compiled"Info: (lazarus) Execute Title="Compile package LCL 2.0.12"Info: (lazarus) Working Directory="/Applications/Lazarus/lcl/interfaces/"Info: (lazarus) Executable="/usr/local/bin/fpc"Info: (lazarus) Param[0]="-MObjFPC"Info: (lazarus) Param[1]="-Scghi"Info: (lazarus) Param[2]="-O1"Info: (lazarus) Param[3]="-gw"Info: (lazarus) Param[4]="-gl"Info: (lazarus) Param[5]="-l"Info: (lazarus) Param[6]="-vewnhibq"Info: (lazarus) Param[7]="-vm5044"Info: (lazarus) Param[8]="-Fi/Applications/Lazarus/lcl/interfaces/carbon"Info: (lazarus) Param[9]="-Fi/Applications/Lazarus/lcl/interfaces/carbon/objc"Info: (lazarus) Param[10]="- Fi/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/appkit"Info: (lazarus) Param[11]="- Fi/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/foundation"Info : (lazarus) Param[12]="-Fu/Applications/Lazarus/lcl/interfaces/carbon"Info: (lazarus) Param[13]="-Fu/Applications/Lazarus/lcl/interfaces/carbon/objc"Info: (lazarus) Param[14]="- Fu/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/appkit"Info: (lazarus) Param[15]="- Fu/Applications/Lazarus/lcl/interfaces/carbon/pascocoa/foundation"Info : (lazarus) Param[16]="-Fu/Applications/Lazarus/packager/units/x86_64-darwin"Info: (lazarus) Param[17]="- Fu/Applications/Lazarus/components/lazutils/lib/x86_64-darwin"Info: (lazarus) Param[18]="-Fu/Applications/Lazarus/lcl/units/x86_64-darwin"Info: (lazarus) Param[19]="-Fu/Applications/Lazarus/lcl/interfaces/"Info: (lazarus) Param[20]="-FU/Users/grun- laz/.lazarus/lib/units/x86_64-darwin/carbon"Info: (lazarus) Param[21]="-dcarbon"Info: (lazarus) Param[22]="lcl.pas"Hint: (11030) Start of reading config file /etc/fpc.cfgHint: (11031) End of reading config file /etc/fpc.cfgFree Pascal Compiler version 3.2.0 [2020/05/31] for x86_64Copyright (c) 1993-2020 by Florian Klaempfl and others(1002) Target OS: Darwin for x86_64(3104) Compiling lcl.pas(3104) Compiling ./carbon/alllclintfunits.pas(3104) Compiling . /carbon/carbonbars.pp/Applications/Lazarus/lcl/interfaces/./carbon/car bonbars.pp(16,2) Error: (2023) User defined: only cpu i386 is supported(3104) Compiling ./carbon/carbonprivate.pp(3104) Compiling ./ carbon/carbondef.pp/Applications/Lazarus/lcl/interfaces/./carbon/carbo ndef.pp(187,1) Fatal: (10026) There were 1 errors compiling module, stoppingFatal: (1018) Compilation abortedError: /usr/local/bin/ppcx64 returned an error exitcodeError: (lazarus) Compile package LCL 2.0.12: stopped with exit code 1Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 1"   Thank you for any help! ---------------------------------------------------------------------- DonAlfredo · 2021-08-13 10:43 Have a look at: https://wiki.freepascal.org/lazbuild Quote--widgetset= or --ws= override the project widgetset. e.g. gtk, gtk2, qt, win32, or carbon. So, use --ws=cocoa ---------------------------------------------------------------------- trev · 2021-08-13 11:07 This issue has been reported for Lazarus 2.2.0 RC1 - https://forum.laz arus.freepascal.org/index.php/topic,55339.msg413498.html#msg413498 so should be fixed in the official release. ---------------------------------------------------------------------- Weja · 2021-08-16 10:01 Thank you for the fast replies. Quote--widgetset= or --ws= override the project widgetset. e.g. gtk, gtk2, qt, win32, or carbon. So, use --ws=cocoa works for me