Open rbruels opened 3 years ago
i am also encountering both of these issues on macOS 12, on a Mac Mini M1, building for arm64.
I encounter neither of these issues on macOS 12 on Intel using prerequisites from MacPorts.
i am still encountering both on macOS 12 on Arm using prerequisites from Homebrew.
building and installing hfsutils myself and using that, rather than from homebrew, seems to fix the linker issue - so it looks like there's something up with homebrew's packaging of that, rather than Retro68.
as a workaround, just don't have hfsutils installed when you build Retro68, and it will build its own copy of hfsutils to use.
i do still get periodic segfaults from Rez, but they may be unrelated?
Oh. Neat! Good find. I’ll try this in the morning and report back.
building and installing hfsutils myself and using that, rather than from homebrew, seems to fix the linker issue - so it looks like there's something up with homebrew's packaging of that, rather than Retro68.
Well you certainly can't use homebrew's hfsutils to satisfy Retro68's needs, because Retro68 needs hfsutils to have been built with the --enable-devlibs
configure argument but in homebrew it isn't (while in MacPorts it is).
I encountered comparable symptoms: linker not finding _hfs_vsetattr
, commenting out its invocation leads to Rez segfaults. Sonoma 14.1.1 on an M2, Homebrew installed but not hfsutils.
Turns out libhfs.a
from a cdrtools installation was taking precedence over the vendored copy, removing it resulted a successful build.
$ brew list | grep cdrtools
cdrtools
$ brew list | grep hfs
$ find /opt/homebrew | grep libhfs
/opt/homebrew/lib/libhfs.a
/opt/homebrew/Cellar/cdrtools/3.02a09/lib/libhfs.a
$
Using the default compilers on Big Sur (macOS 11.4, Xcode 12.5.1, Intel MacBook Pro).
Installed prereqs through Homebrew.
../Retro68/build-toolchain.bash
Just for giggles I commented out line 234 of MiniVMac.cc:
//hfs_vsetattr(vol, &ent);
And that compile completed (obviously with unknown consequences).
Then later in the build, ConsoleTest.bin keeps segfaulting:
At this point I'm stumped. Ideas appreciated!