Could not compile it with cc, 10.14 removed multi arch support!:
Code:ld: warning: The i386 architecture is deprecated for macOS (remove from the Xcode build setting: ARCHS) ld: warning: ignoring file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd, missing required architecture i386 in file /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/lib/libSystem.tbd ld: dynamic main executables must link with libSystem.dylib for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
So I used Go language to compile a 32 bit hello world and... it got stuck again. No output, no error, no nothing! Even attaching a debugger gets stuck. The only thing I get in Console app after cancelling the stuck app is:
kernel sleep interrupted
Clearly the OS puts all 32 bit apps into sleep.
Looks like I need to give up. For the past 8 years I only upgraded the OS on this MBP, never needed to have a fresh install.
That is so weird and I unfortunately have no explanation for you. If you ever figure it out, by all means fill us in! I just feel you will most likely save time and effort with a reinstall.
You do know you can re-install the OS over a previous installation without wiping it, right? Use the patched installer and just select the existing drive without erasing it in Disk Utility. Although an 8 year old system might benefit from a fresh cleanup anyways!
If anybody is curious about the boot flag I mentioned earlier, it's -no32exec, but it says (page 5) that will display an error, not just hang. Most likely irrelevant to your problem, but potentially useful.