Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

noob: Does this build on MacOS Apple Silicon #438

Open
richtong opened this issue Dec 30, 2024 · 4 comments
Open

noob: Does this build on MacOS Apple Silicon #438

richtong opened this issue Dec 30, 2024 · 4 comments

Comments

@richtong
Copy link

  • Context

Trying to build the vax simulator on MacOS Sequoia 15.2. I know crazy to think that anyone would try to do this

First comment is the install and running instructions are not on the README.md, I found a bunch in the V4 status that seems kind of up to date.

But now that there is no where that says to run this you need to do

make vax
sim

At least this is what I think

  • the output of "sim> SHOW VERSION" while running the simulator which is having the issue

Couldn't get that far

  • how you built the simulator or that you're using prebuilt binaries

I only have there build instructions, where are the prebuilt binaries, would be nice to have a director in the README.md. I'm happy to submit a PR

  • the simulator configuration file (or commands) which were used when the problem occurred.

I tried

make vax

I installed, it looks like from the networking page, you need networking and the suggested tun tap has been deprecated since 2015 or so.

brew install sdl2 sdf2_ttf tunnelblick

  • the expected behavior and the actual behavior

make vax

This fails with this error, sorry, my path is huge so hard to see the errors

which: no port in (/Users/rich/wsn/git/src/node_modules/.bin:/Users/rich/wsn/git/src/.direnv/go/bin:/Users/rich/.asdf/installs/python/3.11.10/bin:/Users/rich/.asdf/plugins/python/shims:/Users/rich/.asdf/installs/direnv/2.35.0/bin:/Users/rich/.asdf/installs/golang/1.23.2/bin:/Users/rich/.asdf/installs/golang/1.23.2/go/bin:/Users/rich/.asdf/installs/golang/1.23.2/packages/bin:/Users/rich/.asdf/installs/java/openjdk-23/bin:/Users/rich/.asdf/installs/nodejs/20.18.1/bin:/Users/rich/.asdf/plugins/nodejs/shims:/Users/rich/.asdf/installs/pipx/1.7.1/bin:/Users/rich/.asdf/installs/ruby/3.3.4/bin:/Users/rich/.asdf/installs/ruby/3.3.4/lib/ruby/gems/3.3.0/bin:/Users/rich/.asdf/installs/uv/0.4.17/bin::/Users/rich/.local/bin::/Users/rich/ws/src/bin:/opt/homebrewlib/ruby/gem/3.3.6/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/util-linux/sbin:/opt/homebrew/opt/util-linux/bin:/opt/homebrew/opt/man-db/libexec/bin:/opt/homebrew/opt/curl/bin:/opt/homebrew/opt/m4/bin:/opt/homebrew/opt/gettext/bin:/opt/homebrew/opt/gnu-getopt/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/make/libexec/gnubin:/opt/homebrew/opt/grep/libexec/gnubin:/opt/homebrew/opt/gnu-which/libexec/gnubin:/opt/homebrew/opt/gnu-tar/libexec/gnubin:/opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/opt/gnu-indent/libexec/gnubin:/opt/homebrew/opt/coreutils/libexec/gnubin:/Users/rich/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/opt/homebrew/share/google-cloud-sdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Applications/Wireshark.app/Contents/MacOS:/Applications/iTerm.app/Contents/Resources/utilities:/opt/homebrew/opt/fzf/bin)
lib paths are: /usr/lib   /opt/homebrew/Cellar/aom/3.11.0/lib /opt/homebrew/Cellar/apr-util/1.6.3_1/lib /opt/homebrew/Cellar/apr/1.7.5/lib /opt/homebrew/Cellar/argon2/20190702_1/lib            /opt/homebrew/Cellar/bash/5.2.37/lib   /opt/homebrew/Cellar/bdw-gc/8.2.8/lib /opt/homebrew/Cellar/berkeley-db@5/5.3.28_1/lib   /opt/homebrew/Cellar/binutils/2.43.1/lib  /opt/homebrew/Cellar/brotli/1.1.0/lib /opt/homebrew/Cellar/c-ares/1.34.4/lib  /opt/homebrew/Cellar/cairo/1.18.2/lib  /opt/homebrew/Cellar/certifi/2024.12.14/lib /opt/homebrew/Cellar/certifi/2024.8.30_1/lib /opt/homebrew/Cellar/cffi/1.17.1_1/lib      /opt/homebrew/Cellar/cryptography/44.0.0/lib /opt/homebrew/Cellar/curl/8.11.1/lib     /opt/homebrew/Cellar/emacs/29.4_1/lib    /opt/homebrew/Cellar/fontconfig/2.15.0/lib /opt/homebrew/Cellar/freetds/1.4.24/lib /opt/homebrew/Cellar/freetype/2.13.3/lib /opt/homebrew/Cellar/fribidi/1.0.16/lib  /opt/homebrew/Cellar/gawk/5.3.1/lib /opt/homebrew/Cellar/gcc/14.2.0_1/lib /opt/homebrew/Cellar/gd/2.3.3_6/lib /opt/homebrew/Cellar/gdbm/1.24/lib /opt/homebrew/Cellar/gdk-pixbuf/2.42.12/lib /opt/homebrew/Cellar/gettext/0.23/lib  /opt/homebrew/Cellar/ghostscript/10.04.0/lib /opt/homebrew/Cellar/giflib/5.2.2/lib    /opt/homebrew/Cellar/glib/2.82.4/lib /opt/homebrew/Cellar/gmp/6.3.0/lib       /opt/homebrew/Cellar/gnutls/3.8.4/lib   /opt/homebrew/Cellar/graphite2/1.3.14/lib /opt/homebrew/Cellar/graphviz/12.2.1/lib   /opt/homebrew/Cellar/gts/0.7.6_3/lib /opt/homebrew/Cellar/guile/3.0.10/lib   /opt/homebrew/Cellar/harfbuzz/10.1.0/lib /opt/homebrew/Cellar/highway/1.2.0/lib   /opt/homebrew/Cellar/ice/3.7.10/lib /opt/homebrew/Cellar/icu4c@76/76.1_1/lib /opt/homebrew/Cellar/imath/3.1.12/lib /opt/homebrew/Cellar/isl/0.27/lib /opt/homebrew/Cellar/jansson/2.14/lib /opt/homebrew/Cellar/jasper/4.2.4/lib /opt/homebrew/Cellar/jbig2dec/0.20/lib /opt/homebrew/Cellar/jpeg-turbo/3.1.0/lib /opt/homebrew/Cellar/jpeg-xl/0.11.1/lib /opt/homebrew/Cellar/jq/1.7.1/lib  /opt/homebrew/Cellar/krb5/1.21.3/lib   /opt/homebrew/Cellar/leptonica/1.85.0/lib /opt/homebrew/Cellar/libarchive/3.7.7/lib /opt/homebrew/Cellar/libassuan/3.0.1/lib /opt/homebrew/Cellar/libavif/1.1.1/lib /opt/homebrew/Cellar/libb2/0.98.1/lib /opt/homebrew/Cellar/libdeflate/1.23/lib /opt/homebrew/Cellar/libdvdcss/1.4.3/lib /opt/homebrew/Cellar/libevent/2.1.12_1/lib /opt/homebrew/Cellar/libgcrypt/1.10.3/lib /opt/homebrew/Cellar/libgit2/1.8.4/lib /opt/homebrew/Cellar/libgpg-error/1.51/lib /opt/homebrew/Cellar/libidn/1.42/lib /opt/homebrew/Cellar/libidn2/2.3.7/lib /opt/homebrew/Cellar/libksba/1.6.7/lib /opt/homebrew/Cellar/liblinear/2.47/lib /opt/homebrew/Cellar/libmagic/5.46/lib /opt/homebrew/Cellar/libmpc/1.3.1/lib /opt/homebrew/Cellar/libnghttp2/1.64.0/lib /opt/homebrew/Cellar/libomp/19.1.6/lib /opt/homebrew/Cellar/libpaper/2.2.5/lib /opt/homebrew/Cellar/libpipeline/1.5.8/lib /opt/homebrew/Cellar/libpng/1.6.44/lib /opt/homebrew/Cellar/libpq/17.2/lib /opt/homebrew/Cellar/librsvg/2.58.4/lib /opt/homebrew/Cellar/libsodium/1.0.20/lib /opt/homebrew/Cellar/libssh2/1.11.1/lib /opt/homebrew/Cellar/libtasn1/4.19.0/lib /opt/homebrew/Cellar/libtiff/4.7.0/lib /opt/homebrew/Cellar/libtool/2.5.4/lib /opt/homebrew/Cellar/libunistring/1.3/lib /opt/homebrew/Cellar/libusb/1.0.27/lib /opt/homebrew/Cellar/libuv/1.49.2/lib /opt/homebrew/Cellar/libvmaf/3.0.0/lib /opt/homebrew/Cellar/libvterm/0.3.3/lib /opt/homebrew/Cellar/libx11/1.8.10/lib /opt/homebrew/Cellar/libxau/1.0.12/lib /opt/homebrew/Cellar/libxcb/1.17.0/lib /opt/homebrew/Cellar/libxdmcp/1.1.5/lib /opt/homebrew/Cellar/libxext/1.3.6/lib /opt/homebrew/Cellar/libxrender/0.9.12/lib /opt/homebrew/Cellar/libyaml/0.2.5/lib /opt/homebrew/Cellar/libzip/1.11.2/lib  /opt/homebrew/Cellar/little-cms2/2.16/lib /opt/homebrew/Cellar/llvm/19.1.6/lib /opt/homebrew/Cellar/lmdb/0.9.33/lib  /opt/homebrew/Cellar/lpeg/1.1.0/lib /opt/homebrew/Cellar/lua/5.4.7/lib /opt/homebrew/Cellar/luajit/2.1.1734355927/lib  /opt/homebrew/Cellar/luv/1.48.0-2/lib /opt/homebrew/Cellar/lz4/1.10.0/lib /opt/homebrew/Cellar/lzo/2.10/lib /opt/homebrew/Cellar/m-cli/0.3.0/lib   /opt/homebrew/Cellar/man-db/2.13.0/lib       /opt/homebrew/Cellar/mcpp/2.7.2/lib   /opt/homebrew/Cellar/mpdecimal/4.0.0/lib /opt/homebrew/Cellar/mpfr/4.2.1/lib /opt/homebrew/Cellar/msgpack/6.1.0/lib    /opt/homebrew/Cellar/ncurses/6.5/lib /opt/homebrew/Cellar/neovim/0.10.3/lib /opt/homebrew/Cellar/net-snmp/5.9.4/lib  /opt/homebrew/Cellar/netpbm/11.02.12/lib /opt/homebrew/Cellar/nettle/3.10/lib /opt/homebrew/Cellar/nmap/7.95/lib /opt/homebrew/Cellar/node/23.5.0/lib /opt/homebrew/Cellar/npth/1.8/lib /opt/homebrew/Cellar/numpy/2.2.1/lib  /opt/homebrew/Cellar/oniguruma/6.9.9/lib /opt/homebrew/Cellar/openblas/0.3.28/lib /opt/homebrew/Cellar/openexr/3.3.2/lib   /opt/homebrew/Cellar/openjpeg/2.5.3/lib /opt/homebrew/Cellar/openldap/2.6.9/lib /opt/homebrew/Cellar/openssl@3/3.4.0/lib /opt/homebrew/Cellar/p11-kit/0.25.5/lib  /opt/homebrew/Cellar/pango/1.55.5/lib   /opt/homebrew/Cellar/pcre/8.45/lib /opt/homebrew/Cellar/pcre2/10.44/lib /opt/homebrew/Cellar/perl/5.40.0/lib  /opt/homebrew/Cellar/php/8.4.2/lib   /opt/homebrew/Cellar/pixman/0.44.2/lib /opt/homebrew/Cellar/pkgconf/2.3.0_1/lib   /opt/homebrew/Cellar/popt/1.19/lib       /opt/homebrew/Cellar/pycparser/2.22_1/lib   /opt/homebrew/Cellar/python-packaging/24.2/lib /opt/homebrew/Cellar/[email protected]/3.11.11/lib /opt/homebrew/Cellar/[email protected]/3.12.8/lib /opt/homebrew/Cellar/[email protected]/3.13.1/lib /opt/homebrew/Cellar/readline/8.2.13/lib   /opt/homebrew/Cellar/rtmpdump/2.4-20151223_3/lib /opt/homebrew/Cellar/ruby/3.4.1/lib  /opt/homebrew/Cellar/rust/1.83.0/lib  /opt/homebrew/Cellar/scipy/1.14.1_1/lib  /opt/homebrew/Cellar/sdl2/2.30.10/lib /opt/homebrew/Cellar/sdl2_ttf/2.22.0/lib   /opt/homebrew/Cellar/sqlite/3.47.2/lib  /opt/homebrew/Cellar/subversion/1.14.5/lib  /opt/homebrew/Cellar/tesseract/5.5.0/lib  /opt/homebrew/Cellar/tidy-html5/5.8.0/lib      /opt/homebrew/Cellar/tree-sitter/0.24.6/lib /opt/homebrew/Cellar/uchardet/0.0.8/lib /opt/homebrew/Cellar/unbound/1.22.0/lib /opt/homebrew/Cellar/unibilium/2.1.2/lib /opt/homebrew/Cellar/unixodbc/2.3.12/lib /opt/homebrew/Cellar/utf8proc/2.9.0/lib /opt/homebrew/Cellar/util-linux/2.40.2/lib  /opt/homebrew/Cellar/vde/2.3.3/lib      /opt/homebrew/Cellar/webp/1.5.0/lib     /opt/homebrew/Cellar/xxhash/0.8.2/lib /opt/homebrew/Cellar/xz/5.6.3/lib      /opt/homebrew/Cellar/z3/4.13.4/lib /opt/homebrew/Cellar/zeromq/4.3.5_1/lib  /opt/homebrew/Cellar/zsh/5.9/lib /opt/homebrew/Cellar/zstd/1.5.6/lib /usr/lib/
include paths are:  /Library/Developer/CommandLineTools/usr/lib/clang/16/include /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include /Library/Developer/CommandLineTools/usr/include   /opt/homebrew/Cellar/aom/3.11.0/include /opt/homebrew/Cellar/apr-util/1.6.3_1/include /opt/homebrew/Cellar/apr/1.7.5/include /opt/homebrew/Cellar/argon2/20190702_1/include            /opt/homebrew/Cellar/bash/5.2.37/include   /opt/homebrew/Cellar/bdw-gc/8.2.8/include /opt/homebrew/Cellar/berkeley-db@5/5.3.28_1/include   /opt/homebrew/Cellar/binutils/2.43.1/include  /opt/homebrew/Cellar/brotli/1.1.0/include /opt/homebrew/Cellar/c-ares/1.34.4/include  /opt/homebrew/Cellar/cairo/1.18.2/include           /opt/homebrew/Cellar/curl/8.11.1/include     /opt/homebrew/Cellar/emacs/29.4_1/include    /opt/homebrew/Cellar/fontconfig/2.15.0/include /opt/homebrew/Cellar/freetds/1.4.24/include /opt/homebrew/Cellar/freetype/2.13.3/include /opt/homebrew/Cellar/fribidi/1.0.16/include  /opt/homebrew/Cellar/gawk/5.3.1/include /opt/homebrew/Cellar/gcc/14.2.0_1/include /opt/homebrew/Cellar/gd/2.3.3_6/include /opt/homebrew/Cellar/gdbm/1.24/include /opt/homebrew/Cellar/gdk-pixbuf/2.42.12/include /opt/homebrew/Cellar/gettext/0.23/include  /opt/homebrew/Cellar/ghostscript/10.04.0/include /opt/homebrew/Cellar/giflib/5.2.2/include    /opt/homebrew/Cellar/glib/2.82.4/include /opt/homebrew/Cellar/gmp/6.3.0/include       /opt/homebrew/Cellar/gnutls/3.8.4/include   /opt/homebrew/Cellar/graphite2/1.3.14/include /opt/homebrew/Cellar/graphviz/12.2.1/include   /opt/homebrew/Cellar/gts/0.7.6_3/include /opt/homebrew/Cellar/guile/3.0.10/include   /opt/homebrew/Cellar/harfbuzz/10.1.0/include /opt/homebrew/Cellar/highway/1.2.0/include   /opt/homebrew/Cellar/ice/3.7.10/include /opt/homebrew/Cellar/icu4c@76/76.1_1/include /opt/homebrew/Cellar/imath/3.1.12/include /opt/homebrew/Cellar/isl/0.27/include /opt/homebrew/Cellar/jansson/2.14/include /opt/homebrew/Cellar/jasper/4.2.4/include /opt/homebrew/Cellar/jbig2dec/0.20/include /opt/homebrew/Cellar/jpeg-turbo/3.1.0/include /opt/homebrew/Cellar/jpeg-xl/0.11.1/include /opt/homebrew/Cellar/jq/1.7.1/include  /opt/homebrew/Cellar/krb5/1.21.3/include   /opt/homebrew/Cellar/leptonica/1.85.0/include /opt/homebrew/Cellar/libarchive/3.7.7/include /opt/homebrew/Cellar/libassuan/3.0.1/include /opt/homebrew/Cellar/libavif/1.1.1/include /opt/homebrew/Cellar/libb2/0.98.1/include /opt/homebrew/Cellar/libdeflate/1.23/include /opt/homebrew/Cellar/libdvdcss/1.4.3/include /opt/homebrew/Cellar/libevent/2.1.12_1/include /opt/homebrew/Cellar/libgcrypt/1.10.3/include /opt/homebrew/Cellar/libgit2/1.8.4/include /opt/homebrew/Cellar/libgpg-error/1.51/include /opt/homebrew/Cellar/libidn/1.42/include /opt/homebrew/Cellar/libidn2/2.3.7/include /opt/homebrew/Cellar/libksba/1.6.7/include /opt/homebrew/Cellar/liblinear/2.47/include /opt/homebrew/Cellar/libmagic/5.46/include /opt/homebrew/Cellar/libmpc/1.3.1/include /opt/homebrew/Cellar/libnghttp2/1.64.0/include /opt/homebrew/Cellar/libomp/19.1.6/include /opt/homebrew/Cellar/libpaper/2.2.5/include /opt/homebrew/Cellar/libpipeline/1.5.8/include /opt/homebrew/Cellar/libpng/1.6.44/include /opt/homebrew/Cellar/libpq/17.2/include /opt/homebrew/Cellar/librsvg/2.58.4/include /opt/homebrew/Cellar/libsodium/1.0.20/include /opt/homebrew/Cellar/libssh2/1.11.1/include /opt/homebrew/Cellar/libtasn1/4.19.0/include /opt/homebrew/Cellar/libtiff/4.7.0/include /opt/homebrew/Cellar/libtool/2.5.4/include /opt/homebrew/Cellar/libunistring/1.3/include /opt/homebrew/Cellar/libusb/1.0.27/include /opt/homebrew/Cellar/libuv/1.49.2/include /opt/homebrew/Cellar/libvmaf/3.0.0/include /opt/homebrew/Cellar/libvterm/0.3.3/include /opt/homebrew/Cellar/libx11/1.8.10/include /opt/homebrew/Cellar/libxau/1.0.12/include /opt/homebrew/Cellar/libxcb/1.17.0/include /opt/homebrew/Cellar/libxdmcp/1.1.5/include /opt/homebrew/Cellar/libxext/1.3.6/include /opt/homebrew/Cellar/libxrender/0.9.12/include /opt/homebrew/Cellar/libyaml/0.2.5/include /opt/homebrew/Cellar/libzip/1.11.2/include  /opt/homebrew/Cellar/little-cms2/2.16/include /opt/homebrew/Cellar/llvm/19.1.6/include /opt/homebrew/Cellar/lmdb/0.9.33/include   /opt/homebrew/Cellar/lua/5.4.7/include /opt/homebrew/Cellar/luajit/2.1.1734355927/include  /opt/homebrew/Cellar/luv/1.48.0-2/include /opt/homebrew/Cellar/lz4/1.10.0/include /opt/homebrew/Cellar/lzo/2.10/include   /opt/homebrew/Cellar/make/4.4.1/include        /opt/homebrew/Cellar/mcpp/2.7.2/include   /opt/homebrew/Cellar/mpdecimal/4.0.0/include /opt/homebrew/Cellar/mpfr/4.2.1/include /opt/homebrew/Cellar/msgpack/6.1.0/include    /opt/homebrew/Cellar/ncurses/6.5/include  /opt/homebrew/Cellar/net-snmp/5.9.4/include  /opt/homebrew/Cellar/netpbm/11.02.12/include /opt/homebrew/Cellar/nettle/3.10/include  /opt/homebrew/Cellar/node/23.5.0/include /opt/homebrew/Cellar/npth/1.8/include   /opt/homebrew/Cellar/oniguruma/6.9.9/include /opt/homebrew/Cellar/openblas/0.3.28/include /opt/homebrew/Cellar/openexr/3.3.2/include /opt/homebrew/Cellar/openjdk/23.0.1/include /opt/homebrew/Cellar/openjdk@21/21.0.5/include /opt/homebrew/Cellar/openjpeg/2.5.3/include /opt/homebrew/Cellar/openldap/2.6.9/include /opt/homebrew/Cellar/openssl@3/3.4.0/include /opt/homebrew/Cellar/p11-kit/0.25.5/include  /opt/homebrew/Cellar/pango/1.55.5/include   /opt/homebrew/Cellar/pcre/8.45/include /opt/homebrew/Cellar/pcre2/10.44/include   /opt/homebrew/Cellar/php/8.4.2/include   /opt/homebrew/Cellar/pixman/0.44.2/include /opt/homebrew/Cellar/pkgconf/2.3.0_1/include   /opt/homebrew/Cellar/popt/1.19/include              /opt/homebrew/Cellar/readline/8.2.13/include   /opt/homebrew/Cellar/rtmpdump/2.4-20151223_3/include /opt/homebrew/Cellar/ruby/3.4.1/include      /opt/homebrew/Cellar/sdl2/2.30.10/include /opt/homebrew/Cellar/sdl2_ttf/2.22.0/include   /opt/homebrew/Cellar/sqlite/3.47.2/include  /opt/homebrew/Cellar/subversion/1.14.5/include  /opt/homebrew/Cellar/tesseract/5.5.0/include  /opt/homebrew/Cellar/tidy-html5/5.8.0/include      /opt/homebrew/Cellar/tree-sitter/0.24.6/include /opt/homebrew/Cellar/uchardet/0.0.8/include /opt/homebrew/Cellar/unbound/1.22.0/include /opt/homebrew/Cellar/unibilium/2.1.2/include /opt/homebrew/Cellar/unixodbc/2.3.12/include /opt/homebrew/Cellar/utf8proc/2.9.0/include /opt/homebrew/Cellar/util-linux/2.40.2/include  /opt/homebrew/Cellar/vde/2.3.3/include      /opt/homebrew/Cellar/webp/1.5.0/include   /opt/homebrew/Cellar/xorgproto/2024.1/include /opt/homebrew/Cellar/xsimd/13.1.0/include /opt/homebrew/Cellar/xxhash/0.8.2/include /opt/homebrew/Cellar/xz/5.6.3/include      /opt/homebrew/Cellar/z3/4.13.4/include /opt/homebrew/Cellar/zeromq/4.3.5_1/include   /opt/homebrew/Cellar/zstd/1.5.6/include
using macOS libpthread: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pthread.h
using libpcre: /opt/homebrew/Cellar/pcre/8.45/lib/libpcre.dylib /opt/homebrew/Cellar/pcre/8.45/include/pcre.h
using macOS dlopen with .dylib
using libedit: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/editline/readline.h
using libpng: /opt/homebrew/Cellar/libpng/1.6.44/lib/libpng.dylib /opt/homebrew/Cellar/libpng/1.6.44/include/png.h
using mman: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/mman.h
using libSDL2: /opt/homebrew/Cellar/sdl2/2.30.10/include/SDL2/SDL.h
*** No SDL ttf support available.  BESM-6 video panel disabled.
***
which: no port in (/Users/rich/wsn/git/src/node_modules/.bin:/Users/rich/wsn/git/src/.direnv/go/bin:/Users/rich/.asdf/installs/python/3.11.10/bin:/Users/rich/.asdf/plugins/python/shims:/Users/rich/.asdf/installs/direnv/2.35.0/bin:/Users/rich/.asdf/installs/golang/1.23.2/bin:/Users/rich/.asdf/installs/golang/1.23.2/go/bin:/Users/rich/.asdf/installs/golang/1.23.2/packages/bin:/Users/rich/.asdf/installs/java/openjdk-23/bin:/Users/rich/.asdf/installs/nodejs/20.18.1/bin:/Users/rich/.asdf/plugins/nodejs/shims:/Users/rich/.asdf/installs/pipx/1.7.1/bin:/Users/rich/.asdf/installs/ruby/3.3.4/bin:/Users/rich/.asdf/installs/ruby/3.3.4/lib/ruby/gems/3.3.0/bin:/Users/rich/.asdf/installs/uv/0.4.17/bin::/Users/rich/.local/bin::/Users/rich/ws/src/bin:/opt/homebrewlib/ruby/gem/3.3.6/bin:/opt/homebrew/opt/ruby/bin:/opt/homebrew/opt/util-linux/sbin:/opt/homebrew/opt/util-linux/bin:/opt/homebrew/opt/man-db/libexec/bin:/opt/homebrew/opt/curl/bin:/opt/homebrew/opt/m4/bin:/opt/homebrew/opt/gettext/bin:/opt/homebrew/opt/gnu-getopt/bin:/opt/homebrew/opt/gawk/libexec/gnubin:/opt/homebrew/opt/findutils/libexec/gnubin:/opt/homebrew/opt/make/libexec/gnubin:/opt/homebrew/opt/grep/libexec/gnubin:/opt/homebrew/opt/gnu-which/libexec/gnubin:/opt/homebrew/opt/gnu-tar/libexec/gnubin:/opt/homebrew/opt/gnu-sed/libexec/gnubin:/opt/homebrew/opt/gnu-indent/libexec/gnubin:/opt/homebrew/opt/coreutils/libexec/gnubin:/Users/rich/.asdf/shims:/opt/homebrew/opt/asdf/libexec/bin:/opt/homebrew/share/google-cloud-sdk/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/X11/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Applications/Wireshark.app/Contents/MacOS:/Applications/iTerm.app/Contents/Resources/utilities:/opt/homebrew/opt/fzf/bin)
using macOS dynamic libpcap: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/pcap.h
using libvdeplug: /opt/homebrew/Cellar/vde/2.3.3/lib/libvdeplug.dylib /opt/homebrew/Cellar/vde/2.3.3/include/libvdeplug.h
***
*** vax Simulator being built with:
*** - compiler optimizations and no debugging support. Apple clang version 16.0.0.
*** - dynamic networking support using OSX provided libpcap components.
*** - Local LAN packet transports: PCAP VDE TAP NAT(SLiRP)
*** - video capabilities provided by libSDL2 (Simple Directmedia Layer).
*** - Per simulator tests will be run.
***
*** git commit id is 866e165a7ae87c6ce914624bee61deecf0e25ea5.
*** git commit time is 2024-12-30T13:40:18-0800.
***

