View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0036273||FPC||Compiler||public||2019-11-06 23:43||2019-11-15 21:32|
|Reporter||Rick Hoover||Assigned To||Jonas Maebe|
|Product Version||2.0.4||Product Build||2019-09-16|
|Target Version||Fixed in Version||3.3.1|
|Summary||0036273: Command line overflow for macOS with ld|
|Description||When including a large number of packages, the link.res file becomes too large for macOS to handle the large command line generated for the linker (ld). macOS limits the command line to 256K and link.res can push near and beyond that limit when linking the IDE with a large number of installed packages.|
|Steps To Reproduce||Include a large number of packages from the on-line package manager should cause the command link limit to be hit.|
|Additional Information||A possible fix would be to split the list of object files out of the link.res file into a separate file. The macOS linker allows the use of the -filelist option to provide the list of object files to link. This fix should remove the list of object files from the command line, which is the bulk of what is put on the linker command line.|
|Tags||No tags attached.|
|Fixed in Revision|
Confirmed. Also on Windows.
When building for Haiku x64 on Windows, the ppas.bat becomes too long (for ld) with all the libraries and object files.
And errors out. If a few, not used, library directories are removed from this file, all runs well.
||This bug / item should be moved towards fpc (the compiler) !!|
||Moved to FPC project|
The filelist option is already added into the compiler t_bsd.pas.
It is only enabled on Windows however, for the benefit of cross-compiling.
(as the [osxcross] linker on Windows understands this option)
It could be enabled on more/all systems, if the linker in use supports filelists.
||I have fixed several bugs in the filelist support and enabled in all cases when targeting Darwin.|
|2019-11-06 23:43||Rick Hoover||New Issue|
|2019-11-14 06:30||Alfred||Note Added: 0119285|
|2019-11-14 06:31||Alfred||Note Added: 0119286|
|2019-11-15 10:52||Sven Barth||Project||Lazarus => FPC|
|2019-11-15 10:53||Sven Barth||Note Added: 0119311|
|2019-11-15 10:54||Sven Barth||Category||Other => Compiler|
|2019-11-15 10:54||Sven Barth||FPCTarget||=> -|
|2019-11-15 11:29||Alfred||Note Added: 0119312|
|2019-11-15 21:32||Jonas Maebe||Assigned To||=> Jonas Maebe|
|2019-11-15 21:32||Jonas Maebe||Status||new => resolved|
|2019-11-15 21:32||Jonas Maebe||Resolution||open => fixed|
|2019-11-15 21:32||Jonas Maebe||Fixed in Version||=> 3.3.1|
|2019-11-15 21:32||Jonas Maebe||Note Added: 0119328|