Spivoxity / obc-3

Oxford Oberon-2 compiler
38 stars 7 forks source link

obc-3 Fails to Compile on macOS Mojave #25

Closed Spivoxity closed 5 years ago

Spivoxity commented 5 years ago

Hi Dr. Spivey,

It appears that obc-3 (and prior versions) do not compile on macOS Mojave due to the lack of 32-bit support. Are there any plans to allow for a 64-bit version of the compiler?

Thank you kindly, Gregory Gelfond

Spivoxity commented 5 years ago

Gregory,

It looks from your log as if release 3.0 could be made to compile for i386 by linking with appropriate libraries. But it matters little, because the imminent release 3.1 will build for amd64 on Mac OS, and includes an amd64 JIT.

Please try the beta at https://bitbucket.org/Spivey/obc-3/downloads/obc-mac-3.1beta1.pkg (which is built for amd64) and report back. It is built on my MacBook with Mac OS 10.9 Malevolent Mavericks, but that shouldn't cause a problem, deo volente.

Note that building the GUI debugger on Mac OS requires care because of a dependence on GTK libraries. Also, porting the runtime -- bytecode interpreter or JIT -- to other amd64-based platforms depends on code in runtime/gc.c to allocate storage in the bottom 2GB of the address space, since most pointers in the virtual machine remain 32 bits in size.

-- Mike

Spivoxity commented 5 years ago

I suppose it would be good to name the release build as obc-mac64-3.1.0.pkg for clarity, and to make it possible to have obc-mac32-3.1.0.pkg as well. My other Mac runs 10.6 Slinky Lissom Snow Leopard.

Spivoxity commented 5 years ago

Issue made irrelevant by release of OBC 3.1