Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup on Mac M1 is broken with /usr/local/ path hardcoded #11237

Open
nmahadevuni opened this issue Oct 11, 2024 · 1 comment
Open

Setup on Mac M1 is broken with /usr/local/ path hardcoded #11237

nmahadevuni opened this issue Oct 11, 2024 · 1 comment
Labels
build triage Newly created issue that needs attention.

Comments

@nmahadevuni
Copy link
Collaborator

nmahadevuni commented Oct 11, 2024

Problem description

I was running the setup-macos.sh script after rebasing to the latest. The install_build_prerequisites method has /usr/local/bin/ path hardcoded to check for ccache. This fails on Mac M1.

System information

Velox System Info v0.0.2
Commit: 01f6fe7e236a890348e04209307c72d5f3386227
CMake Version: 3.30.5
System: Darwin-23.5.0
Arch: arm64
C++ Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
C++ Compiler Version: 15.0.0.15000309
C Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
C Compiler Version: 15.0.0.15000309
CMake Prefix Path: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr;/opt/homebrew;/usr/local;/usr;/;/opt/homebrew/Cellar/cmake/3.30.5;/usr/local;/usr/X11R6;/usr/pkg;/opt;/sw;/opt/local

CMake log

+ mv ccache-4.10.2-darwin/ccache /usr/local/bin/
mv: rename ccache-4.10.2-darwin/ccache to /usr/local/bin/ccache: Permission denied

On Velox build, this error is ignored and proceeds to next steps. But on Prestissimo, setup fails at this point.

@nmahadevuni nmahadevuni added build triage Newly created issue that needs attention. labels Oct 11, 2024
@majetideepak
Copy link
Collaborator

majetideepak commented Oct 16, 2024

What is the permissions of your /usr/local/bin directory? Users should usually be able to move to that folder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build triage Newly created issue that needs attention.
Projects
None yet
Development

No branches or pull requests

2 participants