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

Possibly missing byte order swapping when using autotools #412

Open
carstene1ns opened this issue Jan 15, 2021 · 3 comments
Open

Possibly missing byte order swapping when using autotools #412

carstene1ns opened this issue Jan 15, 2021 · 3 comments
Labels

Comments

@carstene1ns
Copy link
Member

While configuring, this warning is shown:

configure.ac:82: warning: AC_C_BIGENDIAN should be used with AC_CONFIG_HEADERS

Reason is AC_C_BIGENDIAN wants to define WORDS_BIGENDIAN (which we use), but since we do not use the normal config.h anymore, this is not possible.
This at least affects the Wii version and Apple universal builds (uncommon nowadays).

@carstene1ns carstene1ns added this to the 0.6.3 milestone Jan 15, 2021
@Ghabry
Copy link
Member

Ghabry commented Jan 15, 2021

We could make this a runtime check. The idiom used in the player is recognized by GCC and replaced with a constant during compile.

@Ghabry Ghabry modified the milestones: 0.7.0, 0.7.1 Oct 21, 2021
@Ghabry
Copy link
Member

Ghabry commented Nov 7, 2021

though this still appears to work. WORDS_BIGENDIAN is correctly passed on the command line

@carstene1ns
Copy link
Member Author

carstene1ns commented Nov 9, 2021

Yes, the issue is about universal builds mostly.

From config.h in Player:

/* Define if building universal (internal helper macro) */
/* #undef AC_APPLE_UNIVERSAL_BUILD */



/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
   significant byte first (like Motorola and SPARC, unlike Intel). */
#if defined AC_APPLE_UNIVERSAL_BUILD
# if defined __BIG_ENDIAN__
#  define WORDS_BIGENDIAN 1
# endif
#else
# ifndef WORDS_BIGENDIAN
/* #  undef WORDS_BIGENDIAN */
# endif
#endif

@Ghabry Ghabry modified the milestones: 0.8.0, 0.8.1 Apr 25, 2023
@Ghabry Ghabry removed this from the 0.8.1 milestone Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants