I am unable to get an executable that runs on the arm7 (i.MX6) target.
Under v1.27 they ran without problem but after updating to v1.33 we ran into a bunch of problems. v1.33 requires I have the toolchain libraries copied over to and pathed onto the target.
.cargo/config (for all our RUST programs) have:
rustflags = ["-c","prefer-dynamic"]
and in Cargo.toml
crate-type = ["dylib"]
and on the target 'file' reveals the following
everything is compiled with
cargo build --target=armv7-unknown-linux-gnueabihf --release
I have copied all the rustup/toolchains/armv7-unknown-linux-gnueabihf/libs to the SSD attached to the target and pathed it with ldconfig /SSD/rustlib
/etc/rc5.d/S98xyz-autostart.sh: line 18: /usr/bin/xyz: No such file or directory
I have tried redoing the permissions and owner, etc. and it refuses to 'find' it.
'cp' is not a culprit , as I had saved the original rust executables to the SSD (in a backup directory) and can retrieve these previous builds and those executables will run (albeit they have some features missing that I have added to the newer build). The originals were built under v1.27 and the newer builds are compiling under v1.34.
'file' shows me the newer executables are similar in nature. both will show
older v1.27 binary
xyz: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/
ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=234bd073a54c4a48ca8b42096a6eada936e9caa4, stripped
newer v1.34 binary
xyz: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, in
terpreter /lib/ld-linux.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=ad1e6b3e33056957d692b82b7a57b7cb58735595, not stripped
I do expect the sha1 to be different. I have copied the toolchain libraries to the external SSD as well as copying the executable's /deps/*.rlib and *.so to /usr/lib. ldconfg shows these files are pathed to /usr/lib
The target (that the executable has to run on) is an NXP i.MX6 core running Linux v3.14.79
Am I missing something ? or do I have to open an issue?