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

USB_SEED_SWAP cannot be compiled/implemented #14

Open
team-orangeBlue opened this issue Nov 4, 2024 · 0 comments
Open

USB_SEED_SWAP cannot be compiled/implemented #14

team-orangeBlue opened this issue Nov 4, 2024 · 0 comments

Comments

@team-orangeBlue
Copy link

Using Ubuntu 22.04 under WSL with dkp-pacman; devkitARM r65
USB_SEED_SWAP is defined as 1
patch_asm.S was compiled and exists as wafel_core/debug/patch_asm.o

~/stroopwafel$ make
make[1]: Entering directory '/home/obguy/stroopwafel/wafel_core'
bash: line 1: arm-none-eabi-gcc: command not found
main.c
In file included from /home/obguy/stroopwafel/wafel_core/source/main.c:19:
/home/obguy/stroopwafel/wafel_core/source/main.c: In function 'patch_55x':
/home/obguy/stroopwafel/wafel_core/source/main.c:811:54: error: 'usb_seedswap' undeclared (first use in this function)
  811 |         BL_TRAMPOLINE_K(0x04004584, MCP_ALTBASE_ADDR(usb_seedswap));
      |                                                      ^~~~~~~~~~~~
/home/obguy/stroopwafel/wafel_core/include/wafel/patch.h:32:26: note: in definition of macro '_BL_TRAMPOLINE'
   32 |     s32 bl_offs = (((s32)_dst - (s32)(_addr)) - 8) / 4; \
      |                          ^~~~
/home/obguy/stroopwafel/wafel_core/source/main.c:811:9: note: in expansion of macro 'BL_TRAMPOLINE_K'
  811 |         BL_TRAMPOLINE_K(0x04004584, MCP_ALTBASE_ADDR(usb_seedswap));
      |         ^~~~~~~~~~~~~~~
/home/obguy/stroopwafel/wafel_core/source/main.c:811:37: note: in expansion of macro 'MCP_ALTBASE_ADDR'
  811 |         BL_TRAMPOLINE_K(0x04004584, MCP_ALTBASE_ADDR(usb_seedswap));
      |                                     ^~~~~~~~~~~~~~~~
/home/obguy/stroopwafel/wafel_core/source/main.c:811:54: note: each undeclared identifier is reported only once for each function it appears in
  811 |         BL_TRAMPOLINE_K(0x04004584, MCP_ALTBASE_ADDR(usb_seedswap));
      |                                                      ^~~~~~~~~~~~
/home/obguy/stroopwafel/wafel_core/include/wafel/patch.h:32:26: note: in definition of macro '_BL_TRAMPOLINE'
   32 |     s32 bl_offs = (((s32)_dst - (s32)(_addr)) - 8) / 4; \
      |                          ^~~~
/home/obguy/stroopwafel/wafel_core/source/main.c:811:9: note: in expansion of macro 'BL_TRAMPOLINE_K'
  811 |         BL_TRAMPOLINE_K(0x04004584, MCP_ALTBASE_ADDR(usb_seedswap));
      |         ^~~~~~~~~~~~~~~
/home/obguy/stroopwafel/wafel_core/source/main.c:811:37: note: in expansion of macro 'MCP_ALTBASE_ADDR'
  811 |         BL_TRAMPOLINE_K(0x04004584, MCP_ALTBASE_ADDR(usb_seedswap));
      |                                     ^~~~~~~~~~~~~~~~
make[2]: *** [/opt/devkitpro/devkitARM/base_rules:39: main.o] Error 1
make[1]: *** [Makefile:107: debug] Error 2
make[1]: Leaving directory '/home/obguy/stroopwafel/wafel_core'
make: *** [Makefile:19: wafel_core/wafel_core.elf] Error 2
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