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

bug: make vcctl not support mac m1 #2839

Closed
xiao-jay opened this issue May 19, 2023 · 5 comments
Closed

bug: make vcctl not support mac m1 #2839

xiao-jay opened this issue May 19, 2023 · 5 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@xiao-jay
Copy link
Contributor

What happened:

make vcctl
chmod 755 vcctl 
➜  bin git:(master) ./vcctl 
zsh: exec format error: ./vcctl
➜  bin git:(master) ./vcctl -h
zsh: exec format error: ./vcctl
➜  bin git:(master) file ./vcctl
./vcctl: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, Go BuildID=AZ8_Vc6nsV9mVvb4cN64/NppXBA0todNtVqpfNdp1/KgtUvi_z2maMSWEyDmD_/trtkyISN6DWzIsBKdyOh, with debug_info, not stripped

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Volcano Version:
  • Kubernetes version (use kubectl version):
  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):mac m1
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:
@xiao-jay xiao-jay added the kind/bug Categorizes issue or PR as related to a bug. label May 19, 2023
@lowang-bh
Copy link
Member

maybe need to merge #2805 first.

@hwdef
Copy link
Member

hwdef commented May 19, 2023

Because when compiling with make, the binary version of linux is compiled by default. You can try to compile the binary of darwin, but it has not been tested, and it is not guaranteed that this binary is available.

@xiao-jay
Copy link
Contributor Author

@hwdef
Thank you for your advise,It works for me,build cmd add GOOS=darwin

CC=${CC} CGO_ENABLED=0 GOOS=darwin go build -ldflags ${LD_FLAGS} -o ${BIN_DIR}/vcctl ./cmd/cli

make build normal.
But Do you know how to modify it so that it can build normally on mac m1 without manually modifying the makefile?

@hwdef
Copy link
Member

hwdef commented May 26, 2023

just use

GOOS=darwin make vcctl 

@xiao-jay
Copy link
Contributor Author

just use

GOOS=darwin make vcctl 

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants