arduino / arduino/Arduino

Error message about running out of memory is unhelpful.

Open
#3,467 3 comments 0 reactions 1 assignee Claimed by @cmaglie View on GitHub
Component: Compilation Component: Toolchain Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

I'm building a piece of source code, and it is giving me the following build error:

```
/avr/bin/ld: C:\Users\clb\AppData\Local\Temp\build4551615865478074668.tmp/MyTest.cpp.elf section `.text' will not fit in region `text'
/avr/bin/ld: region `text' overflowed by 1910 bytes
collect2: error: ld returned 1 exit status
Error compiling.
```

but there is no indication of what caused the overflow. Instead of giving an unhelpful error message, it would be better to give a dump of used memory in the 'text' region, along with file and line information of where the symbols come from, sorted in descending order of size taken, so that it is possible to analyze what takes up memory and to get ideas where to optimize.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.