Libfile 5.03: exception during library creation
Stuart Swales (8827) 1357 posts |
Anyone else seen “Internal error, no stack for trap handler” when creating a library with lots (200+) of small files? It’s OK if I break it down into two smaller ones. |
Stuart Swales (8827) 1357 posts |
This would appear as if it may be a command line size > initial stack chunk size (4096) issue. Who’da thunk it? Looks like the I also love the way that |
Stuart Swales (8827) 1357 posts |
Yeah, it’s all the DDE tools. See https://www.riscosopen.org/tracker/tickets/529 Suggest that they are recompiled with Oh, and fix the C library too. ;-) |
Rick Murray (539) 13840 posts |
It builds DeskLib okay (about 515 files), but you need to know the secret bit of magic. That magic is, simply, don’t do anything weird like trying to pass that lot via the command line (as it’s about 27K). Instead, I build up a file list (“__liblist”), space separated paths, like this:
And then I pass it as a file to process, like this: WimpSlot 4096k LibFile -c -o <DeskLib$Dir>.o.DeskLib32 -v <DeskLib_Sources$Dir>.__liblist" |
Stuart Swales (8827) 1357 posts |
Oh, indeed, back in ye olden days before DDEUtils, via files were the only game in town. As still used when building PD and Fireworkz. Looks really like the CLib is just reading its environment too early, otherwise it could just pop the command line in a temporary heap block. |