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

make modern fails (WSL2/Ubuntu 22.04.4) #660

Open
guilgien opened this issue May 30, 2024 · 0 comments
Open

make modern fails (WSL2/Ubuntu 22.04.4) #660

guilgien opened this issue May 30, 2024 · 0 comments

Comments

@guilgien
Copy link

Trying to compile the repo using devkitARM with make modern fails, with the following message:

arm-none-eabi-as -mcpu=arm7tdmi --defsym FIRERED=1 --defsym REVISION=0 --defsym ENGLISH=1 --defsym MODERN=1 -o build/firered_modern/src/help_system.o build/firered_modern/src/help_system.s
arm-none-eabi-as -mcpu=arm7tdmi --defsym FIRERED=1 --defsym REVISION=0 --defsym ENGLISH=1 --defsym MODERN=1 -o build/firered_modern/src/help_system_util.o build/firered_modern/src/help_system_util.s
arm-none-eabi-as -mcpu=arm7tdmi --defsym FIRERED=1 --defsym REVISION=0 --defsym ENGLISH=1 --defsym MODERN=1 -o build/firered_modern/src/hof_pc.o build/firered_modern/src/hof_pc.s
arm-none-eabi-as -mcpu=arm7tdmi --defsym FIRERED=1 --defsym REVISION=0 --defsym ENGLISH=1 --defsym MODERN=1 -o build/firered_modern/src/image_processing_effects.o build/firered_modern/src/image_processing_effects.s
src/intro.c: In function 'SpriteCB_Star':
src/intro.c:2285:52: error: passing argument 2 of 'LoadWordFromTwoHalfwords' from incompatible pointer type [-Wincompatible-pointer-types]
 2285 |         LoadWordFromTwoHalfwords(&sprite->sStar_SparkleRngSeed, &random);
      |                                                    ^~~~~~~
      |                                                    |
      |                                                    u32 * {aka long unsigned int *}
In file included from src/intro.c:15:
include/util.h:13:38: note: expected 'unsigned int *' but argument is of type 'u32 *' {aka 'long unsigned int *'}
   13 | void LoadWordFromTwoHalfwords(u16 *, unsigned *);
      |                                      ^~~~~~~~~~
make[1]: *** [Makefile:276: build/firered_modern/src/intro.o] Error 1
make: *** [Makefile:360: modern] Error 2

No such error occurs when using agbcc with make.

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

1 participant