Closed agg23 closed 1 month ago
As a quick workaround, I attempted to symlink to the homebrew installed version of libmpc
sudo ln -s /opt/homebrew/lib/libmpc.3.dylib /usr/local/lib/libmpc.3.dylib
but that results in an arch compatibility error, as gcc
was compiled for x86-64
only, and I am running on a aarch64
machine.
'/usr/local/lib/libmpc.3.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')
Hey @agg23! Have you tried installing the x86_64 version of libmpc according to https://www.vuengine.dev/documentation/setup/installation/#apple-silicon-arm?
That worked, thank you. Sorry, I didn't realize there was a separate installation page; it's a bit unexpected due to the "Download" buttons on the main page and the tendency for macOS apps to not need installation (though obviously you do provide an Installer package).
Is there a reason a x86 version of libmpc
isn't included in the distribution? You're already distributing gcc
.
Good to hear that it's working now!
It is a bit unfortunate, indeed, that libmpc is not included in our gcc build. But, from my understanding, it would have to have been bundled at build time and can not be included after the fact. While it would be amazing to have a build of the latest version of https://github.com/jbrandwood/v810-gcc, with bundled libs, building gcc is quite the nightmare, and we are not keen on going through that again right now. 🥴
I don't know if this is the right thing to do, but I believe you can augment the envvar LD_LIBRARY_PATH
used in your GCC command to contain your directory with your bundled libmpc
. It doesn't have to be in the system path.
Thought so, too, so I tried this and a ton of other different things last night, from messing with various env vars to gcc parameters to even hex editing the "/usr/local/gcc-8.2/lib/libmpc.3.dylib" path in cc1. Unfortunately, nothing worked.
Fresh install of VUEngine Studio on macOS results in the following error when attempting to build.
brew install libmpc
does not fix the issueThis is building a
libgccvb
project.