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

Bigsur m1 newlib41 #101

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

frangarcj
Copy link
Contributor

No description provided.

@bucanero
Copy link

Not sure if this PR is still in development, but I tried it and I was able to build the vita-sdk toolchain on a mac M1 host.

I only had one issue with a libelf error about int sizes. After I applied the libelf-m1.patch manually, everything worked fine.

Thanks for sharing!

basic_machine=$basic_machine-pc
;;
+ aarch64-apple|x86-64-apple)
+ ;;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about split two file; 1. keep old patch to fix long long size 2. add new patch to support *-apple

@bucanero
Copy link

bucanero commented Sep 23, 2021

I have tested this gcc 11 toolchain built on M1 (arm), and I tried to build the VitaShell project.
The build worked, but I've got many linking warnings related to uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail.

Here's an example, regarding libftpvita.a, libvita2d.a, but the same warning showed up with other libraries:

[ 58%] Linking C executable VitaShell
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/11.1.0/../../../../arm-vita-eabi/bin/ld: warning: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/11.1.0/../../../../arm-vita-eabi/lib/libftpvita.a(ftpvita.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
/usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/11.1.0/../../../../arm-vita-eabi/bin/ld: warning: /usr/local/vitasdk/bin/../lib/gcc/arm-vita-eabi/11.1.0/../../../../arm-vita-eabi/lib/libvita2d.a(vita2d.o) uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail

I installed the libraries using vdpm, and I guess those binaries were built with a different gcc version.

I'm not sure if I should rebuild all the vita-sdk libraries with gcc11 or if something went wrong when I built the toolchain.

@frangarcj
Copy link
Contributor Author

You need to compile each library. Vdpm is using GCC 10 and on this GCC 11 we needed to move to no-short-enums

@bucanero
Copy link

You need to compile each library. Vdpm is using GCC 10 and on this GCC 11 we needed to move to no-short-enums

thanks for the confirmation 👍 (and apologies for hijacking the PR 😅 )

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

Successfully merging this pull request may close these issues.

4 participants