Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By flyingkiwi
#41462
tiawild wrote:
Abdullbasit wrote:
tiawild wrote:Hi!
You can remove the flag "-Werror" from the makefile so as not let the compiler treating warnings as errors

OK, thank you. Now it's better :D ...but it still doesn't works :(
At about 75% it freezes with this line:

Code: Select allC:\Espressif\examples\nodemcu-firmware-v1.4\app\coap/hash.c:23:(.text.coap_transaction_id+0x17): dangerous relocation: call0: call target out of range: ets_memset
collect2.exe: error: ld returned 1 exit status


Did you sort this problem ?
User avatar
By jcmvbkbc
#41962
tiawild wrote:
Code: Select allC:\Espressif\examples\nodemcu-firmware-v1.4\app\coap/hash.c:23:(.text.coap_transaction_id+0x17): dangerous relocation: call0: call target out of range: ets_memset

flyingkiwi wrote:Did you sort this problem ?

No, I didn't :(

Compiling the source file mentioned in the error message with -mlongcalls option should fix that error.
In general compiling all sources with this option is the right thing.