benesch / homebrew-os161

homebrew formulae for system/161 and os/161
2 stars 2 forks source link

os161-gdb install fail | need some help #6

Open MATRIX10186 opened 2 years ago

MATRIX10186 commented 2 years ago
sawats-MBP:~ donkeytry$ brew install bmake sys161 os161-gcc os161-gdb
Warning: bmake 20211221 is already installed and up-to-date.
To reinstall 20211221, run:
  brew reinstall bmake
Warning: benesch/os161/sys161 2.0.8_3 is already installed and up-to-date.
To reinstall 2.0.8_3, run:
  brew reinstall sys161
Warning: benesch/os161/os161-gcc 4.8.3-os161-2.1_3 is already installed and up-to-date.
To reinstall 4.8.3-os161-2.1_3, run:
  brew reinstall os161-gcc
==> Downloading http://os161.eecs.harvard.edu/download/gdb-7.8+os161-2.1.tar.gz
Already downloaded: /Users/donkeytry/Library/Caches/Homebrew/downloads/7b4c60b6c8454918eda5f3ff72e55fdb83d7b266ff0785eb86a938e410e9f674--gdb-7.8 os161-2.1.tar.gz
==> Installing os161-gdb from benesch/os161
==> Patching
==> ./configure --prefix=/usr/local/Cellar/os161-gdb/7.8-os161-2.1_3 --with-gdb-datadir=/usr/local/Cellar/os161-gdb/7.8-os161-2.1_3/share/mips-harvard-os161-gdb --with-python=/usr --witho
==> make
Last 15 lines from /Users/donkeytry/Library/Logs/Homebrew/os161-gdb/02.make:
checking size of unsigned long... 8
checking size of unsigned __int128... 16
checking for library containing dlopen... none required
checking whether to use expat... auto
checking for ld used by GCC... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld... no
checking for shared library run path origin... done
checking for libexpat... yes
checking how to link with libexpat... -lexpat
checking for XML_StopParser... yes
checking whether to use python... /usr
checking for python2.7... no
configure: error: no usable python found at /usr
make[1]: *** [configure-gdb] Error 1
make: *** [all] Error 2

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/benesch/homebrew-os161/issues
benesch commented 2 years ago

Looks like macOS no longer ships the required version of Python. Try removing this line here: https://github.com/benesch/homebrew-os161/blob/81cc899be800a1ccd50f6d813bcf06345e4864c2/Formula/os161-gdb.rb#L19