[Vm-dev] compiling legacy macos carbon vm

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Thu Nov 7 20:44:52 UTC 2019


Hi all,
I was wondering about the interest of keeping the platforms/Mac\ OS code.
This code is not alive (not tested, not maintained) and is rotting, slowly
but surely.
I did try it, and after a few changes, succeeded in compiling a legacy
carbon universal squeak.cog.v3 & squeak.cog.spur
- for a mac os 10.5 (leopard) target (i386 only)
- from a mac os 10.14.6 mojave
- with xcode 10.3 augmented by legacy SDKs thanks to xcode-legacy
  https://github.com/devernay/xcodelegacy
- via mvm scripts driving gnu makefiles

installing the legacy SDKs is becoming harder and harder, because Apple now
distributes signed xip archives with shortly expiring signatures!
https://github.com/devernay/xcodelegacy/issues/56
But as long as we can sudo date, that's stupid hurdles...

The VM runs in mojave, but it's far from perfect (mouse click does not
work, keyboard is OK though). Optimized spur crashes the llvm-gcc-4.2
compiler (../../spursrc/vm/gcc3x-cointerp.c:78381: internal compiler error:
Segmentation fault: 11, never mind, I won't send report to Apple!), and
with classic gcc-4.2, optimized spur VM crashes at run time soon after
startup. Optimized V3 seems to work.

I may publish this work in a branch if ever someone is interested and also
retry compilation on a legacy snow leopard machine.
Otherwise, we may as well remove platforms/Mac\ OS entirely.
Thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20191107/dc2f17ca/attachment.html>


More information about the Vm-dev mailing list