On Mon, Jul 25, 2022, 12:54 PM Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> Otherwise, I was able to resolve the various issues (including some
> extensive surgery on vc/ediff-X files to stamp out the circular loading).
> I am going to have to do a real bootstrap to avoid the "incoherent eln"
> error, though, and somehow force native compilation for all the libraries
> loaded in the dump (that are not on the compiler's "forbidden" list,
> anyway).

BTW, I don't really understand why you're bumping into circularity issue
with things like ediff.  I do know it has circularity issues, but they
only affect compilation, AFAIK.

I've added another flag variable that allows me to turn off the ban on implicit loading in dump mode.  I used load history from a session that required all the packages (that didn't have fatal errors) to generate a reasonable facsimile of dependency ordering, but allowing autoload and require to work as intended greatly simplifies the task.   
I made a few more corrections to purecopy.  I added support for bool vectors (used by js2-mode), and strings with text properties.  I was concerned that the libraries with such string constants are designed to rely on those properties.  
I've finally gotten all the libraries to load, but the dump failed do to having a dynamic module loaded.  

Lynn