I have no idea what the default make does (cant' find the documentation and it is hard to read the Makefile):

so running make I get those errors and then it attempts a gcc compile and is missing symbols for ARM64, so I'm thinking I need more brew install magic here

cc -std=c99 -U__STRICT_ANSI__  -O2 -DNDEBUG=1 -fno-strict-overflow -finline-functions -DSIM_GIT_COMMIT_ID=866e165a7ae87c6ce914624bee61deecf0e25ea5 -DSIM_GIT_COMMIT_TIME=2024-12-30T13:40:18-0800  -DSIM_COMPILER="Apple clang version 16.0.0" -DSIM_BUILD_TOOL=simh-makefile -I . -Werror -D_GNU_SOURCE -DHAVE_PCRE_H -DHAVE_SYS_IOCTL -DSIM_HAVE_DLOPEN=dylib -DHAVE_EDITLINE -DHAVE_UTIME -DHAVE_LIBPNG -DHAVE_GLOB -DHAVE_SHM_OPEN  ./PDP1/pdp1_lp.c ./PDP1/pdp1_cpu.c ./PDP1/pdp1_stddev.c ./PDP1/pdp1_sys.c ./PDP1/pdp1_dt.c ./PDP1/pdp1_drm.c ./PDP1/pdp1_clk.c ./PDP1/pdp1_dcs.c ./PDP1/pdp1_dpy.c ./display/display.c ./display/sim_ws.c ./scp.c ./sim_console.c ./sim_fio.c ./sim_timer.c ./sim_sock.c ./sim_tmxr.c ./sim_ether.c ./sim_tape.c ./sim_disk.c ./sim_serial.c ./sim_video.c ./sim_imd.c ./sim_card.c -I ./PDP1 -DUSE_DISPLAY -DHAVE_LIBSDL -DUSE_SIM_VIDEO `sdl2-config --cflags` -DSDL_MAIN_AVAILABLE `sdl2-config --libs` -DDISPLAY_TYPE=DIS_TYPE30 -DPIX_SCALE=RES_HALF -o BIN/pdp1 -lpthread -lpcre -L/opt/homebrew/Cellar/pcre/8.45/lib/ -ledit -lpng -lvdeplug -L/opt/homebrew/Cellar/vde/2.3.3/lib/
Undefined symbols for architecture arm64:
  "_zlibVersion", referenced from:
      _vid_version in sim_video-0afcfe.o
      _vid_version in sim_video-0afcfe.o
ld: symbol(s) not found for architecture arm64
  • you may also need to provide specific pointers to data files that may be necessary to demonstrate the problem

Rich Tong is the name

@davepl
Copy link

davepl commented Jan 7, 2025

I built it, and am running it, on my M2 Mac Pro. I just typed "make" and let it run, which takes a while due to all the testing. Then I added the bin folder to my path and that's about it!

@richtong
Copy link
Author

richtong commented Jan 7, 2025 via email

@eschaton
Copy link

eschaton commented Feb 3, 2025

The latest SIMH master branch should build on the latest macOS just fine with the latest Xcode and MacPorts at least, on both Intel-based and ARM-based Macs:

$ make vaxstation4000m60
...lots of compiler output...
$ ./BIN/vaxstation4000m60

VAXstation 4000-60 (KA46) simulator Open SIMH V4.1-0 Current        git commit id: feb155fb
sim>

A simple make will build all of the simulators. You'll probably want to do something like make -j 8 to speed up the build, since the Makefile inadvisably rebuilds tons of sources per simulator that it doesn't need to (instead of building a static lib of the common pieces and then just linking it in all of them).

@pkoning2
Copy link
Member

pkoning2 commented Feb 4, 2025

You can use the cmake machinery for a different build procedure that's a bit more efficient. And if you use that with build flavor "ninja" it will build with the ninja tool instead of make. That will default to using all the available cores, it's quite impressively fast.
I just did this (full build) on my Mac, OS version 15.2, Arm M1 -- worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants