Yes, it’s the user-part which fails. I will see if I can isolate a simple reproducer. I cannot post the whole code, it is in a relatively complex web server.
My code includes a web server, also. I wonder if it is something in that part of the code. Did you write your own server, or use an open source one?
It’s my own.
@mdma Sorry to ask but I am not sure what your comment above means. Can you explain further?
Is there an ETA for 0.4.0 for the Core? Or do I need to delve into the delights of local compiling to get all the new features, bugfixes, etc.?
What is a "sprint"? I know that's a phone company, but that's probably not what you're referring to. Is this a particular interval?
@mdma As of yesterday, when I synch’d my firmware again from your repository, I get errors with COMPILE_LTO set to yes, or no. I get the same errors as before if I have it set to no. Now, if I have it set to yes, I get:
`snprintf' referenced in section `.text.unlikely.attoHTTPParseParam.constprop.25' of /tmp/ccSnHxsv.ltrans4.ltrans.o: defined in discarded section `.text' of rt_dynalib.o (symbol from plugin)
`vsnprintf' referenced in section `.text.attoHTTPprintf' of /tmp/ccSnHxsv.ltrans5.ltrans.o: defined in discarded section `.text' of rt_dynalib.o (symbol from plugin)
collect2: error: ld returned 1 exit status
So vsnprintf and snprintf are being discarded. I am not sure yet if this is in a system library, or part of the firmware that I am compiling.
Please remove the build/target directory and compile again, without any COMPILE_LTO flag. Thanks.
When I do that I still get:
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libg_nano.a(lib_a-sbrkr.o): In function `_sbrk_r':
sbrkr.c:(.text._sbrk_r+0xc): undefined reference to `_sbrk'
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libg_nano.a(lib_a-writer.o): In function `_write_r':
writer.c:(.text._write_r+0x10): undefined reference to `_write'
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libg_nano.a(lib_a-closer.o): In function `_close_r':
closer.c:(.text._close_r+0xc): undefined reference to `_close'
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libg_nano.a(lib_a-fstatr.o): In function `_fstat_r':
fstatr.c:(.text._fstat_r+0xe): undefined reference to `_fstat'
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libg_nano.a(lib_a-isattyr.o): In function `_isatty_r':
isattyr.c:(.text._isatty_r+0xc): undefined reference to `_isatty'
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libg_nano.a(lib_a-lseekr.o): In function `_lseek_r':
lseekr.c:(.text._lseek_r+0x10): undefined reference to `_lseek'
/usr/bin/../lib/gcc/arm-none-eabi/4.9.3/../../../../arm-none-eabi/lib/armv7-m/libg_nano.a(lib_a-readr.o): In function `_read_r':
readr.c:(.text._read_r+0x10): undefined reference to `_read'
Never mind. I had debug code enabled in one section that included printf. That was the problem.
Thanks for your help!