Closed cnatale closed 6 months ago
@cnatale I think you should try to build with BUILD_TYPE make BUILD_TYPE=metal build
.
I figured out what the problem was. I migrated from an Intel Mac, and never uninstalled/reinstalled my copy of Homebrew. One of the pieces of software in the build process gets system architecture from Homebrew, so it was setting it to x86, and causing the build to fail. An uninstall/reinstall of Homebrew fixed things.
LocalAI version: Git commit id: 9723c3c21d4f2a9fdb91bb2f17e8319a810e6cca
Environment, CPU architecture, OS, and Version:
Darwin Kernel Version 22.6.0: Tue Nov 7 21:40:08 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_ARM64_T6000 arm64
Apple M1 Pro, 32GB unified memory
Describe the bug I'm attempting to build localai on my M1 MacBook Pro for the first time. I'm following instructions here: https://localai.io/basics/build/#build-on-mac.
For some reason I'm getting a "symbol(s) not found for architecture x86_64" error. Is there somewhere I need to specify that I want an ARM64 build?
More error logging:
To Reproduce I followed the "build on Mac" steps described here: https://localai.io/basics/build/#build-on-mac
Expected behavior The build process should complete successfully.
Logs Shared above.
Additional context Initially I tried the
make BUILD_TYPE=metal build
option suggested for Apple Silicon systems. That failed with the same message.