You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This appears to be a clang-level issue. mrustc emits __builtin_mul_overflow at that line, which clang has converted into a call to __muloti4, which doesn't exist in the default-linked libgcc (reportedly it's in compiler-builtins)
For reference, that mangled symbol is <i128>::overflowing_mul
thepowersgang
changed the title
Fail building with clang
rustc fails to link with clang (undefined reference to __muloti4)
Nov 16, 2019
https://bugs.llvm.org/show_bug.cgi?id=16404
It appears that clang has an issue where it emits calls to helper methods, but doesn't add a link to compiler-rt to ensure that they're present.
You may need to force the use of compiler-rt somehow (since this is specific to using clang, I'm not sure how it could be handled in mrustc)
Clang version: 9.0.0.
The text was updated successfully, but these errors were encountered: