• Recent XEmacs fails on macOS on ARM64 (Mac Silicon), workaround.

    From Aidan Kehoe@21:1/5 to All on Sat Nov 9 16:05:08 2024
    Dear comp.emacs.xemacs,

    I learned recently that XEmacs fails on running post-dump on macOS on Apple Silicon. From looking into it this initially seemed to be because it is no longer possible to turn off address space layout randomization (ASLR) with the shift to that platform, and I addressed this with commit 893ccc355e95 , viewable here:

    https://foss.heptapod.net/xemacs/xemacs/-/commit/a319b9130038a238a27162702564d7068152a721

    This works well on Linux, Windows and Intel MacOS, and so I have (usually) turned off the code in configure that passes -fnopie or equivalent to the compiler and linker.

    Unfortunately a build with the default configure flags still fails silently on running post-dump on macOS on Apple Silicon. This is because our code to insert the dump file into the exec image, which is the default, means the link-time signature is no longer accurate.

    I will push code over the next few days to address this but for the moment a workaround on that platform is to configure --without-dump-in-exec , which has no significant compile or run-time penalty.

    Best,

    Aidan

    --
    ‘As I sat looking up at the Guinness ad, I could never figure out /
    How your man stayed up on the surfboard after fourteen pints of stout’
    (C. Moore)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Aidan Kehoe@21:1/5 to All on Tue Jan 7 12:38:14 2025
    I’ve removed the code to binary-patch the executable with the dump file, using
    Dale Weiler’s incbin.h instead, and the tip builds and runs without difficulty
    on macOS on ARM64.

    --
    ‘As I sat looking up at the Guinness ad, I could never figure out /
    How your man stayed up on the surfboard after fourteen pints of stout’
    (C. Moore)

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)