Closed tecosaur closed 1 year ago
This has turned out to be a common error despite not turning up in CI. It was a bit hard to debug because __stack_chk_guard
doesn't show up in the @code_llvm
despite apparently getting inserted by someone or something. As far as I can tell, this appears to be due to apparently on-by-default feature in some newer compilers to enable stack smashing protection. This is a great feature to have, but requires us to set a value of __stack_chk_guard
as a canary (e.g. https://antoinealb.net/programming/2016/06/01/stack-smashing-protector-on-microcontrollers.html). Once we do that, the error seems to go away. I'll PR the fix after we can finish up and merge #85
Should be fixed now, thanks for the issue @tecosaur!
Hi, I tried to test this out the
times_table
example from StaticTools.jl, and hit an error with the linking step called by this package:(I'm surprised that StaticCompiler isn't using
mold
from Yggdrasil or the like)I'm not really sure what to make of this, but hopefully, you can find something useful in the backtrace. Let me know if there are any tests you'd like me to run.
System Info