lazbuild defaults to 32-bit Carbon widgetset on 64-bit Darwin macOS
- Lazarus/FPC Version: <Lazarus 2.3.0 rv1.4.4-13496-g1d740fac9e / 65500 FPC 3.3.1 aarch64-darwin-cocoa> * Operating System: <Darwin 11.3>
- CPU / Bitness: <64>
lazbuild defaults to
Carbon widgetset when building 64-bit Darwin applications. Carbon only supports 32-bit applications, and therefore the compilation fails unless the user explicitly specifies
--ws=cocoa. Issue is seen in both trunk and 2.2.0RC1. Issue seen both with AArch64 and x86_64.
What did you expect
lazbuild should target the Cocoa widgetset on Darwin by default, this would mimic the performance of the Lazarus IDE.
Steps to reproduce
Launch the Lazarus IDE on MacOS. Use the Project/NewProject menu item to create an empty application. Use Run/Run to demonstrate that the IDE can compile and run this applications. Finally, save the project to disk and save to disk. From the terminal, attempt to build the project with lazbuild:
$ /Applications/Lazarus/lazbuild -v 2.2.0RC1 $ /Applications/Lazarus/lazbuild project1.lpi ... Error: (lazarus) unable to create package output directory "/Applications/Lazarus/lcl/units/x86_64-darwin/carbon" of package "LCL 220.127.116.11" ... $ /Applications/Lazarus/lazbuild --ws=cocoa project1.lpi <successful compile>
// Please choose and add the following labels as appropriate: "Version::18.104.22.168" "Category::LCL> "WS:Cocoa" if and only if you tested with different Widgetset, and if only one/some is/are affected