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

User avatar
By flyingkiwi
#41981
jcmvbkbc wrote:
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.

I have -mlongcalls in the make file but still get dangerous relocation error
oh sorry, on nodemcu sdk 1.5.0 or greater
User avatar
By jcmvbkbc
#41987
flyingkiwi wrote:
jcmvbkbc wrote: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.

I have -mlongcalls in the make file but still get dangerous relocation error
oh sorry, on nodemcu sdk 1.5.0 or greater

I'm pretty sure this should not happen, and that's rather an indication of an error in a makefile. Can you share it so that I could check?
User avatar
By flyingkiwi
#42027
jcmvbkbc wrote:
flyingkiwi wrote:
jcmvbkbc wrote: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.

I have -mlongcalls in the make file but still get dangerous relocation error
oh sorry, on nodemcu sdk 1.5.0 or greater

I'm pretty sure this should not happen, and that's rather an indication of an error in a makefile. Can you share it so that I could check?



It is the standard Makefile that comes with the Nodemcu sdk

whoops would not accept attatchment