You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is for informational purposes, I solved the original problem I had, however I wanted to suggest making a note of the below compile problems for RunCPM on macOS + Homebrew in the readme.md file for others who try to build RunCPM on macOS in the future.
I ran into a problem trying to build RunCPM on macOS Big Sur (11.2.3) with the Homebrew binutils package installed. Homebrew binutils includes it's own version of ar, which most likely would show up first in your $PATH before the Apple/macOS/Darwin system ar file (/usr/bin/ar). This will cause the following error when trying to build the bundled copy of Lua:
ld: warning: ignoring file liblua.a, building for macOS-x86_64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture x86_64:
"_luaL_callmeta", referenced from:
_msghandler in lua.o
...
The "fix" is to either edit the Makefile in the lua subdirectory, and hardcode the paths to both ar and ranlib to the system versions, or to remove /usr/local/bin from your $PATH while you're trying to build RunCPM.
If you'd like, I can make a quick PR against readme.md with a short explanation of the above, I'm just not sure where I should put it; maybe in the "Building" section?
Hi,
This issue is for informational purposes, I solved the original problem I had, however I wanted to suggest making a note of the below compile problems for RunCPM on macOS + Homebrew in the
readme.md
file for others who try to build RunCPM on macOS in the future.I ran into a problem trying to build RunCPM on macOS Big Sur (11.2.3) with the Homebrew
binutils
package installed. Homebrewbinutils
includes it's own version ofar
, which most likely would show up first in your$PATH
before the Apple/macOS/Darwin systemar
file (/usr/bin/ar
). This will cause the following error when trying to build the bundled copy of Lua:The "fix" is to either edit the
Makefile
in thelua
subdirectory, and hardcode the paths to bothar
andranlib
to the system versions, or to remove/usr/local/bin
from your$PATH
while you're trying to build RunCPM.Patch to
Makefile
in Lua subdir:If you'd like, I can make a quick PR against
readme.md
with a short explanation of the above, I'm just not sure where I should put it; maybe in the "Building" section?References
The text was updated successfully, but these errors were encountered: