-->
Page 1 of 4

section `.text' will not fit in region `iram1_0_seg'

PostPosted: Tue Mar 17, 2015 6:13 am
by Markus Gritsch
Hi,

when I try to compile the current nodemcu dev branch, I get the following linker error:

e:/xtensa-lx106-elf/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .output/eagle/debug/image/eagle.app.v6.out section `.text' will not fit in region `iram1_0_seg'

The integer version works fine using: make EXTRA_CCFLAGS="-DLUA_NUMBER_INTEGRAL"

The strange thing is that the automated travis-ci builds seem to work fine, also for the float version.

Any hints?

Re: section `.text' will not fit in region `iram1_0_seg'

PostPosted: Tue Mar 17, 2015 8:05 am
by laurynas
I had the same problem, but instead of figuring it out, I just changed Ofast (that I had instead of default O2) to Os in the main make file and all went fine :)

Re: section `.text' will not fit in region `iram1_0_seg'

PostPosted: Wed Mar 18, 2015 9:10 am
by zeroday
lib/function not from the source code, like printf/strcat and most standard lib func. goes into iram1_0_seg section, which can not be expanded.
maybe the toolchain have a diff standard lib in your situation.
try to remove some api/module. for example, some function in math module.

Re: section `.text' will not fit in region `iram1_0_seg'

PostPosted: Tue Mar 31, 2015 1:28 pm
by Markus Gritsch
I just tried it with the xtensa-lx106-elf tollchain which is bundled with the recently released Arduino environment for the ESP8266. Same error message when trying to compile the float-version :(