Anyone run across this linker error?

jim lee

Well-known member
Code:
dangerous relocation: unsupported relocation

I got a ton of them. I don't know what they are trying to tell me. Any hints? Anyone ran into this before?

Thanks!
 
Wait, I'm using 15.2.1 and this just started last night. This 15.1.0 is over a year old. Wouldn't I have seen this before?
 
WAIT! Got it. The IDE "lost" one of the libraies LC_lilParser. This caused all the 100 million wierd errors.

The "fix" was to un-install the lost liberary using the IDE's library manager, re-install it using the library manager then restarting the IDE.

I didn't come up with the fix, I thought it was utter madness. But I followed my buddie's instructions (To the letter) and Presto! All fixed!
 
Funnily enough, I just did! Never seen it before... Weirdly, I could make it go away by compiling for 528MHz CPU speed, but I want the full 600MHz, darn it.

I found this thread which had a solution for Teensy 3.6; a similar solution for Teensy 4.1, which has worked for me, is to put
Code:
teensy41.build.flags.libs=-larm_cortexM7lfsp_math -Wl,--start-group -lm -lstdc++ -Wl,--end-group
into my boards.local.txt file. This overrides the
Code:
teensy41.build.flags.libs=-larm_cortexM7lfsp_math -lm -lstdc++
that's in the standard boards.txt.
 
Back
Top