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

Region 'ram' overflowed by 419416 (!) bytes #336

Closed
digneludvig opened this issue Mar 25, 2024 · 6 comments
Closed

Region 'ram' overflowed by 419416 (!) bytes #336

digneludvig opened this issue Mar 25, 2024 · 6 comments

Comments

@digneludvig
Copy link

Im trying to build the library with make -j2 PLATFORM=nucleo-l476rg. This eventually results in the following errors:

/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: elf/crypto_sign_ov-Ip_m4f_stack.elf section `.bss' will not fit in region `ram'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: region `ram' overflowed by 419416 bytes
collect2: error: ld returned 1 exit status
make: *** [mupq/mk/schemes.mk:148: elf/crypto_sign_ov-Ip_m4f_stack.elf] Error 1
make: *** Waiting for unfinished jobs....

As you saw, the board I'm using is a Nucleo-L476RG, which is said to be a compatible board in the README, but a 419416 byte overflow seem like an absurd overflow for any board. Any ideas what is going on here and what to do about it?

@mkannwischer
Copy link
Contributor

OV-Ip should not run on that board because it OV needs more than 500 KiB of RAM and the board only has 128 KiB of RAM. Let me add that to the EXCLUDED_SCHEMES in https://github.com/mupq/pqm4/blob/master/mk/nucleo-l476rg.mk.
brb.

@mkannwischer
Copy link
Contributor

82c6d7a should fix it.
Can you try again please?

@digneludvig
Copy link
Author

digneludvig commented Mar 26, 2024

82c6d7a should fix it. Can you try again please?

Thanks, it fixed the previous issue it seems, but instead I get the overflow below when building the exact same way:

/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: elf/mupq_crypto_sign_snova-37-8-16-4-esk_ref_stack.elf section `.bss' will not fit in region `ram'
/usr/lib/gcc/arm-none-eabi/10.3.1/../../../arm-none-eabi/bin/ld: region `ram' overflowed by 35192 bytes
collect2: error: ld returned 1 exit status
make: *** [mupq/mk/schemes.mk:148: elf/mupq_crypto_sign_snova-37-8-16-4-esk_ref_stack.elf] Error 1
make: *** Waiting for unfinished jobs....

@mkannwischer
Copy link
Contributor

Sorry about that. I added CI for this platform and hopefully fixed all the problems for this platform now: #337
Can you try that version, please?

Some other platforms also have problems, so it will take a little longer before we can merge it to master.

@digneludvig
Copy link
Author

Thanks, it builds now, although I do get a bunch of warnings during the build process, often related to unused parameters or comparisons of expressions. These may not pose issues though?

@mkannwischer
Copy link
Contributor

Thanks!
Yes, these are warnings in the implementations written by other people. I'm not going to fix all these as it's way too many.

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

2 participants