Closed mrhota closed 7 years ago
Did you also try providing the eh_personality
lang item (and maybe eh_unwind_resume)? I'm pretty sure I had this set up correctly before:
Removed here because I didn't properly investigate why adding va_list caused a conflict with them:
This is a good catch on your part -- thanks for looking into it.
It turns out I just got it working by adding compiler_builtins
to dependencies.
https://github.com/rust-lang-nursery/compiler-builtins
(In addition to the instructions there, you also have to add compiler_builtins_lib
to feature list in the rusl
's crate root)
I'll push up a fix.
va_list
pulls in std even thoughrusl
claims it isno_std
in its crate root.If we change the dependency to
va_list = { version = "whatever", features = ["no_std"] }
, thenrustc
will not linklibstd
withrusl
. But then it starts complaining about missingpanic_fmt
. So we have to provide an empty def for that, along the lines described here: https://doc.rust-lang.org/book/no-stdlib.htmlThen
libc-test
tests start to fail spectacularly. On my machine, the linker complains aboutundefined reference to '__muloti4'
for every object file ever.