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
I am cross-compiling a Rust library for aarch64-unknown-none-softfloat and it does not look like 'memcpy = false' in Cargo.toml is honored anymore. I have a libc that I'm using for my platform. Now when I'm linking things together my build script throws 'multiple definition of `memcpy'' etc.
This was working a few months ago (probably March or April) but now I came back to it, it does not work anymore.
I have updated my toolchain to the latest nightly as follows:
Unfortunately, I don't have a log of which versions I was using when it was working.
I have tried different versions of cargo-xbuild, v0.5.20, v0.5.35, v0.6.0, etc.
v0.6.0 fails for a different reason (#88), but other versions all seem to include memcpy, etc.
I don't know if this is an issue with cargo-xbuild or compiler-builtins as it looks like compiler-builtins v0.1.32 is used now, which is probably a different version from what I was using before (though I don't know which version I was using when it was working for me).
Any help on this would be much appreciated.
The text was updated successfully, but these errors were encountered:
To debug this issue, it would help if you could post the full compilation log, post the code of your project, and ideally try to find out which cargo-xbuild release introduced the problem.
Thanks for your answer. I actually found the reason: rust-lang/compiler-builtins@03001f2. My target contains '-none' and it automatically enables the mem feature. It's an issue from compiler-builtins, so I'll close this.
I am cross-compiling a Rust library for aarch64-unknown-none-softfloat and it does not look like 'memcpy = false' in Cargo.toml is honored anymore. I have a libc that I'm using for my platform. Now when I'm linking things together my build script throws 'multiple definition of `memcpy'' etc.
This was working a few months ago (probably March or April) but now I came back to it, it does not work anymore.
I have updated my toolchain to the latest nightly as follows:
rustup 1.22.1 (2020-07-08)
rustc 1.47.0-nightly (2020-07-26)
cargo 1.47.0-nightly (2020-07-23)
Unfortunately, I don't have a log of which versions I was using when it was working.
I have tried different versions of cargo-xbuild, v0.5.20, v0.5.35, v0.6.0, etc.
v0.6.0 fails for a different reason (#88), but other versions all seem to include memcpy, etc.
I don't know if this is an issue with cargo-xbuild or compiler-builtins as it looks like compiler-builtins v0.1.32 is used now, which is probably a different version from what I was using before (though I don't know which version I was using when it was working for me).
Any help on this would be much appreciated.
The text was updated successfully, but these errors were encountered: