Open
Description
I tested the MCVE and OTA works again perfectly fine. I found the problem in my full sketch. I had a global object called crc32! The same name as the function name with problem. Sorry for bothering you and thank you @earlephilhower for your help. Closing this issue...
Originally posted by @kamran00f in #7651 (comment)
Activity
mcspr commentedon Nov 6, 2022
Linking happens like this right now
With a sketch c/p from the issue, lets add our own crc32 func
Resulting .elf has our function and not the original one, crc32 returning 0.
Moving main .o to the back of the 'library group' seems to help
Not sure if that has any more side-effects, or whether this feature is used by any sketches.
(iirc tasmota might override wificlient this way)
TD-er commentedon Nov 15, 2022
Is it possible to add a warning when a (global) function is redefined? Maybe even better to stop further compilation. I rather would have a build to fail compared to nearly impossible to find issues which may appear and disappear nearly random on new builds.
We've seen enough of those the last few years.