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

Macbook M1 Support Issue after Updating makefile #521

Closed
xichen1 opened this issue Mar 18, 2023 · 2 comments
Closed

Macbook M1 Support Issue after Updating makefile #521

xichen1 opened this issue Mar 18, 2023 · 2 comments

Comments

@xichen1
Copy link
Member

xichen1 commented Mar 18, 2023

After using the new makefile to build api-engine, network cannot be created using frontend API call and an error arises qemu-x86_64: Could not open '/lib64/ld-linux-x86-64.so.2': No such file or directory in api-engine container.

It seems related to the updated makefile in #519.
In the old makefile, the platform for arm64 arch was linux/amd64 in line 319.
In the updated makefile, the platform is linux/$(ARCH) in line 214.

As the $(ARCH) value is arm64 in m1 OS, it is different from the old amd64 platform. It seems someone also had this issue, and it was solved by using linux/amd64 for m1 arch. Source

Update: I manually changed the platform value to linux/amd64 on m1 and network can be created without error.

@yeasy
Copy link
Member

yeasy commented Mar 18, 2023

Good catch, would you like to help make a PR for it?

xichen1 added a commit to xichen1/cello that referenced this issue Mar 18, 2023
If current arch is arm64, use docker platform linux/amd64,
still use linux/$(ARCH) platform for all other arches.

Signed-off-by: xichen1 <xichen.pan@gmail.com>
@xichen1
Copy link
Member Author

xichen1 commented Mar 18, 2023

Sure, #522 is created to fix it. And it has been tested and works well.

xichen1 added a commit that referenced this issue Mar 25, 2023
@xichen1 xichen1 closed this as completed Apr 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants