Skip to content

Error message about running out of memory is unhelpful. #3467

Open
@juj

Description

@juj

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.

Metadata

Metadata

Assignees

Labels

Component: CompilationRelated to compilation of Arduino sketchesComponent: ToolchainThe tools used for compilation and uploading to Arduino boardsType: Bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions