PDP-10 / klh10

Community maintained version of Kenneth L. Harrenstien's PDP-10 emulator.
Other
59 stars 7 forks source link

Build Github version under macOS 12 #68

Closed rmaldersoniii closed 10 months ago

rmaldersoniii commented 1 year ago

I have attempted several times over the last few years to build klh10 on modern versions of macOS, generally trying to follow the information on the network about converting makefiles to Xcode projects (and failing miserably).

How in fact do people build klh10 on macOS?

johnsonjh commented 1 year ago

@rmaldersoniii

It works fine out of the box for me on macOS 13.4 (Ventura) + Xcode 14.3.1 RC1:

git clone https://github.com/PDP-10/klh10 && cd klh10
./autogen.sh; mkdir -p build; cd build
../configure; make
$ bld-kl/kn10-kl
KLH10 2.0l (MyKL) built May 19 2023 21:49:19
    Copyright  2002 Kenneth L. Harrenstien -- All Rights Reserved.
This program comes "AS IS" with ABSOLUTELY NO WARRANTY.

Compiled for apple-darwin22.5.0 on x86_64 with word model USEINT
Emulated config:
         CPU: KL10-extend   SYS: T20   Pager: KL  APRID: 3600
         Memory: 8192 pages of 512 words  (SHARED)
         Time interval: INTRP   Base: OSGET
         Interval default: 60Hz
         Internal clock: OSINT
         Other: MCA25 CIRC JPC DEBUG PCCACHE CTYINT EVHINT
         Devices: DTE RH20 RPXX(DP) TM03(DP) NI20(DP)
[MEM: Allocating 8192 pages private memory, clearing...done]

KLH10#

I have Homebrew installed, so possibly some standard packages might be used (i.e. autoconf, autoconf-archive, automake, etc.) …

$ clang --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: x86_64-apple-darwin22.5.0
Thread model: posix
InstalledDir: /Applications/Xcode-14.3.1-Release.Candidate.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

$ sw_vers
ProductName:            macOS
ProductVersion:         13.4
BuildVersion:           22F66

$ uname -a
Darwin honeycrisp.local 22.5.0 Darwin Kernel Version 22.5.0: Mon Apr 24 20:51:50 PDT 2023; root:xnu-8796.121.2~5/RELEASE_X86_64 x86_64
rmaldersoniii commented 10 months ago

As it happens, an update on my phone required me to update my computer to 13.5, so the build worked perfectly.

Commenting for completeness, closing the issue.