Open jacksonbenete opened 2 years ago
Same here. On my MacBook Air M1 and in an Ubuntu Arm VM compiling fails.
For M1, there's nothing for you right now. But for Linux based AARCH64/ARM64 systems, there is a fork with ARM support here.
It's been a while, but the problem is this is entirely a self-hosted autobuild runner, so it cannot be merged into VitaSDK right now until public ARM runners are added to actions.
same here.
@iamcco I've encountered a similar issue before. For ARM Mac, the problem arises because some executable files like arm-vita-eabi-gcc were compiled for Intel Mac, and they have dependencies on x86 libraries. On an ARM Mac, only the ARM libraries are available, so they cannot execute properly. The solution is either to distribute these dependencies along with the files or locally compile these executable files.
@iamcco I've encountered a similar issue before. For ARM Mac, the problem arises because some executable files like arm-vita-eabi-gcc were compiled for Intel Mac, and they have dependencies on x86 libraries. On an ARM Mac, only the ARM libraries are available, so they cannot execute properly. The solution is either to distribute these dependencies along with the files or locally compile these executable files.
@xfangfang Thanks, I'll look into it.
I'm currently experiencing the same issue, except that I'm actually on an Intel Mac and not M1...
Fresh MacBook Air M1 user here. Currently compiling my Vita project using x86 emulator version of Lima as described in here.
Compilation feels like 5x slower. But hey, it gets the job done!
But for Linux based AARCH64/ARM64 systems, there is a fork with ARM support here.
Oh, probably I had to try that first with normal version of Lima (which emulates normal Ubuntu with ARM).
@hammerill I am using using https://orbstack.dev, running a Docker image of vitasdk to compile for vita, compared to Docker Desktop, OrbStack supports rosetta to run Docker images or Linux, which makes the running speed almost similar to x86_64.
@xfangfang thank you for suggesting that! But still I've decided to stay with Lima. As I said that the Arm64 version of VDPM could possibly work with default conf of Lima, I've tried it out, and it worked flawlessly! Now, it compiles everything at acceptable speed.
By the way, @SonicMastr , I've merged the upstream branch in my fork in order to compile the project I've worked on with latest VDPM version. Your version was kind of stale and complained about libxmp
being absent. Merging with upstream VDPM fixed that. You could accept my PR if you want.
In general, I find this Lima + Arm64 VDPM technique a viable solution for developing Vita homebrew on Macs.
Looks like I can install VitaSDK using all the provided scripts and following the instructions. But every time I try a "cmake ." it fails to compile the test program.
I'm on M1, is it possible to have a release on autobuild for arm macOS? (not sure if it would solve the problem though) I also tried on a debian container and it fails compiling the test program.